pub struct BootstrapNode {
pub address: SocketAddr,
pub last_seen: Instant,
pub can_coordinate: bool,
pub rtt: Option<Duration>,
pub coordination_count: u32,
}
Expand description
Information about a bootstrap/coordinator node
Fields§
§address: SocketAddr
Network address of the bootstrap node
last_seen: Instant
Last successful contact time
can_coordinate: bool
Whether this node can coordinate NAT traversal
rtt: Option<Duration>
RTT to this bootstrap node
coordination_count: u32
Number of successful coordinations via this node
Implementations§
Source§impl BootstrapNode
impl BootstrapNode
Sourcepub fn new(address: SocketAddr) -> Self
pub fn new(address: SocketAddr) -> Self
Create a new bootstrap node
Trait Implementations§
Source§impl Clone for BootstrapNode
impl Clone for BootstrapNode
Source§fn clone(&self) -> BootstrapNode
fn clone(&self) -> BootstrapNode
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 BootstrapNode
impl RefUnwindSafe for BootstrapNode
impl Send for BootstrapNode
impl Sync for BootstrapNode
impl Unpin for BootstrapNode
impl UnwindSafe for BootstrapNode
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