#[repr(u16)]pub enum SecureChannelCode {
SessionEstablishmentSuccess = 0,
NoSharedTrustRoots = 1,
InvalidParameter = 2,
CloseSession = 3,
Busy = 4,
}Expand description
The Secure Channel protocol-specific codes of Core Table 19.
Variants§
SessionEstablishmentSuccess = 0
“Indication that the last session establishment message was successfully processed.”
Failure to find a common set of shared roots.
InvalidParameter = 2
“Generic failure during session establishment.”
CloseSession = 3
“Indication that the sender will close the current session.”
Busy = 4
“Indication that the sender cannot currently fulfill the request”, carrying a minimum wait time in its protocol data (§4.11.1.5).
Implementations§
Source§impl SecureChannelCode
impl SecureChannelCode
Sourcepub const fn general(self) -> GeneralCode
pub const fn general(self) -> GeneralCode
The general code the specification pairs this one with (Table 19).
Pairing them here rather than at each call site is what stops a SUCCESS status
from carrying a failure code, which a peer would read as success.
Sourcepub const fn requires_encryption(self) -> bool
pub const fn requires_encryption(self) -> bool
Whether the specification requires this status to be sent inside a secure session.
Trait Implementations§
Source§impl Clone for SecureChannelCode
impl Clone for SecureChannelCode
impl Copy for SecureChannelCode
Source§impl Debug for SecureChannelCode
impl Debug for SecureChannelCode
impl Eq for SecureChannelCode
Source§impl Hash for SecureChannelCode
impl Hash for SecureChannelCode
Source§impl PartialEq for SecureChannelCode
impl PartialEq for SecureChannelCode
impl StructuralPartialEq for SecureChannelCode
Auto Trait Implementations§
impl Forget for SecureChannelCode
impl Freeze for SecureChannelCode
impl Move for SecureChannelCode
impl RefUnwindSafe for SecureChannelCode
impl Send for SecureChannelCode
impl Sync for SecureChannelCode
impl Unpin for SecureChannelCode
impl UnsafeUnpin for SecureChannelCode
impl UnwindSafe for SecureChannelCode
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