pub struct MemClock { /* private fields */ }Expand description
A thread safe implementation of a lamport clock. It uses efficient atomic operations for all of its functions.
Implementations§
Trait Implementations§
Source§impl Clock for MemClock
impl Clock for MemClock
Source§type IncrementError = Infallible
type IncrementError = Infallible
The Error returned, when trying to
increment
this clock.Source§type WitnessError = Infallible
type WitnessError = Infallible
The Error returned, when trying to
witness this
clock.Auto Trait Implementations§
impl !Freeze for MemClock
impl RefUnwindSafe for MemClock
impl Send for MemClock
impl Sync for MemClock
impl Unpin for MemClock
impl UnwindSafe for MemClock
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