Enum vodozemac::olm::SessionCreationError
source · [−]pub enum SessionCreationError {
MissingOneTimeKey,
MismatchedIdentityKey,
Decryption(DecryptionError),
}
Expand description
Error describing failure modes when creating a Olm Session from an incoming Olm message.
Variants
MissingOneTimeKey
The pre-key message contained an unknown one-time key. This happens either because we never had such a one-time key, or because it has already been used up.
MismatchedIdentityKey
The pre-key message contains a curve25519 identity key that doesn’t match to the identity key that was given.
Decryption(DecryptionError)
The pre-key message that was used to establish the Session couldn’t be decrypted. The message needs to be decryptable, otherwise we will have created a Session that wasn’t used to encrypt the pre-key message.
Trait Implementations
sourceimpl Debug for SessionCreationError
impl Debug for SessionCreationError
sourceimpl Display for SessionCreationError
impl Display for SessionCreationError
sourceimpl Error for SessionCreationError
impl Error for SessionCreationError
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>
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
use the Display impl or to_string()
sourceimpl From<DecryptionError> for SessionCreationError
impl From<DecryptionError> for SessionCreationError
sourcefn from(source: DecryptionError) -> Self
fn from(source: DecryptionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for SessionCreationError
impl Send for SessionCreationError
impl Sync for SessionCreationError
impl Unpin for SessionCreationError
impl UnwindSafe for SessionCreationError
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