pub struct ReplicaSlot {
pub id: String,
pub last_seen_ns: u64,
pub acked_offset: u64,
}Expand description
One connected-or-recently-disconnected replica.
Fields§
§id: StringOperator-set replica identifier (opaque to the primary other than for slot bookkeeping).
last_seen_ns: u64Monotonic ns timestamp of the most recent contact (handshake
or ack). Drives expiry under reconnect_window_ms.
acked_offset: u64Highest offset the replica has acked. The streaming loop resumes sending from here on reconnect.
Trait Implementations§
Source§impl Clone for ReplicaSlot
impl Clone for ReplicaSlot
Source§fn clone(&self) -> ReplicaSlot
fn clone(&self) -> ReplicaSlot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReplicaSlot
impl Debug for ReplicaSlot
impl Eq for ReplicaSlot
Source§impl PartialEq for ReplicaSlot
impl PartialEq for ReplicaSlot
Source§fn eq(&self, other: &ReplicaSlot) -> bool
fn eq(&self, other: &ReplicaSlot) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReplicaSlot
Auto Trait Implementations§
impl Freeze for ReplicaSlot
impl RefUnwindSafe for ReplicaSlot
impl Send for ReplicaSlot
impl Sync for ReplicaSlot
impl Unpin for ReplicaSlot
impl UnsafeUnpin for ReplicaSlot
impl UnwindSafe for ReplicaSlot
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