pub enum TtlReaperMode {
Background,
Manual,
}Expand description
How the active TTL reaper runs.
Variants§
Background
Spawn a background thread that ticks at the configured interval
(default 100 ms / 10 Hz, matching Redis’s hz=10). Default.
Manual
Caller-driven via crate::Store::tick. Required for WASM
targets (no threads) and single-threaded apps that don’t want a
background worker.
Trait Implementations§
Source§impl Clone for TtlReaperMode
impl Clone for TtlReaperMode
Source§fn clone(&self) -> TtlReaperMode
fn clone(&self) -> TtlReaperMode
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 TtlReaperMode
Source§impl Debug for TtlReaperMode
impl Debug for TtlReaperMode
impl Eq for TtlReaperMode
Source§impl PartialEq for TtlReaperMode
impl PartialEq for TtlReaperMode
Source§fn eq(&self, other: &TtlReaperMode) -> bool
fn eq(&self, other: &TtlReaperMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TtlReaperMode
Auto Trait Implementations§
impl Freeze for TtlReaperMode
impl RefUnwindSafe for TtlReaperMode
impl Send for TtlReaperMode
impl Sync for TtlReaperMode
impl Unpin for TtlReaperMode
impl UnsafeUnpin for TtlReaperMode
impl UnwindSafe for TtlReaperMode
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