Enum vodozemac::megolm::SessionKeyDecodeError
source · [−]pub enum SessionKeyDecodeError {
Version(u8, u8),
Read(Error),
Base64(DecodeError),
Signature(SignatureError),
PublicKey(KeyError),
}
Expand description
Error type describing failure modes for the SessionKey
and
ExportedSessionKey
decoding.
Variants
Version(u8, u8)
The encoded session key had a unsupported version.
Read(Error)
The encoded session key didn’t contain enough data to be decoded.
Base64(DecodeError)
The encoded session key wasn’t valid base64.
Signature(SignatureError)
The signature on the session key was invalid.
PublicKey(KeyError)
The encoded session key contains an invalid public key.
Trait Implementations
sourceimpl Debug for SessionKeyDecodeError
impl Debug for SessionKeyDecodeError
sourceimpl Display for SessionKeyDecodeError
impl Display for SessionKeyDecodeError
sourceimpl Error for SessionKeyDecodeError
impl Error for SessionKeyDecodeError
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<DecodeError> for SessionKeyDecodeError
impl From<DecodeError> for SessionKeyDecodeError
sourcefn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl From<Error> for SessionKeyDecodeError
impl From<Error> for SessionKeyDecodeError
sourceimpl From<KeyError> for SessionKeyDecodeError
impl From<KeyError> for SessionKeyDecodeError
sourceimpl From<SignatureError> for SessionKeyDecodeError
impl From<SignatureError> for SessionKeyDecodeError
sourcefn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for SessionKeyDecodeError
impl Send for SessionKeyDecodeError
impl Sync for SessionKeyDecodeError
impl Unpin for SessionKeyDecodeError
impl !UnwindSafe for SessionKeyDecodeError
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