pub struct VectorClock<HostType: Hash + Eq> { /* private fields */ }
Implementations§
Source§impl<HostType: Clone + Hash + Eq> VectorClock<HostType>
impl<HostType: Clone + Hash + Eq> VectorClock<HostType>
pub fn new() -> VectorClock<HostType>
pub fn incremented(&self, host: HostType) -> Self
pub fn temporal_relation(&self, other: &Self) -> TemporalRelation
pub fn merge_with(&self, other: &Self) -> Self
Trait Implementations§
impl<HostType: Eq + Hash + Eq> Eq for VectorClock<HostType>
impl<HostType: Hash + Eq> StructuralPartialEq for VectorClock<HostType>
Auto Trait Implementations§
impl<HostType> Freeze for VectorClock<HostType>
impl<HostType> RefUnwindSafe for VectorClock<HostType>where
HostType: RefUnwindSafe,
impl<HostType> Send for VectorClock<HostType>where
HostType: Send,
impl<HostType> Sync for VectorClock<HostType>where
HostType: Sync,
impl<HostType> Unpin for VectorClock<HostType>where
HostType: Unpin,
impl<HostType> UnwindSafe for VectorClock<HostType>where
HostType: UnwindSafe,
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