pub enum SnapshotCodecError {
Io(Error),
Encode(String),
Decode(String),
BadMagic,
UnsupportedVersion(u32),
UnsupportedCompression(&'static str),
ChecksumMismatch,
MissingEncryptionKey(String),
MissingPassword(String),
PasswordKdf(String),
Encrypt,
Decrypt,
}Variants§
Io(Error)
Encode(String)
Decode(String)
BadMagic
UnsupportedVersion(u32)
UnsupportedCompression(&'static str)
ChecksumMismatch
MissingEncryptionKey(String)
MissingPassword(String)
PasswordKdf(String)
Encrypt
Decrypt
Trait Implementations§
Source§impl Debug for SnapshotCodecError
impl Debug for SnapshotCodecError
Source§impl Display for SnapshotCodecError
impl Display for SnapshotCodecError
Source§impl Error for SnapshotCodecError
impl Error for SnapshotCodecError
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()
Auto Trait Implementations§
impl Freeze for SnapshotCodecError
impl !RefUnwindSafe for SnapshotCodecError
impl Send for SnapshotCodecError
impl Sync for SnapshotCodecError
impl Unpin for SnapshotCodecError
impl UnsafeUnpin for SnapshotCodecError
impl !UnwindSafe for SnapshotCodecError
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