Enum vodozemac::megolm::DecryptionError
source · [−]pub enum DecryptionError {
Signature(SignatureError),
InvalidMAC(MacError),
InvalidPadding(UnpadError),
UnknownMessageIndex(u32, u32),
}
Expand description
Error type for Megolm-based decryption failuers.
Variants
Signature(SignatureError)
The signature on the message was invalid.
InvalidMAC(MacError)
The message authentication code of the message was invalid.
InvalidPadding(UnpadError)
The ciphertext of the message isn’t padded correctly.
UnknownMessageIndex(u32, u32)
The session is missing the correct message key to decrypt the message, The Session has been ratcheted forwards and the message key isn’t available anymore.
Trait Implementations
sourceimpl Debug for DecryptionError
impl Debug for DecryptionError
sourceimpl Display for DecryptionError
impl Display for DecryptionError
sourceimpl Error for DecryptionError
impl Error for DecryptionError
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<MacError> for DecryptionError
impl From<MacError> for DecryptionError
sourceimpl From<SignatureError> for DecryptionError
impl From<SignatureError> for DecryptionError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
sourceimpl From<UnpadError> for DecryptionError
impl From<UnpadError> for DecryptionError
sourcefn from(source: UnpadError) -> Self
fn from(source: UnpadError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for DecryptionError
impl Send for DecryptionError
impl Sync for DecryptionError
impl Unpin for DecryptionError
impl !UnwindSafe for DecryptionError
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