pub enum IdentifiersError {
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
TooMany(TryFromIntError),
Text(FromUtf8Error),
}Expand description
A failure while reading or writing the identifiers.
Variants§
Io(Error)
An I/O failure.
Magic
The bytes do not start with the identifiers magic.
Version
The layout version is not the one this build reads.
TooMany(TryFromIntError)
More identifiers than the u32 count addresses.
Text(FromUtf8Error)
A code is not UTF-8.
Trait Implementations§
Source§impl Debug for IdentifiersError
impl Debug for IdentifiersError
Source§impl Display for IdentifiersError
impl Display for IdentifiersError
Source§impl Error for IdentifiersError
impl Error for IdentifiersError
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<Error> for IdentifiersError
impl From<Error> for IdentifiersError
Source§impl From<FromUtf8Error> for IdentifiersError
impl From<FromUtf8Error> for IdentifiersError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IdentifiersError
impl !UnwindSafe for IdentifiersError
impl Freeze for IdentifiersError
impl Send for IdentifiersError
impl Sync for IdentifiersError
impl Unpin for IdentifiersError
impl UnsafeUnpin for IdentifiersError
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