Enum vodozemac::megolm::SessionKeyDecodeError
source · pub enum SessionKeyDecodeError {
Version(u8, u8),
Read(Error),
Base64(Error),
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(Error)
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§
source§impl Debug for SessionKeyDecodeError
impl Debug for SessionKeyDecodeError
source§impl Display for SessionKeyDecodeError
impl Display for SessionKeyDecodeError
source§impl Error for SessionKeyDecodeError
impl Error for SessionKeyDecodeError
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<Error> for SessionKeyDecodeError
impl From<Error> for SessionKeyDecodeError
source§impl From<Error> for SessionKeyDecodeError
impl From<Error> for SessionKeyDecodeError
source§impl From<KeyError> for SessionKeyDecodeError
impl From<KeyError> for SessionKeyDecodeError
source§impl From<SignatureError> for SessionKeyDecodeError
impl From<SignatureError> for SessionKeyDecodeError
source§fn from(source: SignatureError) -> Self
fn from(source: SignatureError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SessionKeyDecodeError
impl !RefUnwindSafe for SessionKeyDecodeError
impl Send for SessionKeyDecodeError
impl Sync for SessionKeyDecodeError
impl Unpin for SessionKeyDecodeError
impl !UnwindSafe for SessionKeyDecodeError
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