pub enum PskOutcome {
SelectedKey,
SentinelFallback,
}Expand description
Which key sealed the handshake message 2 the initiator just read.
Initiator::read_message_with_sentinel reports this so the session layer can tell a peer
that holds the selected key from one that sealed with the published Sentinel key. It is a fact
about the wire, not a verdict: what an unpaired peer may do is the caller’s decision.
Variants§
SelectedKey
The key selected with Initiator::set_psk, which for a server is the pairing record’s
key.
SentinelFallback
The published SENTINEL_PSK: the selected key did not seal this handshake, so the peer
does not hold it.
Trait Implementations§
Source§impl Clone for PskOutcome
impl Clone for PskOutcome
impl Copy for PskOutcome
Source§impl Debug for PskOutcome
impl Debug for PskOutcome
impl Eq for PskOutcome
Source§impl PartialEq for PskOutcome
impl PartialEq for PskOutcome
impl StructuralPartialEq for PskOutcome
Auto Trait Implementations§
impl Forget for PskOutcome
impl Freeze for PskOutcome
impl Move for PskOutcome
impl RefUnwindSafe for PskOutcome
impl Send for PskOutcome
impl Sync for PskOutcome
impl Unpin for PskOutcome
impl UnsafeUnpin for PskOutcome
impl UnwindSafe for PskOutcome
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