pub enum OlmPkDecryptionError {
BadAccountKey,
BadMessageMac,
InvalidBase64,
OutputBufferTooSmall,
InputBufferTooSmall,
Unknown(String),
}
Expand description
All errors that could be caused by an operation regarding
OlmPkDecryption
.
Errors are named exactly like the ones in libolm.
Variants§
Trait Implementations§
Source§impl Debug for OlmPkDecryptionError
impl Debug for OlmPkDecryptionError
Source§impl Display for OlmPkDecryptionError
impl Display for OlmPkDecryptionError
Source§impl Error for OlmPkDecryptionError
impl Error for OlmPkDecryptionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<&str> for OlmPkDecryptionError
impl From<&str> for OlmPkDecryptionError
Source§impl PartialEq for OlmPkDecryptionError
impl PartialEq for OlmPkDecryptionError
impl StructuralPartialEq for OlmPkDecryptionError
Auto Trait Implementations§
impl Freeze for OlmPkDecryptionError
impl RefUnwindSafe for OlmPkDecryptionError
impl Send for OlmPkDecryptionError
impl Sync for OlmPkDecryptionError
impl Unpin for OlmPkDecryptionError
impl UnwindSafe for OlmPkDecryptionError
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