pub enum StaleReason {
DisconnectedTimeout,
ConnectedTimeout,
}Expand description
Reason a peer is considered stale
Variants§
DisconnectedTimeout
Disconnected peer hasn’t been seen in a while
ConnectedTimeout
Connected peer hasn’t had activity (possible ghost connection)
Trait Implementations§
Source§impl Clone for StaleReason
impl Clone for StaleReason
Source§fn clone(&self) -> StaleReason
fn clone(&self) -> StaleReason
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 moreSource§impl Debug for StaleReason
impl Debug for StaleReason
Source§impl PartialEq for StaleReason
impl PartialEq for StaleReason
impl Copy for StaleReason
impl Eq for StaleReason
impl StructuralPartialEq for StaleReason
Auto Trait Implementations§
impl Freeze for StaleReason
impl RefUnwindSafe for StaleReason
impl Send for StaleReason
impl Sync for StaleReason
impl Unpin for StaleReason
impl UnwindSafe for StaleReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.