pub enum ErrorKind {
Io(Error),
NotASegment,
UnsupportedVersion {
found: u16,
supported: u16,
},
FamilyMismatch {
found: FamilyId,
expected: FamilyId,
},
Corrupt(Region),
Malformed(&'static str),
UnknownRequiredSection {
id: SectionId,
version: u16,
},
OutOfRange {
id: SectionId,
end: u64,
len: u64,
},
TooLarge {
limit: u64,
},
DuplicateSection(SectionId),
UnfinishedSection(SectionId),
}Expand description
What went wrong with a segment.
Variants§
Io(Error)
NotASegment
UnsupportedVersion
FamilyMismatch
Corrupt(Region)
Malformed(&'static str)
UnknownRequiredSection
OutOfRange
TooLarge
DuplicateSection(SectionId)
UnfinishedSection(SectionId)
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ErrorKind
impl !UnwindSafe for ErrorKind
impl Forget for ErrorKind
impl Freeze for ErrorKind
impl Move for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnsafeUnpin for ErrorKind
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