Enum inject_lib::error::Error
source · [−]pub enum Error {
Winapi(String, u32),
Ntdll(i32),
WTFConvert(OsString),
Io(Error),
Pelite(Error),
Unsupported(Option<String>),
Unsuccessful(Option<String>),
}
Expand description
This is the error type for this crate
Variants
Winapi(String, 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(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.
Unsuccessful(Option<String>)
unhelpful error message
This is mapped, if an action cannot be completed. Since this is not a particularly helpful error code, I will try and minimise it’s use.
This is not actually depracticed. It is just there, to warn me every time I use this.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more