pub struct RaftCompactionStatus {Show 13 fields
pub available: bool,
pub enabled: bool,
pub applied_index: Option<u64>,
pub snapshot_index: Option<u64>,
pub first_log_index: Option<u64>,
pub last_log_index: Option<u64>,
pub snapshot_send_attempts: Option<u64>,
pub snapshot_send_successes: Option<u64>,
pub snapshot_send_failures: Option<u64>,
pub snapshot_sends_in_flight: Option<u64>,
pub snapshot_sender_tasks_current: Option<u64>,
pub snapshot_sender_tasks_high_water: Option<u64>,
pub snapshot_installs: Option<u64>,
}Expand description
Read-only state of the disk-backed Raft compaction control.
Fields§
§available: boolWhether the current runtime owns a disk-backed Raft log.
enabled: boolWhether explicit compaction requests are enabled by configuration.
applied_index: Option<u64>Last locally applied Raft index, when available.
snapshot_index: Option<u64>Durable snapshot index, when available.
first_log_index: Option<u64>First retained durable log index, when available.
last_log_index: Option<u64>Last durable log index, when available.
snapshot_send_attempts: Option<u64>Real HTTP snapshot send attempts since this daemon started.
snapshot_send_successes: Option<u64>Successful real HTTP snapshot sends since this daemon started.
snapshot_send_failures: Option<u64>Failed or timed-out real HTTP snapshot sends since this daemon started.
snapshot_sends_in_flight: Option<u64>Real HTTP snapshot requests currently awaiting an outcome.
snapshot_sender_tasks_current: Option<u64>Actual per-peer sender tasks currently carrying a valid Raft snapshot.
snapshot_sender_tasks_high_water: Option<u64>Per-daemon high-water mark of concurrent snapshot sender tasks since this process started; it resets when the daemon restarts.
snapshot_installs: Option<u64>Snapshots installed into the local Raft state machine this process run.
Trait Implementations§
Source§impl Clone for RaftCompactionStatus
impl Clone for RaftCompactionStatus
Source§fn clone(&self) -> RaftCompactionStatus
fn clone(&self) -> RaftCompactionStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RaftCompactionStatus
Source§impl Debug for RaftCompactionStatus
impl Debug for RaftCompactionStatus
impl Eq for RaftCompactionStatus
Source§impl PartialEq for RaftCompactionStatus
impl PartialEq for RaftCompactionStatus
Source§impl Serialize for RaftCompactionStatus
impl Serialize for RaftCompactionStatus
impl StructuralPartialEq for RaftCompactionStatus
Auto Trait Implementations§
impl Freeze for RaftCompactionStatus
impl RefUnwindSafe for RaftCompactionStatus
impl Send for RaftCompactionStatus
impl Sync for RaftCompactionStatus
impl Unpin for RaftCompactionStatus
impl UnsafeUnpin for RaftCompactionStatus
impl UnwindSafe for RaftCompactionStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request