pub enum HaoError {
Show 25 variants
IoError(Error),
BadPeFormat,
PeError(PewterError),
NotDotNetBinary,
BadImageFormat(&'static str),
BadRva(u32),
NotEnoughDataLeft(usize),
InvalidColumnSize(i32),
InvalidCodedToken(u32, &'static str),
InvalidCodedTokenOffset(u32, &'static str),
InvalidStreamIndex(&'static str, usize),
InvalidUTF8String(usize, Vec<u8>),
InvalidSignatureCallingConvention(u8),
InvalidSignatureElementType(u8, usize),
InvalidSignature(&'static str, usize),
InvalidMethodBody(&'static str, usize),
InvalidOpCode(u16, usize),
InvalidToken(u32),
InvalidCustomAttribute(String),
ValueTooLarge(&'static str),
WriteError(String),
InvalidSignatureForEntry(&'static str),
RecursionLimitReached,
InvalidEntryRefrence(&'static str, usize),
Unknown,
}Variants§
IoError(Error)
BadPeFormat
PeError(PewterError)
NotDotNetBinary
BadImageFormat(&'static str)
BadRva(u32)
NotEnoughDataLeft(usize)
InvalidColumnSize(i32)
InvalidCodedToken(u32, &'static str)
InvalidCodedTokenOffset(u32, &'static str)
InvalidStreamIndex(&'static str, usize)
InvalidUTF8String(usize, Vec<u8>)
InvalidSignatureCallingConvention(u8)
InvalidSignatureElementType(u8, usize)
InvalidSignature(&'static str, usize)
InvalidMethodBody(&'static str, usize)
InvalidOpCode(u16, usize)
InvalidToken(u32)
InvalidCustomAttribute(String)
ValueTooLarge(&'static str)
WriteError(String)
InvalidSignatureForEntry(&'static str)
RecursionLimitReached
InvalidEntryRefrence(&'static str, usize)
Unknown
Trait Implementations§
Source§impl Error for HaoError
impl Error for HaoError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for HaoError
impl !UnwindSafe for HaoError
impl Freeze for HaoError
impl Send for HaoError
impl Sync for HaoError
impl Unpin for HaoError
impl UnsafeUnpin for HaoError
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