pub enum BootfsParserError {
BadMagic,
DirEntryTooBig {
entry_index: u32,
dirsize: u32,
},
FailedToReadPayload {
status: Status,
},
FailedToParseHeader,
FailedToParseDirEntry,
InvalidNameFormat {
cause: Utf8Error,
},
InvalidNameString {
cause: FromBytesWithNulError,
},
InvalidNameLength {
name_len: u32,
max_name_len: u32,
entry_index: u32,
},
}
Variants§
BadMagic
DirEntryTooBig
FailedToReadPayload
FailedToParseHeader
FailedToParseDirEntry
InvalidNameFormat
InvalidNameString
Fields
§
cause: FromBytesWithNulError
InvalidNameLength
Trait Implementations§
Source§impl Debug for BootfsParserError
impl Debug for BootfsParserError
Source§impl Display for BootfsParserError
impl Display for BootfsParserError
Source§impl Error for BootfsParserError
impl Error for BootfsParserError
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 PartialEq for BootfsParserError
impl PartialEq for BootfsParserError
impl Eq for BootfsParserError
impl StructuralPartialEq for BootfsParserError
Auto Trait Implementations§
impl Freeze for BootfsParserError
impl RefUnwindSafe for BootfsParserError
impl Send for BootfsParserError
impl Sync for BootfsParserError
impl Unpin for BootfsParserError
impl UnwindSafe for BootfsParserError
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