pub fn get_proc_by_name(process_name: &str) -> PidExpand description
get_proc_by_name will take a name try to find a process with that name
§Note
this function will panic with an error message if it 0 or multipe process by that name were found. planning to make so it returns Result<T,E>
§Examples
use process_read_write;
use nix::unistd::Pid;
fn main(){
let name = "MyGame-x86";
let pid:Pid = process_read_write::get_proc_by_name(name);
}