Struct rustis::commands::ShutdownOptions
source · pub struct ShutdownOptions { /* private fields */ }
Expand description
options for the shutdown
command.
Implementations§
source§impl 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§
source§impl Default for ShutdownOptions
impl Default for ShutdownOptions
source§fn default() -> ShutdownOptions
fn default() -> ShutdownOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for ShutdownOptions
impl ToArgs for ShutdownOptions
source§fn write_args(&self, args: &mut CommandArgs)
fn write_args(&self, args: &mut CommandArgs)
Write this Rust type as one ore multiple args into CommandArgs. Read more
Auto Trait Implementations§
impl Freeze for ShutdownOptions
impl RefUnwindSafe for ShutdownOptions
impl Send for ShutdownOptions
impl Sync for ShutdownOptions
impl Unpin for ShutdownOptions
impl UnwindSafe for ShutdownOptions
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