pub struct ReplicationInfo {
pub role: ReplicationRole,
pub connected_replicas: usize,
pub master_host: Option<String>,
pub master_port: Option<u16>,
pub master_link_status: Option<bool>,
pub master_repl_offset: i64,
pub repl_backlog_active: bool,
pub repl_backlog_size: usize,
pub repl_backlog_first_offset: i64,
pub repl_id: String,
}Expand description
Replication info for INFO command.
Fields§
§role: ReplicationRoleCurrent role
connected_replicas: usizeNumber of connected replicas
master_host: Option<String>Master host (if replica)
master_port: Option<u16>Master port (if replica)
master_link_status: Option<bool>Master link status (if replica)
master_repl_offset: i64Master replication offset
repl_backlog_active: boolBacklog active
repl_backlog_size: usizeBacklog size
repl_backlog_first_offset: i64First backlog offset
repl_id: StringReplication ID
Trait Implementations§
Source§impl Clone for ReplicationInfo
impl Clone for ReplicationInfo
Source§fn clone(&self) -> ReplicationInfo
fn clone(&self) -> ReplicationInfo
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 ReplicationInfo
impl RefUnwindSafe for ReplicationInfo
impl Send for ReplicationInfo
impl Sync for ReplicationInfo
impl Unpin for ReplicationInfo
impl UnwindSafe for ReplicationInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more