#[non_exhaustive]pub enum KevyMetric {
Replay {
commands: u64,
bytes: u64,
elapsed_ms: u64,
},
Rewrite {
keys: u64,
before_bytes: u64,
after_bytes: u64,
elapsed_ms: u64,
},
}Expand description
A persistence event worth observing. More variants may be added; match
non-exhaustively (_ => {}) to stay forward-compatible.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Replay
AOF replay finished on startup. bytes is the AOF size replayed.
Rewrite
An AOF rewrite (compaction) completed. before_bytes - after_bytes is
the space reclaimed.
Trait Implementations§
Source§impl Clone for KevyMetric
impl Clone for KevyMetric
Source§fn clone(&self) -> KevyMetric
fn clone(&self) -> KevyMetric
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 moreAuto Trait Implementations§
impl Freeze for KevyMetric
impl RefUnwindSafe for KevyMetric
impl Send for KevyMetric
impl Sync for KevyMetric
impl Unpin for KevyMetric
impl UnsafeUnpin for KevyMetric
impl UnwindSafe for KevyMetric
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