Struct async_nats::jetstream::stream::PeerInfo
source · 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