#[repr(u8)]pub enum HolepunchMsgType {
Rendezvous = 0,
Connect = 1,
Error = 2,
}Expand description
Holepunch message type (BEP 55).
Variants§
Rendezvous = 0
Initiator -> Relay: “please connect me to this peer.”
Connect = 1
Relay -> Both parties: “initiate simultaneous connect to this peer.”
Error = 2
Relay -> Initiator: “cannot complete the rendezvous.”
Trait Implementations§
Source§impl Clone for HolepunchMsgType
impl Clone for HolepunchMsgType
Source§fn clone(&self) -> HolepunchMsgType
fn clone(&self) -> HolepunchMsgType
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 HolepunchMsgType
impl Debug for HolepunchMsgType
Source§impl PartialEq for HolepunchMsgType
impl PartialEq for HolepunchMsgType
Source§fn eq(&self, other: &HolepunchMsgType) -> bool
fn eq(&self, other: &HolepunchMsgType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for HolepunchMsgType
impl Eq for HolepunchMsgType
impl StructuralPartialEq for HolepunchMsgType
Auto Trait Implementations§
impl Freeze for HolepunchMsgType
impl RefUnwindSafe for HolepunchMsgType
impl Send for HolepunchMsgType
impl Sync for HolepunchMsgType
impl Unpin for HolepunchMsgType
impl UnsafeUnpin for HolepunchMsgType
impl UnwindSafe for HolepunchMsgType
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