Enum vodozemac::olm::SessionCreationError
source · pub enum SessionCreationError {
MissingOneTimeKey(Curve25519PublicKey),
MismatchedIdentityKey(Curve25519PublicKey, Curve25519PublicKey),
Decryption(DecryptionError),
}
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§
source§impl Debug for SessionCreationError
impl Debug for SessionCreationError
source§impl Display for SessionCreationError
impl Display for SessionCreationError
source§impl Error for SessionCreationError
impl Error for SessionCreationError
source§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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<DecryptionError> for SessionCreationError
impl From<DecryptionError> for SessionCreationError
source§fn from(source: DecryptionError) -> Self
fn from(source: DecryptionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionCreationError
impl RefUnwindSafe for SessionCreationError
impl Send for SessionCreationError
impl Sync for SessionCreationError
impl Unpin for SessionCreationError
impl UnwindSafe for SessionCreationError
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