pub enum Error {
Winapi(&'static str, u32),
Ntdll(i32),
WTFConvert(DecodeUtf16Error),
Io(Error),
Pelite(Error),
Unsupported(Option<&'static str>),
InjectLib(CustomError),
}
Expand description
This is the error type for this crate
Variants§
Winapi(&'static str, u32)
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(DecodeUtf16Error)
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<&'static str>)
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§
Source§impl From<CustomError> for Error
impl From<CustomError> for Error
Source§fn from(x: CustomError) -> Self
fn from(x: CustomError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more