pub enum ElfError {
TooShort,
MalformedHeader,
IncorrectMagic,
SectionInvalidType,
InvalidSymbolTable,
SegmentInvalidType,
}
Variants§
TooShort
The provided byte stream was too short to be a valid ELF.
MalformedHeader
The header was malformed in some way.
IncorrectMagic
The magic number at the beginning of the file (should be 0x7f, 'E', 'L', 'F'
) is
incorrect.
SectionInvalidType
InvalidSymbolTable
The .symtab
section is not actually a symbol table.
SegmentInvalidType
Trait Implementations§
impl Eq for ElfError
impl StructuralPartialEq for ElfError
Auto Trait Implementations§
impl Freeze for ElfError
impl RefUnwindSafe for ElfError
impl Send for ElfError
impl Sync for ElfError
impl Unpin for ElfError
impl UnwindSafe for ElfError
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