pub struct TimePivot { /* private fields */ }Implementations§
Source§impl TimePivot
impl TimePivot
pub fn build() -> Self
pub fn started_ms(&self) -> u64
pub fn timestamp_ms(&self, now: Instant) -> u64
pub fn started_us(&self) -> u64
pub fn timestamp_us(&self, now: Instant) -> u64
Auto Trait Implementations§
impl Freeze for TimePivot
impl RefUnwindSafe for TimePivot
impl Send for TimePivot
impl Sync for TimePivot
impl Unpin for TimePivot
impl UnwindSafe for TimePivot
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