pub enum Negotiation {
Handshake,
PreNegotiated(WireProfile),
}Expand description
How the session agrees a protocol version with its peer.
Variants§
Handshake
Exchange Handshake and HandshakeResponse, as a bare WebSocket session does.
PreNegotiated(WireProfile)
The version was already agreed — by S2 Connect’s session initiation, where
S2C §Communication - JSON messages says the handshake messages “can not be
sent”.
Trait Implementations§
Source§impl Clone for Negotiation
impl Clone for Negotiation
Source§fn clone(&self) -> Negotiation
fn clone(&self) -> Negotiation
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 moreSource§impl Debug for Negotiation
impl Debug for Negotiation
Source§impl Default for Negotiation
impl Default for Negotiation
Source§fn default() -> Negotiation
fn default() -> Negotiation
Returns the “default value” for a type. Read more
impl Eq for Negotiation
Source§impl PartialEq for Negotiation
impl PartialEq for Negotiation
impl StructuralPartialEq for Negotiation
Auto Trait Implementations§
impl Freeze for Negotiation
impl RefUnwindSafe for Negotiation
impl Send for Negotiation
impl Sync for Negotiation
impl Unpin for Negotiation
impl UnsafeUnpin for Negotiation
impl UnwindSafe for Negotiation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.