pub struct ChunkStat<T>where
T: Types,{
pub chunk_id: ChunkId,
pub records_count: u64,
pub global_start: u64,
pub global_end: u64,
pub size: u64,
pub log_state: RaftLogState<T>,
}Expand description
Statistics about a single chunk in the Raft log
Fields§
§chunk_id: ChunkIdUnique identifier for this chunk
records_count: u64Number of records stored in this chunk
global_start: u64Global index of the first record in this chunk
global_end: u64Global index of the last record in this chunk plus one
size: u64Size of the chunk in bytes
log_state: RaftLogState<T>Current state of the Raft log for this chunk
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ChunkStat<T>
impl<T> RefUnwindSafe for ChunkStat<T>where
<T as Types>::Vote: RefUnwindSafe,
<T as Types>::LogId: RefUnwindSafe,
<T as Types>::UserData: RefUnwindSafe,
impl<T> Send for ChunkStat<T>
impl<T> Sync for ChunkStat<T>
impl<T> Unpin for ChunkStat<T>
impl<T> UnwindSafe for ChunkStat<T>where
<T as Types>::Vote: UnwindSafe,
<T as Types>::LogId: 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