pub fn new(name: &str) -> Result<AnonManipulator> {
        let system = System::new_all();
        let process_list = system.get_process_by_name(name);
        if !process_list.is_empty() {
            let pid = process_list[0].pid();
            return Ok(AnonManipulator { pid });
        }
        Err(Error::ProcessNotFound(name.to_owned()))
    }
/// Searches for the given process name and creates an anon manipulator
Searches for the given process name and creates an anon manipulator
Searches for the given process name and creates an anon manipulator
pub fn new(name: &str) -> Result<AnonManipulator> {
        let system = System::new_all();
        let process_list = system.get_process_by_name(name);
        if !process_list.is_empty() {
            let pid = process_list[0].pid();
            return Ok(AnonManipulator { pid });
        }
        Err(Error::ProcessNotFound(name.to_owned()))
    }
pub fn new ( name : & str ) -> Result < AnonManipulator > { let system = System :: new_all ( ) ; let process_list = system . get_process_by_name ( name ) ; if ! process_list . is_empty ( ) { let pid = process_list [ 0 ] . pid ( ) ; return Ok ( AnonManipulator { pid } ) ; } Err ( Error :: ProcessNotFound ( name . to_owned ( ) ) ) }
Searches for the given process name and creates an anon manipulator
Searches for the given process name and creates an anon manipulator
name
&str
name
&str