Enum sequential_storage::Error
source · #[non_exhaustive]pub enum Error<I, S> {
Storage {
value: S,
},
FullStorage,
Corrupted {},
BufferTooBig,
BufferTooSmall(usize),
Item(I),
}
Expand description
The main error type
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Storage
Fields
§
value: S
The error value
An error in the storage (flash)
FullStorage
The item cannot be stored anymore because the storage is full. If you get this error some data may be lost.
Corrupted
It’s been detected that the memory is likely corrupted. You may want to erase the memory to recover.
BufferTooBig
A provided buffer was to big to be used
BufferTooSmall(usize)
A provided buffer was to small to be used (usize is size needed)
Item(I)
A storage item error
Trait Implementations§
Auto Trait Implementations§
impl<I, S> RefUnwindSafe for Error<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for Error<I, S>
impl<I, S> Sync for Error<I, S>
impl<I, S> Unpin for Error<I, S>
impl<I, S> UnwindSafe for Error<I, S>where
I: UnwindSafe,
S: 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