pub struct Injector<'a> {
    pub dll: &'a str,
    pub pid: u32,
}

Fields

dll: &'a strpid: u32

Implementations

Actually Inject the DLL. For now, the injection is only likely to succeed, if the injector, dll and target process have the same bitness (all x64, or all x86) Open a Pr, if you know more about this! Return information (Outside of Ok and Err) is purely informational (for now)! It should not be relied upon, and may change in Minor updates. Notice:This implementation blocks, and waits, until the library is injected, or the injection failed.

Panic

This function may panic, if a Handle cleanup fails.

Find a PID, where the process-name matches some user defined selector

This function will return, whether a dll is x64, or x86. The Return value will be Ok(true), if the dll is x64(64bit), and Ok(false), if the dll is x86(32bit).

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.