pub struct PlatformTime {
pub wall: Arc<dyn WallClock>,
pub monotonic: Arc<dyn MonotonicClock>,
pub timer: Arc<dyn Timer>,
}Expand description
Complete explicitly supplied platform-time binding.
Fields§
§wall: Arc<dyn WallClock>Human-facing wall observations.
monotonic: Arc<dyn MonotonicClock>Correctness-safe monotonic observations.
timer: Arc<dyn Timer>Timer paired with the monotonic clock.
Trait Implementations§
Source§impl Clone for PlatformTime
impl Clone for PlatformTime
Source§fn clone(&self) -> PlatformTime
fn clone(&self) -> PlatformTime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlatformTime
impl !UnwindSafe for PlatformTime
impl Freeze for PlatformTime
impl Send for PlatformTime
impl Sync for PlatformTime
impl Unpin for PlatformTime
impl UnsafeUnpin for PlatformTime
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