pub trait GetContext {
type Context;
// Required methods
fn get_context_from_name(&self, process_name: &str) -> Option<Self::Context>;
fn get_context_from_pid(&self, pid: u32) -> Option<Self::Context>;
fn get_current_context(&self) -> Self::Context;
}Expand description
Gets the Pid type from a process name, a windows PID, or the current PID