pub enum SnapshotError {
Io(Error),
Index {
source: Box<MaterializedIndexError>,
},
Invalid {
reason: &'static str,
},
UnsupportedVersion {
found: u16,
supported: u16,
},
CheckpointConflict {
sequence: u64,
},
FileLimitExceeded {
actual: u64,
maximum: u64,
},
EntryLimitExceeded {
actual: u64,
maximum: u64,
},
DecodedBytesLimitExceeded {
maximum: u64,
},
}Expand description
Failure while creating or verifying a logical snapshot.
Variants§
Io(Error)
A filesystem operation failed.
Index
The materialized index could not be read.
Fields
§
source: Box<MaterializedIndexError>Underlying index failure.
Invalid
Snapshot bytes violate the canonical format.
UnsupportedVersion
The snapshot was produced by a future disk format.
CheckpointConflict
A same-sequence snapshot exists for a different commit.
FileLimitExceeded
Snapshot file length exceeds caller policy.
EntryLimitExceeded
Snapshot entry count exceeds caller policy.
DecodedBytesLimitExceeded
Aggregate decoded entry bytes exceed caller policy.
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
Source§impl From<MaterializedIndexError> for SnapshotError
impl From<MaterializedIndexError> for SnapshotError
Source§fn from(source: MaterializedIndexError) -> Self
fn from(source: MaterializedIndexError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for BackupError
impl From<SnapshotError> for BackupError
Source§fn from(source: SnapshotError) -> Self
fn from(source: SnapshotError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotError> for StorageError
impl From<SnapshotError> for StorageError
Source§fn from(source: SnapshotError) -> Self
fn from(source: SnapshotError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SnapshotError
impl !UnwindSafe for SnapshotError
impl Freeze for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl UnsafeUnpin 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