pub struct TimestampFactory { /* private fields */ }
Implementations§
Source§impl TimestampFactory
impl TimestampFactory
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a TimestampFactory with a random TimestampFactory::clock_id,
unless [getrandom()] returned and error, in which case it defaults to 0
.
Sourcepub fn clock_id(self, clock_id: u8) -> TimestampFactory
pub fn clock_id(self, clock_id: u8) -> TimestampFactory
Set the factory’s clock_id
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TimestampFactory
impl RefUnwindSafe for TimestampFactory
impl Send for TimestampFactory
impl Sync for TimestampFactory
impl Unpin for TimestampFactory
impl UnwindSafe for TimestampFactory
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