pub struct StoreSnapshot {
pub timestamp: u64,
pub metrics: StoreMetrics,
pub tier_distribution: [u64; 4],
pub byte_distribution: [u64; 4],
}Expand description
A point-in-time snapshot of store state for serialization and export.
Captures the metrics, tier distribution (block counts), and byte distribution at a single instant.
Fields§
§timestamp: u64Monotonic tick at which the snapshot was taken.
metrics: StoreMetricsAggregate metrics at snapshot time.
tier_distribution: [u64; 4]Block count per tier: [tier0, tier1, tier2, tier3].
byte_distribution: [u64; 4]Byte count per tier: [tier0, tier1, tier2, tier3].
Implementations§
Source§impl StoreSnapshot
impl StoreSnapshot
Trait Implementations§
Source§impl Clone for StoreSnapshot
impl Clone for StoreSnapshot
Source§fn clone(&self) -> StoreSnapshot
fn clone(&self) -> StoreSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StoreSnapshot
impl RefUnwindSafe for StoreSnapshot
impl Send for StoreSnapshot
impl Sync for StoreSnapshot
impl Unpin for StoreSnapshot
impl UnsafeUnpin for StoreSnapshot
impl UnwindSafe for StoreSnapshot
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