pub struct ExpireStats {
pub sampled: u32,
pub expired: u32,
pub rounds: u32,
}Expand description
What Store::tick_expire saw and did. Surfaced for tests, INFO
keyspace, and (eventually) Wave 2 task #4’s crash-safe verifier.
Fields§
§sampled: u32Total TTL-bearing keys sampled across all rounds.
expired: u32How many of those were past their deadline and got removed.
rounds: u32Rounds executed before the loop exited (either max_rounds reached
or in-batch expire-rate dropped below the continuation threshold).
Trait Implementations§
Source§impl Clone for ExpireStats
impl Clone for ExpireStats
Source§fn clone(&self) -> ExpireStats
fn clone(&self) -> ExpireStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ExpireStats
Source§impl Debug for ExpireStats
impl Debug for ExpireStats
Source§impl Default for ExpireStats
impl Default for ExpireStats
Source§fn default() -> ExpireStats
fn default() -> ExpireStats
Returns the “default value” for a type. Read more
impl Eq for ExpireStats
Source§impl PartialEq for ExpireStats
impl PartialEq for ExpireStats
Source§fn eq(&self, other: &ExpireStats) -> bool
fn eq(&self, other: &ExpireStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExpireStats
Auto Trait Implementations§
impl Freeze for ExpireStats
impl RefUnwindSafe for ExpireStats
impl Send for ExpireStats
impl Sync for ExpireStats
impl Unpin for ExpireStats
impl UnsafeUnpin for ExpireStats
impl UnwindSafe for ExpireStats
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