pub struct RedisSentinelCluster {
pub servers: Vec<RedisServer>,
pub sentinel_servers: Vec<RedisServer>,
pub folders: Vec<TempDir>,
}
Fields§
§servers: Vec<RedisServer>
§sentinel_servers: Vec<RedisServer>
§folders: Vec<TempDir>
Implementations§
Source§impl RedisSentinelCluster
impl RedisSentinelCluster
pub fn new( masters: u16, replicas_per_master: u16, sentinels: u16, ) -> RedisSentinelCluster
pub fn with_modules( masters: u16, replicas_per_master: u16, sentinels: u16, modules: &[Module], ) -> RedisSentinelCluster
pub fn stop(&mut self)
pub fn iter_sentinel_servers(&self) -> impl Iterator<Item = &RedisServer>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedisSentinelCluster
impl RefUnwindSafe for RedisSentinelCluster
impl Send for RedisSentinelCluster
impl Sync for RedisSentinelCluster
impl Unpin for RedisSentinelCluster
impl UnwindSafe for RedisSentinelCluster
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