Enum network::application::types::PeerState   
source · pub enum PeerState {
    Connected,
    Disconnecting,
    Disconnected,
}Expand description
The current state of a Peer at any one time
TODO: Allow nodes that are unhealthy to stay connected
Variants§
Trait Implementations§
source§impl Ord for PeerState
 
impl Ord for PeerState
source§impl PartialEq<PeerState> for PeerState
 
impl PartialEq<PeerState> for PeerState
source§impl PartialOrd<PeerState> for PeerState
 
impl PartialOrd<PeerState> for PeerState
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Copy for PeerState
impl Eq for PeerState
impl StructuralEq for PeerState
impl StructuralPartialEq for PeerState
Auto Trait Implementations§
impl RefUnwindSafe for PeerState
impl Send for PeerState
impl Sync for PeerState
impl Unpin for PeerState
impl UnwindSafe for PeerState
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized,
 
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.