Enum solana_rbpf::elf_parser::ElfParserError
source · pub enum ElfParserError {
Show 15 variants
InvalidFileHeader,
InvalidProgramHeader,
InvalidSectionHeader,
InvalidString,
StringTooLong(String, usize),
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
StringTooLong(String, usize)
Section or symbol name is 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§
source§impl Debug for ElfParserError
impl Debug for ElfParserError
source§impl Display for ElfParserError
impl Display for ElfParserError
source§impl Error for ElfParserError
impl Error for ElfParserError
1.30.0 · 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<ElfParserError> for ElfError
impl From<ElfParserError> for ElfError
source§fn from(err: ElfParserError) -> Self
fn from(err: ElfParserError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ElfParserError
impl PartialEq for ElfParserError
impl Eq for ElfParserError
impl StructuralPartialEq for ElfParserError
Auto Trait Implementations§
impl Freeze for ElfParserError
impl RefUnwindSafe for ElfParserError
impl Send for ElfParserError
impl Sync for ElfParserError
impl Unpin for ElfParserError
impl UnwindSafe for ElfParserError
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more