Struct Stat

Source
pub struct Stat<T>
where T: Types,
{ pub closed_chunks: Vec<ChunkStat<T>>, pub open_chunk: ChunkStat<T>, pub payload_cache_last_evictable: Option<T::LogId>, pub payload_cache_item_count: u64, pub payload_cache_max_item: u64, pub payload_cache_size: u64, pub payload_cache_capacity: u64, pub payload_cache_miss: u64, pub payload_cache_hit: u64, }
Expand description

Statistics about a Raft log, including information about closed chunks, open chunk, and payload cache performance metrics.

Fields§

§closed_chunks: Vec<ChunkStat<T>>

Vector of statistics for closed (completed) chunks

§open_chunk: ChunkStat<T>

Statistics for the currently open (active) chunk

§payload_cache_last_evictable: Option<T::LogId>

The last evictable log id in the payload cache

§payload_cache_item_count: u64

Current number of items in the payload cache

§payload_cache_max_item: u64

Maximum number of items allowed in the payload cache

§payload_cache_size: u64

Current size of the payload cache in bytes

§payload_cache_capacity: u64

Maximum capacity of the payload cache in bytes

§payload_cache_miss: u64

Number of cache misses

§payload_cache_hit: u64

Number of cache hits

Trait Implementations§

Source§

impl<T> Clone for Stat<T>
where T: Types + Clone, T::LogId: Clone,

Source§

fn clone(&self) -> Stat<T>

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> Debug for Stat<T>
where T: Types + Debug, T::LogId: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Display for Stat<T>
where T: Types,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> Freeze for Stat<T>
where <T as Types>::LogId: Freeze, <T as Types>::Vote: Freeze, <T as Types>::UserData: Freeze,

§

impl<T> RefUnwindSafe for Stat<T>

§

impl<T> Send for Stat<T>
where <T as Types>::Vote: Send, <T as Types>::UserData: Send,

§

impl<T> Sync for Stat<T>
where <T as Types>::Vote: Sync, <T as Types>::UserData: Sync,

§

impl<T> Unpin for Stat<T>
where <T as Types>::LogId: Unpin, <T as Types>::Vote: Unpin, <T as Types>::UserData: Unpin,

§

impl<T> UnwindSafe for Stat<T>
where <T as Types>::LogId: UnwindSafe, <T as Types>::Vote: UnwindSafe, <T as Types>::UserData: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.