pub enum ElfParseError {
ReadError(Status),
ParseError(&'static str),
InvalidFileHeader(&'static str),
InvalidProgramHeader(&'static str),
MultipleHeaders(SegmentType),
}
Expand description
Possible errors that can occur during ELF parsing.
Variants§
ReadError(Status)
ParseError(&'static str)
InvalidFileHeader(&'static str)
InvalidProgramHeader(&'static str)
MultipleHeaders(SegmentType)
Implementations§
Source§impl ElfParseError
impl ElfParseError
Sourcepub fn as_zx_status(&self) -> Status
pub fn as_zx_status(&self) -> Status
Returns an appropriate zx::Status code for the given error.
Trait Implementations§
Source§impl Debug for ElfParseError
impl Debug for ElfParseError
Source§impl Display for ElfParseError
impl Display for ElfParseError
Source§impl Error for ElfParseError
impl Error for ElfParseError
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<ElfParseError> for ProcessBuilderError
impl From<ElfParseError> for ProcessBuilderError
Source§fn from(source: ElfParseError) -> Self
fn from(source: ElfParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ElfParseError
impl RefUnwindSafe for ElfParseError
impl Send for ElfParseError
impl Sync for ElfParseError
impl Unpin for ElfParseError
impl UnwindSafe for ElfParseError
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