pub struct TimestampFactory { /* private fields */ }Implementations§
Source§impl TimestampFactory
impl TimestampFactory
Sourcepub fn new() -> TimestampFactory
pub fn new() -> TimestampFactory
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§
Source§impl Default for TimestampFactory
impl Default for TimestampFactory
Source§fn default() -> TimestampFactory
fn default() -> TimestampFactory
Returns the “default value” for a type. Read more
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