pub enum SavePolicy {
Disabled,
Default,
Custom(Vec<(u64, u64)>),
}Expand description
RDB save policy.
Controls whether and how the save directive is emitted in the Redis
configuration file.
Variants§
Disabled
Emit save "" to disable RDB snapshots entirely.
Default
Omit the save directive and let Redis use its built-in defaults.
Custom(Vec<(u64, u64)>)
Emit one save <seconds> <changes> line for each pair.
Trait Implementations§
Source§impl Clone for SavePolicy
impl Clone for SavePolicy
Source§fn clone(&self) -> SavePolicy
fn clone(&self) -> SavePolicy
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 moreSource§impl Debug for SavePolicy
impl Debug for SavePolicy
Source§impl Default for SavePolicy
impl Default for SavePolicy
Source§fn default() -> SavePolicy
fn default() -> SavePolicy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SavePolicy
impl RefUnwindSafe for SavePolicy
impl Send for SavePolicy
impl Sync for SavePolicy
impl Unpin for SavePolicy
impl UnsafeUnpin for SavePolicy
impl UnwindSafe for SavePolicy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more