pub struct ClusterState {
pub accepted_indexes: Vec<u64>,
pub heartbeats: Vec<HeartbeatReply>,
}
Expand description
The states of all the nodes in the cluster.
Fields§
§accepted_indexes: Vec<u64>
The accepted indexes of all the nodes in the cluster. The index of the vector is the node id.
heartbeats: Vec<HeartbeatReply>
All the received heartbeats from the previous heartbeat round, including the current node. Represents nodes that are currently alive from the view of the current node.
Trait Implementations§
Source§impl Clone for ClusterState
impl Clone for ClusterState
Source§fn clone(&self) -> ClusterState
fn clone(&self) -> ClusterState
Returns a copy 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 ClusterState
impl Debug for ClusterState
Source§impl Default for ClusterState
impl Default for ClusterState
Source§fn default() -> ClusterState
fn default() -> ClusterState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClusterState
impl RefUnwindSafe for ClusterState
impl Send for ClusterState
impl Sync for ClusterState
impl Unpin for ClusterState
impl UnwindSafe for ClusterState
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