pub struct MasterInfo {
pub name: String,
pub host: String,
pub port: u16,
pub flags: Vec<String>,
pub num_slaves: u32,
pub num_other_sentinels: u32,
pub quorum: u32,
pub failover_timeout: Duration,
pub parallel_syncs: u32,
}Expand description
Information about a Redis master
Fields§
§name: StringMaster name
host: StringMaster host
port: u16Master port
flags: Vec<String>Master status flags
num_slaves: u32Number of connected slaves
num_other_sentinels: u32Number of other sentinels
quorum: u32Quorum for failover
failover_timeout: DurationFailover timeout
parallel_syncs: u32Parallel syncs
Implementations§
Trait Implementations§
Source§impl Clone for MasterInfo
impl Clone for MasterInfo
Source§fn clone(&self) -> MasterInfo
fn clone(&self) -> MasterInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MasterInfo
impl RefUnwindSafe for MasterInfo
impl Send for MasterInfo
impl Sync for MasterInfo
impl Unpin for MasterInfo
impl UnwindSafe for MasterInfo
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