pub enum Error {
    Winapi(Stringu32),
    Ntdll(i32),
    WTFConvert(OsString),
    Io(Error),
    Pelite(Error),
    Unsupported(Option<String>),
    InjectLib(CustomError),
}
Expand description

This is the error type for this crate

Variants

Winapi(Stringu32)

This represents an error from the regular windows api String is the method the error occurred in u32 is the Error, that occurred

Ntdll(i32)

Gets returned from NTDLL calls. This maps, if NTStatus is considered a Warning or Error. (Because typically NTDLL calls don’t succeed, even if the return type is just a Warning)

WTFConvert(OsString)

Gets returned, if a Wide String cannot be converted into a regular string.

Io(Error)

Passes errors from std::io.

Pelite(Error)

Contains errors from the pelite crate.

See pelite::Error

Unsupported(Option<String>)

This is mapped, if a certain thing could potentially be supported with more work, but just has not been implemented yet.

InjectLib(CustomError)

This represents Error Codes generated by this crate.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts a std::Io::Error into a Error for use in this crate

Converts to this type from the input type.

Converts to this type from the input type.

Transform Ntdll enum into Error

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

Converts the given value to a String. Read more

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.