pub fn new(name: &str) -> Result<ExternalManipulator> {
        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(ExternalManipulator { pid });
        }
        Err(Error::ProcessNotFound(name.to_owned()))
    }
/// Searches for the given process name and creates an external manipulator
Searches for the given process name and creates an external manipulator
Searches for the given process name and creates an external manipulator
pub fn new(name: &str) -> Result<ExternalManipulator> {
        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(ExternalManipulator { pid });
        }
        Err(Error::ProcessNotFound(name.to_owned()))
    }
pub fn new ( name : & str ) -> Result < ExternalManipulator > { 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 ( ExternalManipulator { pid } ) ; } Err ( Error :: ProcessNotFound ( name . to_owned ( ) ) ) }
Searches for the given process name and creates an external manipulator
Searches for the given process name and creates an external manipulator
name
&str
name
&str