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)>
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<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