pub fn remove_process(&mut self, conn_id: usize, proc_id: usize) {
        self.client_processes.entry(conn_id).and_modify(|v| {
            if let Some(pos) = v.iter().position(|x| *x == proc_id) {
                v.remove(pos);
            }
        });
        self.processes.remove(&proc_id);
    }
/// Removes a process associated with a connection
Removes a process associated with a connection
Removes a process associated with a connection
pub fn remove_process(&mut self, conn_id: usize, proc_id: usize) {
        self.client_processes.entry(conn_id).and_modify(|v| {
            if let Some(pos) = v.iter().position(|x| *x == proc_id) {
                v.remove(pos);
            }
        });
        self.processes.remove(&proc_id);
    }
pub fn remove_process ( & mut self , conn_id : usize , proc_id : usize ) { self . client_processes . entry ( conn_id ) . and_modify ( | v | { if let Some ( pos ) = v . iter ( ) . position ( | x | * x == proc_id ) { v . remove ( pos ) ; } } ) ; self . processes . remove ( & proc_id ) ; }
Removes a process associated with a connection
Removes a process associated with a connection
&mut self
conn_id
usize
proc_id
usize