pub enum LoadStoreError<T: MaybeDefmtFormat> {
FlashWrite(T),
FlashRead(T),
InvalidBufferSize,
WriteVerificationFailed,
AppError(Error),
}Expand description
Errors during loading from and storing to flash.
Sometimes specific to the flash implementation.
Variants§
FlashWrite(T)
Writing to flash has failed. Contains the error returned by the storage impl.
FlashRead(T)
Reading from flash has failed. Contains the error returned by the storage impl.
InvalidBufferSize
Buffer size wrong
WriteVerificationFailed
Value read back from the flash during verification did not match serialized list node.
AppError(Error)
Application-level error that occurred during list operations.
Trait Implementations§
Source§impl<T: Debug + MaybeDefmtFormat> Debug for LoadStoreError<T>
impl<T: Debug + MaybeDefmtFormat> Debug for LoadStoreError<T>
Source§impl<T: MaybeDefmtFormat> From<Error> for LoadStoreError<T>
impl<T: MaybeDefmtFormat> From<Error> for LoadStoreError<T>
Source§impl<T: PartialEq + MaybeDefmtFormat> PartialEq for LoadStoreError<T>
impl<T: PartialEq + MaybeDefmtFormat> PartialEq for LoadStoreError<T>
Source§fn eq(&self, other: &LoadStoreError<T>) -> bool
fn eq(&self, other: &LoadStoreError<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<T: PartialEq + MaybeDefmtFormat> StructuralPartialEq for LoadStoreError<T>
Auto Trait Implementations§
impl<T> Freeze for LoadStoreError<T>where
T: Freeze,
impl<T> RefUnwindSafe for LoadStoreError<T>where
T: RefUnwindSafe,
impl<T> Send for LoadStoreError<T>where
T: Send,
impl<T> Sync for LoadStoreError<T>where
T: Sync,
impl<T> Unpin for LoadStoreError<T>where
T: Unpin,
impl<T> UnsafeUnpin for LoadStoreError<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for LoadStoreError<T>where
T: UnwindSafe,
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