#[non_exhaustive]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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.ip: Stringthe replica IP
port: u16the replica port
last_ack_offset: usizethe last acknowledged replication offset.
Trait Implementations§
Source§impl Debug for ReplicaInfo
impl Debug for ReplicaInfo
Source§impl<'de> Deserialize<'de> for ReplicaInfo
impl<'de> Deserialize<'de> for ReplicaInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ReplicaInfo
impl RefUnwindSafe for ReplicaInfo
impl Send for ReplicaInfo
impl Sync for ReplicaInfo
impl Unpin for ReplicaInfo
impl UnsafeUnpin 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