pub enum KeyTableError {
Io(Error),
Magic,
Version {
found: u32,
expected: u32,
},
}Expand description
A failure while reading or writing the table.
Variants§
Io(Error)
An I/O failure.
Magic
The bytes do not start with the table magic.
Version
The layout version is not the one this build reads.
Trait Implementations§
Source§impl Debug for KeyTableError
impl Debug for KeyTableError
Source§impl Display for KeyTableError
impl Display for KeyTableError
Source§impl Error for KeyTableError
impl Error for KeyTableError
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 KeyTableError
impl !UnwindSafe for KeyTableError
impl Freeze for KeyTableError
impl Send for KeyTableError
impl Sync for KeyTableError
impl Unpin for KeyTableError
impl UnsafeUnpin for KeyTableError
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