Struct compact_time::TimeSource
source · pub struct TimeSource(/* private fields */);Expand description
Source of Time values which are computed asynchronously.
A TimeSource computes the current time in a fixed, configurable frequency, potentially
saving the overhead of system calls but with less resolution.
Implementations§
Trait Implementations§
source§impl Clone for TimeSource
impl Clone for TimeSource
source§fn clone(&self) -> TimeSource
fn clone(&self) -> TimeSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for TimeSource
impl Send for TimeSource
impl Sync for TimeSource
impl Unpin for TimeSource
impl !UnwindSafe for TimeSource
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