pub struct PeerInfo {
pub name: String,
pub current: bool,
pub active: Duration,
pub offline: bool,
pub lag: Option<u64>,
}
Expand description
The members of the RAFT cluster
Fields
name: String
The server name of the peer.
current: bool
Indicates if the server is up to date and synchronised.
active: Duration
Nanoseconds since this peer was last seen.
offline: bool
Indicates the node is considered offline by the group.
lag: Option<u64>
How many uncommitted operations this peer is behind the leader.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for PeerInfo
impl<'de> Deserialize<'de> for PeerInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PeerInfo
impl StructuralEq for PeerInfo
impl StructuralPartialEq for PeerInfo
Auto Trait Implementations
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
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