Enum solana_rbpf::elf_parser::ElfParserError
source · [−]pub enum ElfParserError {
Show 14 variants
InvalidFileHeader,
InvalidProgramHeader,
InvalidSectionHeader,
InvalidString,
OutOfBounds,
InvalidSize,
Overlap,
SectionNotInOrder,
NoSectionNameStringTable,
InvalidDynamicSectionTable,
InvalidRelocationTable,
InvalidAlignment,
NoStringTable,
NoDynamicStringTable,
}
Expand description
Error definitions
Variants
InvalidFileHeader
ELF file header is inconsistent or unsupported
InvalidProgramHeader
Program header is inconsistent or unsupported
InvalidSectionHeader
Section header is inconsistent or unsupported
InvalidString
Section or symbol name is not UTF8 or too long
OutOfBounds
An index or memory range does exeed its boundaries
InvalidSize
The size isn’t valid
Overlap
Headers, tables or sections do overlap in the file
SectionNotInOrder
Sections are not sorted in ascending order
NoSectionNameStringTable
No section name string table present in the file
InvalidDynamicSectionTable
Invalid .dynamic section table
InvalidRelocationTable
Invalid relocation table
InvalidAlignment
Invalid alignment
NoStringTable
No string table
NoDynamicStringTable
No dynamic string table
Trait Implementations
sourceimpl Debug for ElfParserError
impl Debug for ElfParserError
sourceimpl Display for ElfParserError
impl Display for ElfParserError
sourceimpl Error for ElfParserError
impl Error for ElfParserError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ElfParserError> for ElfError
impl From<ElfParserError> for ElfError
sourcefn from(err: ElfParserError) -> Self
fn from(err: ElfParserError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ElfParserError> for ElfParserError
impl PartialEq<ElfParserError> for ElfParserError
impl Eq for ElfParserError
impl StructuralEq for ElfParserError
impl StructuralPartialEq for ElfParserError
Auto Trait Implementations
impl RefUnwindSafe for ElfParserError
impl Send for ElfParserError
impl Sync for ElfParserError
impl Unpin for ElfParserError
impl UnwindSafe for ElfParserError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more