pub struct IncreasingClock { /* private fields */ }Expand description
Thread-safe increasing clock
Implementations§
Source§impl IncreasingClock
impl IncreasingClock
Sourcepub fn update_to_max(&self, other: u64)
pub fn update_to_max(&self, other: u64)
Update to max of current and provided value (ensures monotonicity when receiving updates)
Trait Implementations§
Source§impl Clone for IncreasingClock
impl Clone for IncreasingClock
Source§impl Debug for IncreasingClock
impl Debug for IncreasingClock
Auto Trait Implementations§
impl !Freeze for IncreasingClock
impl RefUnwindSafe for IncreasingClock
impl Send for IncreasingClock
impl Sync for IncreasingClock
impl Unpin for IncreasingClock
impl UnwindSafe for IncreasingClock
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