pub struct ReplicationMutation {
pub shard_id: usize,
pub sequence: u64,
pub timestamp_ms: u64,
pub op: ReplicationMutationOp,
pub key_hash: u64,
pub key_tag: u64,
pub key: Bytes,
pub value: Bytes,
pub expire_at_ms: Option<u64>,
}Fields§
§shard_id: usize§sequence: u64§timestamp_ms: u64§op: ReplicationMutationOp§key_hash: u64§key_tag: u64§key: Bytes§value: Bytes§expire_at_ms: Option<u64>Implementations§
Source§impl ReplicationMutation
impl ReplicationMutation
pub fn from_record(record: &MutationRecord) -> Self
pub fn from_record_with_key_hash(record: &MutationRecord, key_hash: u64) -> Self
pub fn estimated_uncompressed_len(&self) -> usize
Trait Implementations§
Source§impl Clone for ReplicationMutation
impl Clone for ReplicationMutation
Source§fn clone(&self) -> ReplicationMutation
fn clone(&self) -> ReplicationMutation
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 ReplicationMutation
impl Debug for ReplicationMutation
Source§impl From<&ReplicationMutation> for MutationOp
impl From<&ReplicationMutation> for MutationOp
Source§fn from(value: &ReplicationMutation) -> Self
fn from(value: &ReplicationMutation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ReplicationMutation
impl PartialEq for ReplicationMutation
Source§fn eq(&self, other: &ReplicationMutation) -> bool
fn eq(&self, other: &ReplicationMutation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReplicationMutation
impl StructuralPartialEq for ReplicationMutation
Auto Trait Implementations§
impl !Freeze for ReplicationMutation
impl RefUnwindSafe for ReplicationMutation
impl Send for ReplicationMutation
impl Sync for ReplicationMutation
impl Unpin for ReplicationMutation
impl UnsafeUnpin for ReplicationMutation
impl UnwindSafe for ReplicationMutation
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