pub enum DehydratedDeviceError {
MissingVersion,
Version(u32, u32),
InvalidNonce,
Base64(Base64DecodeError),
Decryption(Error),
LibolmPickle(LibolmPickleError),
}
Expand description
Error type describing the various ways dehydrated devices can fail to be decoded.
Variants§
MissingVersion
The pickle is missing a valid version.
Version(u32, u32)
The pickle has a unsupported version.
InvalidNonce
Invalid nonce.
Base64(Base64DecodeError)
The pickle wasn’t valid base64.
Decryption(Error)
The pickle could not have been decrypted.
LibolmPickle(LibolmPickleError)
There was an error with the libolm pickle format
Trait Implementations§
Source§impl Debug for DehydratedDeviceError
impl Debug for DehydratedDeviceError
Source§impl Display for DehydratedDeviceError
impl Display for DehydratedDeviceError
Source§impl Error for DehydratedDeviceError
impl Error for DehydratedDeviceError
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<DecodeError> for DehydratedDeviceError
impl From<DecodeError> for DehydratedDeviceError
Source§fn from(source: Base64DecodeError) -> Self
fn from(source: Base64DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DehydratedDeviceError
impl From<Error> for DehydratedDeviceError
Source§impl From<LibolmPickleError> for DehydratedDeviceError
impl From<LibolmPickleError> for DehydratedDeviceError
Source§fn from(source: LibolmPickleError) -> Self
fn from(source: LibolmPickleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DehydratedDeviceError
impl !RefUnwindSafe for DehydratedDeviceError
impl Send for DehydratedDeviceError
impl Sync for DehydratedDeviceError
impl Unpin for DehydratedDeviceError
impl !UnwindSafe for DehydratedDeviceError
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