pub struct ReplicaInfo {
pub ip: String,
pub port: u16,
pub last_ack_offset: usize,
}Expand description
Represents a connected replicas to a master
returned by the role command.
Fields§
§ip: Stringthe replica IP
port: u16the replica port
last_ack_offset: usizethe last acknowledged replication offset.
Trait Implementations§
Source§impl FromValue for ReplicaInfo
impl FromValue for ReplicaInfo
Auto Trait Implementations§
impl Freeze for ReplicaInfo
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnwindSafe for ReplicaInfo
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