pub struct SentinelClient { /* private fields */ }Expand description
Redis Sentinel client for high availability
Implementations§
Source§impl SentinelClient
 
impl SentinelClient
Sourcepub async fn new(config: SentinelConfig) -> RedisResult<Self>
 
pub async fn new(config: SentinelConfig) -> RedisResult<Self>
Sourcepub async fn get_master(&self) -> RedisResult<MasterInfo>
 
pub async fn get_master(&self) -> RedisResult<MasterInfo>
Sourcepub async fn connect_to_master(&self) -> RedisResult<RedisConnection>
 
pub async fn connect_to_master(&self) -> RedisResult<RedisConnection>
Sourcepub async fn monitor(&self) -> RedisResult<()>
 
pub async fn monitor(&self) -> RedisResult<()>
Monitor for master changes and failovers
Auto Trait Implementations§
impl Freeze for SentinelClient
impl !RefUnwindSafe for SentinelClient
impl Send for SentinelClient
impl Sync for SentinelClient
impl Unpin for SentinelClient
impl !UnwindSafe for SentinelClient
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