fn refresh_procs(&mut self) {
        //! current_procs is the up to date list of processus running on the host
        let current_procs = process::all_processes().unwrap();

        for p in current_procs {
            let pid = p.pid;
            let res = self.proc_tracker.add_process_record(p);
            match res {
                Ok(_) => {}
                Err(msg) => panic!("Failed to track process with pid {} !\nGot: {}", pid, msg),
            }
        }
    }
/// Gets currently running processes (as procfs::Process instances) and stores
/// them in self.proc_tracker
Gets currently running processes (as procfs::Process instances) and stores
them in self.proc_tracker
Gets currently running processes ( as procfs :: Process instances ) and stores them in self . proc_tracker
fn refresh_procs(&mut self) {
        //! current_procs is the up to date list of processus running on the host
        let current_procs = process::all_processes().unwrap();
        for p in current_procs {
            let pid = p.pid;
            let res = self.proc_tracker.add_process_record(p);
            match res {
                Ok(_) => {}
                Err(msg) => panic!("Failed to track process with pid {} !\nGot: {}", pid, msg),
            }
        }
    }
fn refresh_procs ( & mut self ) { //! current_procs is the up to date list of processus running on the host let current_procs = process :: all_processes ( ) . unwrap ( ) ; for p in current_procs { let pid = p . pid ; let res = self . proc_tracker . add_process_record ( p ) ; match res { Ok ( _ ) => { } Err ( msg ) => panic ! ( " \n " pid msg ) , } } }
Gets currently running processes (as procfs::Process instances) and stores
them in self.proc_tracker
Gets currently running processes ( as procfs :: Process instances ) and stores them in self . proc_tracker
&mut self
&mut self