Struct redis_driver::ShutdownOptions
source · pub struct ShutdownOptions { /* private fields */ }
Expand description
options for the shutdown
command.
Implementations
sourceimpl ShutdownOptions
impl ShutdownOptions
sourcepub fn save(self, save: bool) -> Self
pub fn save(self, save: bool) -> Self
- if save is true, will force a DB saving operation even if no save points are configured
- if save is false, will prevent a DB saving operation even if one or more save points are configured.
sourcepub fn now(self) -> Self
pub fn now(self) -> Self
skips waiting for lagging replicas, i.e. it bypasses the first step in the shutdown sequence.
Trait Implementations
sourceimpl Default for ShutdownOptions
impl Default for ShutdownOptions
sourcefn default() -> ShutdownOptions
fn default() -> ShutdownOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for ShutdownOptions
impl IntoArgs for ShutdownOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for ShutdownOptions
impl Send for ShutdownOptions
impl Sync for ShutdownOptions
impl Unpin for ShutdownOptions
impl UnwindSafe for ShutdownOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more