Expand description
PeerConnState: possible states for our tentative connections to given peer This structure is only interested in recording connection info for outgoing TCP connections
Variants
Ourself
This entry represents ourself (the local node)
Connected
We currently have a connection to this peer
Waiting(usize, Instant)
Our next connection tentative (the nth, where n is the first value of the tuple) will be at given Instant
Trying(usize)
A connection tentative is in progress (the nth, where n is the value stored)
Abandonned
We abandonned trying to connect to this peer (too many failed attempts)
Implementations
sourceimpl PeerConnState
impl PeerConnState
Trait Implementations
sourceimpl Clone for PeerConnState
impl Clone for PeerConnState
sourcefn clone(&self) -> PeerConnState
fn clone(&self) -> PeerConnState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PeerConnState
impl Debug for PeerConnState
sourceimpl PartialEq<PeerConnState> for PeerConnState
impl PartialEq<PeerConnState> for PeerConnState
sourcefn eq(&self, other: &PeerConnState) -> bool
fn eq(&self, other: &PeerConnState) -> bool
impl Copy for PeerConnState
impl StructuralPartialEq for PeerConnState
Auto Trait Implementations
impl RefUnwindSafe for PeerConnState
impl Send for PeerConnState
impl Sync for PeerConnState
impl Unpin for PeerConnState
impl UnwindSafe for PeerConnState
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more