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 synchronized.
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§
Source§impl<'de> Deserialize<'de> for PeerInfo
impl<'de> Deserialize<'de> for PeerInfo
Source§fn 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 StructuralPartialEq for PeerInfo
Auto Trait Implementations§
impl Freeze for PeerInfo
impl RefUnwindSafe for PeerInfo
impl Send for PeerInfo
impl Sync for PeerInfo
impl Unpin for PeerInfo
impl UnwindSafe for PeerInfo
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