#[repr(u32)]pub enum HolepunchError {
NoSuchPeer = 1,
NotConnected = 2,
NoSupport = 3,
NoSelf = 4,
}Expand description
Holepunch error codes (BEP 55).
Variants§
NoSuchPeer = 1
The target endpoint is invalid.
NotConnected = 2
The relay is not connected to the target peer.
NoSupport = 3
The target peer does not support the holepunch extension.
NoSelf = 4
The target is the relay peer itself.
Implementations§
Trait Implementations§
Source§impl Clone for HolepunchError
impl Clone for HolepunchError
Source§fn clone(&self) -> HolepunchError
fn clone(&self) -> HolepunchError
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 HolepunchError
impl Debug for HolepunchError
Source§impl Display for HolepunchError
impl Display for HolepunchError
Source§impl PartialEq for HolepunchError
impl PartialEq for HolepunchError
impl Copy for HolepunchError
impl Eq for HolepunchError
impl StructuralPartialEq for HolepunchError
Auto Trait Implementations§
impl Freeze for HolepunchError
impl RefUnwindSafe for HolepunchError
impl Send for HolepunchError
impl Sync for HolepunchError
impl Unpin for HolepunchError
impl UnsafeUnpin for HolepunchError
impl UnwindSafe for HolepunchError
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