pub struct ReplicationEvent {
pub shard_id: u16,
pub offset: u64,
pub record: AofRecord,
}Expand description
A mutation event broadcast to replication subscribers.
Published after every successful mutation on the hot path. The
offset is per-shard and monotonically increasing — replicas use it
to detect gaps and trigger re-sync when they fall behind.
Fields§
§shard_id: u16The shard that produced this event.
offset: u64Monotonically increasing per-shard offset.
record: AofRecordThe mutation record, ready to replay on a replica.
Trait Implementations§
Source§impl Clone for ReplicationEvent
impl Clone for ReplicationEvent
Source§fn clone(&self) -> ReplicationEvent
fn clone(&self) -> ReplicationEvent
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 ReplicationEvent
impl RefUnwindSafe for ReplicationEvent
impl Send for ReplicationEvent
impl Sync for ReplicationEvent
impl Unpin for ReplicationEvent
impl UnsafeUnpin for ReplicationEvent
impl UnwindSafe for ReplicationEvent
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