pub enum ParseElfError {
IoError {
inner: Error,
},
InvalidSectionType(u32),
InvalidProgramFlags(u32),
InvalidProgramHeader(u32),
InvalidVersion(u32),
InvalidMachine(u16),
InvalidElfType(u16),
InvalidOsAbi(u8),
InvalidIdentVersion(u8),
InvalidDataFormat(u8),
InvalidDataClass(u8),
InvalidParsingDescriptor,
}Expand description
The Elfy error type
Various errors may occur while parsing, including IO errors. This type captures all of them
Variants§
IoError
Captures an std::io::Error, this error is generated by the Rust STL
InvalidSectionType(u32)
InvalidProgramFlags(u32)
InvalidProgramHeader(u32)
InvalidVersion(u32)
InvalidMachine(u16)
InvalidElfType(u16)
InvalidOsAbi(u8)
InvalidIdentVersion(u8)
InvalidDataFormat(u8)
InvalidDataClass(u8)
InvalidParsingDescriptor
Indicates that the Descriptor used to parse a given item within an ELF file is invalid in the parsers current state
Generally, this should never be seen under normal use cases. It may signal the presence of a bug within Elfy.
Trait Implementations§
Source§impl Debug for ParseElfError
impl Debug for ParseElfError
Source§impl Display for ParseElfError
impl Display for ParseElfError
Source§impl Error for ParseElfError
impl Error for ParseElfError
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()
Source§impl From<Error> for ParseElfError
impl From<Error> for ParseElfError
Source§fn from(err: Error) -> ParseElfError
fn from(err: Error) -> ParseElfError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ParseElfError
impl !RefUnwindSafe for ParseElfError
impl Send for ParseElfError
impl Sync for ParseElfError
impl Unpin for ParseElfError
impl !UnwindSafe for ParseElfError
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