Enum matrix_sdk::encryption::vodozemac::KeyError
[−]pub enum KeyError {
Base64Error(DecodeError),
InvalidKeyLength(usize),
Signature(SignatureError),
NonContributoryKey,
}Available on crate feature
e2e-encryption only.Expand description
Error type describing failures that can happen when we try decode or use a cryptographic key.
Variants
Base64Error(DecodeError)
InvalidKeyLength(usize)
Signature(SignatureError)
NonContributoryKey
At least one of the keys did not have contributory behaviour and the resulting shared secret would have been insecure.
Trait Implementations
impl Error for KeyError
impl Error for KeyError
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<KeyError> for DecodeError
impl From<KeyError> for DecodeError
fn from(source: KeyError) -> DecodeError
fn from(source: KeyError) -> DecodeError
Converts to this type from the input type.
impl From<KeyError> for DecodingError
impl From<KeyError> for DecodingError
fn from(source: KeyError) -> DecodingError
fn from(source: KeyError) -> DecodingError
Converts to this type from the input type.
impl From<KeyError> for SecretImportError
impl From<KeyError> for SecretImportError
fn from(source: KeyError) -> SecretImportError
fn from(source: KeyError) -> SecretImportError
Converts to this type from the input type.
impl From<KeyError> for SessionCreationError
impl From<KeyError> for SessionCreationError
fn from(source: KeyError) -> SessionCreationError
fn from(source: KeyError) -> SessionCreationError
Converts to this type from the input type.
impl From<KeyError> for SessionKeyDecodeError
impl From<KeyError> for SessionKeyDecodeError
fn from(source: KeyError) -> SessionKeyDecodeError
fn from(source: KeyError) -> SessionKeyDecodeError
Converts to this type from the input type.
impl From<KeyError> for SignatureError
impl From<KeyError> for SignatureError
fn from(source: KeyError) -> SignatureError
fn from(source: KeyError) -> SignatureError
Converts to this type from the input type.
impl From<SignatureError> for KeyError
impl From<SignatureError> for KeyError
fn from(source: SignatureError) -> KeyError
fn from(source: SignatureError) -> KeyError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for KeyError
impl Send for KeyError
impl Sync for KeyError
impl Unpin for KeyError
impl !UnwindSafe for KeyError
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