pub enum HandshakeStrategy {
Host,
Joiner,
}Expand description
Which side of the handshake the local peer plays.
In a relay handshake, the side with the smaller crate::PeerID becomes
Host, the larger becomes Joiner — both choose independently and
always agree.
Variants§
Host
Sends the SDP offer first, then accepts the answer.
Joiner
Receives the offer, returns an answer, awaits the data channel.
Trait Implementations§
Source§impl Clone for HandshakeStrategy
impl Clone for HandshakeStrategy
Source§fn clone(&self) -> HandshakeStrategy
fn clone(&self) -> HandshakeStrategy
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 HandshakeStrategy
impl Debug for HandshakeStrategy
Source§impl<'de> Deserialize<'de> for HandshakeStrategy
impl<'de> Deserialize<'de> for HandshakeStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HandshakeStrategy
impl PartialEq for HandshakeStrategy
Source§impl Serialize for HandshakeStrategy
impl Serialize for HandshakeStrategy
impl Eq for HandshakeStrategy
impl StructuralPartialEq for HandshakeStrategy
Auto Trait Implementations§
impl Freeze for HandshakeStrategy
impl RefUnwindSafe for HandshakeStrategy
impl Send for HandshakeStrategy
impl Sync for HandshakeStrategy
impl Unpin for HandshakeStrategy
impl UnsafeUnpin for HandshakeStrategy
impl UnwindSafe for HandshakeStrategy
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