GetContext

Trait GetContext 

Source
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

Required Associated Types§

Required Methods§

Source

fn get_context_from_name(&self, process_name: &str) -> Option<Self::Context>

Source

fn get_context_from_pid(&self, pid: u32) -> Option<Self::Context>

Source

fn get_current_context(&self) -> Self::Context

Implementors§