pub enum SnapshotLoaderError {
IoError(String),
DecodeError(String),
MappingError(SnapshotMappingError),
IncompatibleVersion {
expected: u32,
found: u32,
},
CrcMismatch {
expected: u32,
actual: u32,
},
NotFound,
}Expand description
Errors that can occur during snapshot loading.
Variants§
IoError(String)
I/O error during load.
DecodeError(String)
The snapshot could not be decoded.
MappingError(SnapshotMappingError)
The decoded snapshot violated mapping/parity invariants.
IncompatibleVersion
The snapshot version is incompatible.
Fields
CrcMismatch
The snapshot CRC-32 checksum does not match the payload.
Fields
NotFound
The snapshot file does not exist.
Trait Implementations§
Source§impl Clone for SnapshotLoaderError
impl Clone for SnapshotLoaderError
Source§fn clone(&self) -> SnapshotLoaderError
fn clone(&self) -> SnapshotLoaderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotLoaderError
impl Debug for SnapshotLoaderError
Source§impl Display for SnapshotLoaderError
impl Display for SnapshotLoaderError
Source§impl Error for SnapshotLoaderError
impl Error for SnapshotLoaderError
1.30.0 · 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 SnapshotLoaderError
impl From<Error> for SnapshotLoaderError
Source§impl PartialEq for SnapshotLoaderError
impl PartialEq for SnapshotLoaderError
impl Eq for SnapshotLoaderError
impl StructuralPartialEq for SnapshotLoaderError
Auto Trait Implementations§
impl Freeze for SnapshotLoaderError
impl RefUnwindSafe for SnapshotLoaderError
impl Send for SnapshotLoaderError
impl Sync for SnapshotLoaderError
impl Unpin for SnapshotLoaderError
impl UnsafeUnpin for SnapshotLoaderError
impl UnwindSafe for SnapshotLoaderError
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