pub struct ClusterStatus {
pub node_id: NodeId,
pub is_leader: bool,
pub current_leader: Option<NodeId>,
pub term: u64,
pub last_applied_index: Option<u64>,
pub member_count: usize,
pub voter_count: usize,
}Expand description
A cluster status snapshot, returned by RaftControlPlane::status for operational monitoring
/ health checks.
Fields§
§node_id: NodeIdThis node’s id.
is_leader: boolWhether this node is currently the leader.
current_leader: Option<NodeId>The currently known leader (None during a leader election).
term: u64The current Raft term.
last_applied_index: Option<u64>The highest log position applied to the state machine (None = nothing yet).
member_count: usizeTotal number of members (voters + learners).
voter_count: usizeThe number of members in the voting core.
Trait Implementations§
Source§impl Clone for ClusterStatus
impl Clone for ClusterStatus
Source§fn clone(&self) -> ClusterStatus
fn clone(&self) -> ClusterStatus
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 moreAuto Trait Implementations§
impl Freeze for ClusterStatus
impl RefUnwindSafe for ClusterStatus
impl Send for ClusterStatus
impl Sync for ClusterStatus
impl Unpin for ClusterStatus
impl UnsafeUnpin for ClusterStatus
impl UnwindSafe for ClusterStatus
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