pub struct RepStats {
pub elections_held: AtomicU64,
pub elections_won: AtomicU64,
pub elections_lost: AtomicU64,
pub feeders_created: AtomicU64,
pub feeders_shutdown: AtomicU64,
pub acks_received: AtomicU64,
pub ack_timeouts: AtomicU64,
pub entries_replicated: AtomicU64,
pub entries_applied: AtomicU64,
pub bytes_replicated: AtomicU64,
pub max_replica_lag_ms: AtomicU64,
}Expand description
Statistics for replication operations.
Fields§
§elections_held: AtomicU64§elections_won: AtomicU64§elections_lost: AtomicU64§feeders_created: AtomicU64§feeders_shutdown: AtomicU64§acks_received: AtomicU64§ack_timeouts: AtomicU64§entries_replicated: AtomicU64§entries_applied: AtomicU64§bytes_replicated: AtomicU64§max_replica_lag_ms: AtomicU64Implementations§
Source§impl RepStats
impl RepStats
pub fn increment_elections_held(&self)
pub fn increment_elections_won(&self)
pub fn increment_elections_lost(&self)
pub fn add_entries_replicated(&self, count: u64)
pub fn add_bytes_replicated(&self, bytes: u64)
pub fn add_entries_applied(&self, count: u64)
pub fn update_max_lag(&self, lag_ms: u64)
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RepStats
impl RefUnwindSafe for RepStats
impl Send for RepStats
impl Sync for RepStats
impl Unpin for RepStats
impl UnsafeUnpin for RepStats
impl UnwindSafe for RepStats
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more