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: u64Current number of items in the payload cache
payload_cache_max_item: u64Maximum number of items allowed in the payload cache
payload_cache_size: u64Current size of the payload cache in bytes
payload_cache_capacity: u64Maximum capacity of the payload cache in bytes
payload_cache_miss: u64Number of cache misses
payload_cache_hit: u64Number of cache hits
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Stat<T>
impl<T> RefUnwindSafe for Stat<T>where
<T as Types>::LogId: RefUnwindSafe,
<T as Types>::Vote: RefUnwindSafe,
<T as Types>::UserData: RefUnwindSafe,
impl<T> Send for Stat<T>
impl<T> Sync for Stat<T>
impl<T> Unpin for Stat<T>
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> 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