pub struct DottedVersionVector { /* private fields */ }Expand description
A dotted version vector for tracking object versions.
Implementations§
Source§impl DottedVersionVector
impl DottedVersionVector
Sourcepub fn merge(&mut self, other: &DottedVersionVector)
pub fn merge(&mut self, other: &DottedVersionVector)
Merge with another dotted version vector.
Sourcepub fn dominates(&self, other: &DottedVersionVector) -> bool
pub fn dominates(&self, other: &DottedVersionVector) -> bool
Check if this DVV dominates another.
Sourcepub fn base(&self) -> &VectorClock
pub fn base(&self) -> &VectorClock
Get the base vector clock.
Trait Implementations§
Source§impl Clone for DottedVersionVector
impl Clone for DottedVersionVector
Source§fn clone(&self) -> DottedVersionVector
fn clone(&self) -> DottedVersionVector
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 moreSource§impl Debug for DottedVersionVector
impl Debug for DottedVersionVector
Source§impl Default for DottedVersionVector
impl Default for DottedVersionVector
Source§fn default() -> DottedVersionVector
fn default() -> DottedVersionVector
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DottedVersionVector
impl<'de> Deserialize<'de> for DottedVersionVector
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 DottedVersionVector
impl RefUnwindSafe for DottedVersionVector
impl Send for DottedVersionVector
impl Sync for DottedVersionVector
impl Unpin for DottedVersionVector
impl UnsafeUnpin for DottedVersionVector
impl UnwindSafe for DottedVersionVector
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