Struct redis_driver::FailOverOptions
source · pub struct FailOverOptions { /* private fields */ }
Expand description
Options for the failover
command.
Implementations
sourceimpl FailOverOptions
impl FailOverOptions
sourcepub fn to<H: Into<BulkString>>(self, host: H, port: u16) -> Self
pub fn to<H: Into<BulkString>>(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
sourceimpl Default for FailOverOptions
impl Default for FailOverOptions
sourcefn default() -> FailOverOptions
fn default() -> FailOverOptions
Returns the “default value” for a type. Read more
sourceimpl IntoArgs for FailOverOptions
impl IntoArgs for FailOverOptions
fn into_args(self, args: CommandArgs) -> CommandArgs
fn num_args(&self) -> usize
Auto Trait Implementations
impl RefUnwindSafe for FailOverOptions
impl Send for FailOverOptions
impl Sync for FailOverOptions
impl Unpin for FailOverOptions
impl UnwindSafe for FailOverOptions
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