pub struct PeerEndpoint {
pub peer_id: PeerId,
pub external_addrs: Vec<SocketAddr>,
pub punch_ports: Vec<u16>,
}Fields§
§peer_id: PeerIdPeer id for logging/context.
external_addrs: Vec<SocketAddr>Public addresses advertised by the peer.
punch_ports: Vec<u16>Additional ports to try for hole punching.
Trait Implementations§
Source§impl Clone for PeerEndpoint
impl Clone for PeerEndpoint
Source§fn clone(&self) -> PeerEndpoint
fn clone(&self) -> PeerEndpoint
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 moreAuto Trait Implementations§
impl Freeze for PeerEndpoint
impl RefUnwindSafe for PeerEndpoint
impl Send for PeerEndpoint
impl Sync for PeerEndpoint
impl Unpin for PeerEndpoint
impl UnwindSafe for PeerEndpoint
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