pub struct Node {
pub addr: SocketAddr,
pub roundtrip_token: Option<Vec<u8>>,
pub to: Option<SocketAddr>,
pub last_seen: Instant,
pub referrers: Vec<SocketAddr>,
pub down_hint: bool,
pub last_pinged: Option<Instant>,
}Fields§
§addr: SocketAddrAddress of the peer.
roundtrip_token: Option<Vec<u8>>last roundtrip token in a req/resp exchanged with the peer
to: Option<SocketAddr>Decoded address of the to message field
last_seen: InstantWhen a new ping is due
referrers: Vec<SocketAddr>Known referrers available for holepunching
down_hint: boolIf this node recieved a down hint
last_pinged: Option<Instant>Last time a ping was sent to this node
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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