Enum sequential_storage::map::MapError
source · #[non_exhaustive]pub enum MapError<I, S> {
Item(I),
Storage {
value: S,
},
FullStorage,
Corrupted {},
BufferTooBig,
BufferTooSmall(usize),
}
Expand description
The error type for map operations
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.
Item(I)
A storage item error
Storage
Fields
§
value: S
The value of the error
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)
Trait Implementations§
Auto Trait Implementations§
impl<I, S> RefUnwindSafe for MapError<I, S>where
I: RefUnwindSafe,
S: RefUnwindSafe,
impl<I, S> Send for MapError<I, S>
impl<I, S> Sync for MapError<I, S>
impl<I, S> Unpin for MapError<I, S>
impl<I, S> UnwindSafe for MapError<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