Struct rustis::commands::FailOverOptions
source · pub struct FailOverOptions { /* private fields */ }
Expand description
Options for the failover
command.
Implementations§
source§impl FailOverOptions
impl FailOverOptions
sourcepub fn to<H: SingleArg>(self, host: H, port: u16) -> Self
pub fn to<H: SingleArg>(self, host: H, port: u16) -> Self
This option allows designating a specific replica, by its host and port, to failover to.
sourcepub fn timeout(self, milliseconds: u64) -> Self
pub fn timeout(self, milliseconds: u64) -> Self
This option allows specifying a maximum time a master will wait in the waiting-for-sync state before aborting the failover attempt and rolling back.
Trait Implementations§
source§impl Default for FailOverOptions
impl Default for FailOverOptions
source§fn default() -> FailOverOptions
fn default() -> FailOverOptions
Returns the “default value” for a type. Read more
source§impl ToArgs for FailOverOptions
impl ToArgs for FailOverOptions
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 FailOverOptions
impl RefUnwindSafe for FailOverOptions
impl Send for FailOverOptions
impl Sync for FailOverOptions
impl Unpin for FailOverOptions
impl UnwindSafe for FailOverOptions
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