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§
Source§impl Clone for SentinelConfig
impl Clone for SentinelConfig
Source§fn clone(&self) -> SentinelConfig
fn clone(&self) -> SentinelConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const 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 Freeze for SentinelConfig
impl RefUnwindSafe for SentinelConfig
impl Send for SentinelConfig
impl Sync for SentinelConfig
impl Unpin for SentinelConfig
impl UnwindSafe for SentinelConfig
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