Struct redis_driver::SentinelConfig
source · [−]pub struct SentinelConfig {
pub instances: Vec<(String, u16)>,
pub service_name: String,
pub wait_beetween_failures: Duration,
}
Expand description
Configuration for connecting to a Redis via Sentinel
Fields
instances: Vec<(String, u16)>
An array of (host, port)
tuples for each known sentinel instance.
service_name: String
The service name
wait_beetween_failures: Duration
Waiting time after failing before connecting to the next Sentinel instance (default 250ms).
Trait Implementations
sourceimpl Clone for SentinelConfig
impl Clone for SentinelConfig
sourcefn clone(&self) -> SentinelConfig
fn clone(&self) -> SentinelConfig
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl RefUnwindSafe for SentinelConfig
impl Send for SentinelConfig
impl Sync for SentinelConfig
impl Unpin for SentinelConfig
impl UnwindSafe for SentinelConfig
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