ModuleListPid

Trait ModuleListPid 

Source
pub trait ModuleListPid: GetContext {
    // Required methods
    fn get_module_list(&self, pid: &Self::Context) -> Vec<Module>;
    fn get_main_module(&self, pid: &Self::Context) -> Module;

    // Provided method
    fn get_module(&self, pid: &Self::Context, name: &str) -> Option<Module> { ... }
}
Expand description

A trait that mirrors the ModuleList trait by gets information from a PID instead of directly from the implementor. Note that the Pid type is not necessarily a Windows process ID. One may implement this using another form of identifier such as a dirbase.

Required Methods§

Source

fn get_module_list(&self, pid: &Self::Context) -> Vec<Module>

Returns a list of all modules from a Pid. If the implementor can only provide a single module based on the name, this function should panic

Source

fn get_main_module(&self, pid: &Self::Context) -> Module

Gets the main module from the Pid.

Provided Methods§

Source

fn get_module(&self, pid: &Self::Context, name: &str) -> Option<Module>

Returns a single module by name from the Pid. If the module name does not exist, returns None

Implementors§