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: String
the replica IP
port: u16
the replica port
last_ack_offset: usize
the 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