pub enum ElfReadError {
WrongReadSize(u64, u64),
SeekFromEndError(Error),
ReadFileError(Error),
OpenElfError(Error),
ParseElfError(&'static str),
SectionRangeError,
SectionNotAligned(String, usize),
FileSeekError(Error),
WriteSectionError(Error),
}Variants§
WrongReadSize(u64, u64)
Read an unexpected number of bytes
SeekFromEndError(Error)
“Couldn’t seek to end of file”
ReadFileError(Error)
Couldn’t read ELF file
OpenElfError(Error)
Couldn’t open the ELF file
ParseElfError(&'static str)
Couldn’t parse the ELF file
SectionRangeError
Section wasn’t in range
SectionNotAligned(String, usize)
Section wasn’t word-aligned
FileSeekError(Error)
Couldn’t seek the file to write the section
WriteSectionError(Error)
Couldn’t write the section to the file
Trait Implementations§
Source§impl Debug for ElfReadError
impl Debug for ElfReadError
Auto Trait Implementations§
impl Freeze for ElfReadError
impl !RefUnwindSafe for ElfReadError
impl Send for ElfReadError
impl Sync for ElfReadError
impl Unpin for ElfReadError
impl !UnwindSafe for ElfReadError
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