Struct rxqlite_lite_common::RaftMetrics
source · pub struct RaftMetrics {
pub running_state: Result<(), Fatal>,
pub id: NodeId,
pub current_term: u64,
pub vote: Vote,
pub last_log_index: Option<u64>,
pub last_applied: Option<LogId>,
pub snapshot: Option<LogId>,
pub purged: Option<LogId>,
pub state: ServerState,
pub current_leader: Option<NodeId>,
pub millis_since_quorum_ack: Option<u64>,
pub membership_config: StoredMembership,
}Fields§
§running_state: Result<(), Fatal>§id: NodeId§current_term: u64§vote: Vote§last_log_index: Option<u64>§last_applied: Option<LogId>§snapshot: Option<LogId>§purged: Option<LogId>§state: ServerState§current_leader: Option<NodeId>§millis_since_quorum_ack: Option<u64>§membership_config: StoredMembershipTrait Implementations§
source§impl Clone for RaftMetrics
impl Clone for RaftMetrics
source§fn clone(&self) -> RaftMetrics
fn clone(&self) -> RaftMetrics
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 RaftMetrics
impl Debug for RaftMetrics
source§impl<'de> Deserialize<'de> for RaftMetrics
impl<'de> Deserialize<'de> for RaftMetrics
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
source§impl PartialEq for RaftMetrics
impl PartialEq for RaftMetrics
source§fn eq(&self, other: &RaftMetrics) -> bool
fn eq(&self, other: &RaftMetrics) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for RaftMetrics
impl Serialize for RaftMetrics
impl Eq for RaftMetrics
impl StructuralPartialEq for RaftMetrics
Auto Trait Implementations§
impl Freeze for RaftMetrics
impl RefUnwindSafe for RaftMetrics
impl Send for RaftMetrics
impl Sync for RaftMetrics
impl Unpin for RaftMetrics
impl UnwindSafe for RaftMetrics
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