pub enum SaveError<StorageError> {
Storage(StorageError),
SlotEmpty,
SlotCorrupted,
OutOfSpace,
Serialization(SerializationError),
VerificationFailed,
}Expand description
Errors that can occur during save operations.
Variants§
Storage(StorageError)
The underlying storage returned an error.
SlotEmpty
The slot is empty (no data to read).
SlotCorrupted
The slot data is corrupted.
OutOfSpace
Not enough free space to write the data.
Serialization(SerializationError)
Failed to serialize / deserialize the data.
VerificationFailed
Write verification failed - data read back didn’t match what was written.
Trait Implementations§
impl<StorageError: Eq> Eq for SaveError<StorageError>
impl<StorageError> StructuralPartialEq for SaveError<StorageError>
Auto Trait Implementations§
impl<StorageError> Freeze for SaveError<StorageError>where
StorageError: Freeze,
impl<StorageError> RefUnwindSafe for SaveError<StorageError>where
StorageError: RefUnwindSafe,
impl<StorageError> Send for SaveError<StorageError>where
StorageError: Send,
impl<StorageError> Sync for SaveError<StorageError>where
StorageError: Sync,
impl<StorageError> Unpin for SaveError<StorageError>where
StorageError: Unpin,
impl<StorageError> UnwindSafe for SaveError<StorageError>where
StorageError: 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