#[non_exhaustive]pub enum SecureSessionError {
BadCryptogram,
NotSecure,
BadTransition,
BadPadding,
}Expand description
Subcategory of secure-channel state errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
BadCryptogram
Cryptogram comparison failed.
NotSecure
Caller attempted to wrap a frame before SCS was fully established.
BadTransition
SCS event arrived in a state that does not accept it.
BadPadding
Encrypted DATA must be padded to a 16-byte multiple.
Trait Implementations§
Source§impl Clone for SecureSessionError
impl Clone for SecureSessionError
Source§fn clone(&self) -> SecureSessionError
fn clone(&self) -> SecureSessionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecureSessionError
impl Debug for SecureSessionError
Source§impl From<SecureSessionError> for Error
impl From<SecureSessionError> for Error
Source§fn from(e: SecureSessionError) -> Self
fn from(e: SecureSessionError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SecureSessionError
impl PartialEq for SecureSessionError
impl Copy for SecureSessionError
impl Eq for SecureSessionError
impl StructuralPartialEq for SecureSessionError
Auto Trait Implementations§
impl Freeze for SecureSessionError
impl RefUnwindSafe for SecureSessionError
impl Send for SecureSessionError
impl Sync for SecureSessionError
impl Unpin for SecureSessionError
impl UnsafeUnpin for SecureSessionError
impl UnwindSafe for SecureSessionError
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