pub enum OlmSessionCreationError {
MissingOneTimeKey(Curve25519PublicKey),
MismatchedIdentityKey(Curve25519PublicKey, Curve25519PublicKey),
Decryption(DecryptionError),
}Available on crate feature
e2e-encryption only.Expand description
Error describing failure modes when creating a Olm Session from an incoming Olm message.
Variants
MissingOneTimeKey(Curve25519PublicKey)
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(Curve25519PublicKey, Curve25519PublicKey)
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
impl Debug for SessionCreationError
impl Debug for SessionCreationError
impl Display for SessionCreationError
impl Display for SessionCreationError
impl Error for SessionCreationError
impl Error for SessionCreationError
fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. 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()
impl From<DecryptionError> for SessionCreationError
impl From<DecryptionError> for SessionCreationError
fn from(source: DecryptionError) -> SessionCreationError
fn from(source: DecryptionError) -> SessionCreationError
Converts to this type from the input type.
impl From<SessionCreationError> for SessionCreationError
impl From<SessionCreationError> for SessionCreationError
fn from(source: SessionCreationError) -> SessionCreationError
fn from(source: SessionCreationError) -> SessionCreationError
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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