Enum vodozemac::LibolmPickleError
source · [−]pub enum LibolmPickleError {
MissingVersion,
Version(u32, u32),
Base64(Base64DecodeError),
Decryption(DecryptionError),
PublicKey(KeyError),
InvalidSession,
Decode(LibolmDecodeError),
}
Expand description
Error type describing the various ways libolm pickles can fail to be decoded.
Variants
MissingVersion
The pickle is missing a valid version.
Version(u32, u32)
The pickle has a unsupported version.
Base64(Base64DecodeError)
The pickle wasn’t valid base64.
Decryption(DecryptionError)
The pickle could not have been decrypted.
PublicKey(KeyError)
The pickle contains an invalid public key.
InvalidSession
The pickle does not contain a valid receiving or sending chain. A valid Olm session needs to have at least one of them.
Decode(LibolmDecodeError)
The payload of the pickle could not be decoded.
Trait Implementations
sourceimpl Debug for LibolmPickleError
impl Debug for LibolmPickleError
sourceimpl Display for LibolmPickleError
impl Display for LibolmPickleError
sourceimpl Error for LibolmPickleError
impl Error for LibolmPickleError
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<DecodeError> for LibolmPickleError
impl From<DecodeError> for LibolmPickleError
sourcefn from(source: Base64DecodeError) -> Self
fn from(source: Base64DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for LibolmPickleError
impl Send for LibolmPickleError
impl Sync for LibolmPickleError
impl Unpin for LibolmPickleError
impl !UnwindSafe for LibolmPickleError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more