pub enum SnapshotError {
SnapshotNotFound(String),
CorruptedSnapshot(String),
StorageError(String),
CompressionError(String),
IoError(Error),
SerializationError(String),
JsonError(Error),
InvalidChecksum {
expected: String,
actual: String,
},
CollectionError(String),
}Expand description
Errors that can occur during snapshot operations
Variants§
SnapshotNotFound(String)
CorruptedSnapshot(String)
StorageError(String)
CompressionError(String)
IoError(Error)
SerializationError(String)
JsonError(Error)
InvalidChecksum
CollectionError(String)
Implementations§
Trait Implementations§
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl Display for SnapshotError
impl Display for SnapshotError
Source§impl Error for SnapshotError
impl Error for SnapshotError
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()
Source§impl From<Error> for SnapshotError
impl From<Error> for SnapshotError
Auto Trait Implementations§
impl Freeze for SnapshotError
impl !RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl !UnwindSafe for SnapshotError
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