pub enum Error {
Show 13 variants
BinaryDeserializeError(BinarySerdeBufSafeError),
ElfMagicIsMissing,
RecordIndexOutOfBounds {
record_name: &'static str,
index: usize,
records_amount: usize,
},
OffsetRangeOutOfBounds {
offset_range: Range<usize>,
file_len: usize,
offset_range_of_what: &'static str,
},
StringOffsetOutOfBoundsOfStrtab {
offset: usize,
strtab_len: usize,
offset_of_what: &'static str,
},
StringTableNotNullTerminated,
StringTableInvalidUtf8,
NoSectionNamesStringTable,
SectionNamesSectionIsNotAStringTable,
UnexpectedEntrySize {
record_name: &'static str,
expected_size: u64,
specified_size: u64,
},
LinkedSectionOfSymbolTableSectionIsNotAStringTable {
linked_section_index: usize,
},
LinkedSectionOfRelocationSectionIsNotASymbolTable {
linked_section_index: usize,
},
SectionSymbolHasNoSectionIndex,
}
Variants§
BinaryDeserializeError(BinarySerdeBufSafeError)
ElfMagicIsMissing
RecordIndexOutOfBounds
OffsetRangeOutOfBounds
StringOffsetOutOfBoundsOfStrtab
StringTableNotNullTerminated
StringTableInvalidUtf8
NoSectionNamesStringTable
SectionNamesSectionIsNotAStringTable
UnexpectedEntrySize
LinkedSectionOfSymbolTableSectionIsNotAStringTable
LinkedSectionOfRelocationSectionIsNotASymbolTable
SectionSymbolHasNoSectionIndex
Trait Implementations§
source§impl From<BinarySerdeBufSafeError> for Error
impl From<BinarySerdeBufSafeError> for Error
source§fn from(source: BinarySerdeBufSafeError) -> Self
fn from(source: BinarySerdeBufSafeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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