#[non_exhaustive]pub enum RendezvousRole {
Initiator,
Responder,
}Expand description
The role a RendezvousHandshake plays, resolved by the cookie contest
(draft-sharabayko-srt-01 §4.3.2, L2107-2135): “When one party’s cookie
value is greater than its peer’s, it wins the cookie contest and becomes
Initiator (the other party becomes the Responder).”
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.
Initiator
Wins the cookie contest (the greater cookie value, L2133-2135). MUST attach the HSREQ extension (L2286-2287).
Responder
Loses the cookie contest. MUST attach the HSRSP extension (L2287-2288).
Implementations§
Trait Implementations§
Source§impl Clone for RendezvousRole
impl Clone for RendezvousRole
Source§fn clone(&self) -> RendezvousRole
fn clone(&self) -> RendezvousRole
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RendezvousRole
Source§impl Debug for RendezvousRole
impl Debug for RendezvousRole
Source§impl Display for RendezvousRole
impl Display for RendezvousRole
impl Eq for RendezvousRole
Source§impl Hash for RendezvousRole
impl Hash for RendezvousRole
Source§impl PartialEq for RendezvousRole
impl PartialEq for RendezvousRole
Source§impl Serialize for RendezvousRole
Available on crate feature serde only.
impl Serialize for RendezvousRole
Available on crate feature
serde only.impl StructuralPartialEq for RendezvousRole
Auto Trait Implementations§
impl Freeze for RendezvousRole
impl RefUnwindSafe for RendezvousRole
impl Send for RendezvousRole
impl Sync for RendezvousRole
impl Unpin for RendezvousRole
impl UnsafeUnpin for RendezvousRole
impl UnwindSafe for RendezvousRole
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