pub struct Dot {
pub replica: ReplicaId,
pub counter: u64,
}Expand description
A unique event identifier in a CRDT’s history.
A Dot represents a single event that occurred at a specific replica with a specific sequence number. Two dots are equal if and only if they have the same replica and counter.
Fields§
§replica: ReplicaIdThe replica that generated this event.
counter: u64The sequence number of this event at the replica.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Dot
impl<'de> Deserialize<'de> for Dot
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
impl Copy for Dot
impl Eq for Dot
impl StructuralPartialEq for Dot
Auto Trait Implementations§
impl Freeze for Dot
impl RefUnwindSafe for Dot
impl Send for Dot
impl Sync for Dot
impl Unpin for Dot
impl UnsafeUnpin for Dot
impl UnwindSafe for Dot
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