pub enum MruPersistError {
Io(Error),
Encode(EncodeError),
Decode(DecodeError),
VersionMismatch {
expected: u32,
found: u32,
},
}Expand description
Errors from MRU index persistence. The host (slice 14c)
decides whether to discard + start fresh, retry, or surface
to the user. Default policy: discard on VersionMismatch /
Decode; log + retry on Io (write); never block boot.
Variants§
Trait Implementations§
Source§impl Debug for MruPersistError
impl Debug for MruPersistError
Source§impl Display for MruPersistError
impl Display for MruPersistError
Source§impl Error for MruPersistError
impl Error for MruPersistError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for MruPersistError
impl !UnwindSafe for MruPersistError
impl Freeze for MruPersistError
impl Send for MruPersistError
impl Sync for MruPersistError
impl Unpin for MruPersistError
impl UnsafeUnpin for MruPersistError
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