Trait Inject

Source
pub trait Inject {
    // Required methods
    fn inject(&self) -> Result<(), Error>;
    fn eject(&self) -> Result<(), Error>;
    fn find_pid(name: Data<'_>) -> Result<Vec<u32>, Error>;
}
Expand description

This represents the actions, that are supported with a dll.

Required Methods§

Source

fn inject(&self) -> Result<(), Error>

Injects a dll

Source

fn eject(&self) -> Result<(), Error>

Ejects a dll

Source

fn find_pid(name: Data<'_>) -> Result<Vec<u32>, Error>

This Function will find all currently processes, with a given name. Even if no processes are found, an empty Vector should return.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§