pub struct PeerCounts {
pub healthy: usize,
pub degraded: usize,
pub unreachable: usize,
pub unknown: usize,
}Expand description
Peer-health counts within a StatusSummary.
Fields§
§healthy: usizePeers responding within the heartbeat window.
degraded: usizePeers responding but slow.
unreachable: usizePeers unreachable.
unknown: usizePeers without a health sample yet.
Trait Implementations§
Source§impl Clone for PeerCounts
impl Clone for PeerCounts
Source§fn clone(&self) -> PeerCounts
fn clone(&self) -> PeerCounts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PeerCounts
impl Debug for PeerCounts
Source§impl Default for PeerCounts
impl Default for PeerCounts
Source§fn default() -> PeerCounts
fn default() -> PeerCounts
Returns the “default value” for a type. Read more
Source§impl PartialEq for PeerCounts
impl PartialEq for PeerCounts
Source§fn eq(&self, other: &PeerCounts) -> bool
fn eq(&self, other: &PeerCounts) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PeerCounts
impl Eq for PeerCounts
impl StructuralPartialEq for PeerCounts
Auto Trait Implementations§
impl Freeze for PeerCounts
impl RefUnwindSafe for PeerCounts
impl Send for PeerCounts
impl Sync for PeerCounts
impl Unpin for PeerCounts
impl UnsafeUnpin for PeerCounts
impl UnwindSafe for PeerCounts
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§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.