Struct adenosine_cli::identifiers::Ticker
source · pub struct Ticker { /* private fields */ }Expand description
TID Generator
This version uses 53-bit microsecond counter (since UNIX epoch), and a random 10-bit clock id.
If the current timestamp is not greater than the last timestamp (either because clock did not advance monotonically, or multiple TIDs were generated in the same microsecond (very unlikely), the timestamp is simply incremented.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Ticker
impl Send for Ticker
impl Sync for Ticker
impl Unpin for Ticker
impl UnwindSafe for Ticker
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more