pub struct FromClock<K>(pub K);Expand description
A win-time-sys clock on interrupt time, given to dioring as the clock it stamps with: the
clock must keep Steady’s promise that its readings never decrease, which it states by
implementing it. A win-time-sys clock cannot be a StampClock itself, because the trait is
another crate’s.
Tuple Fields§
§0: KTrait Implementations§
impl<K: Copy> Copy for FromClock<K>
Source§impl<K: Clock<Timeline = InterruptTime> + Steady + Send + 'static> StampClock for FromClock<K>
impl<K: Clock<Timeline = InterruptTime> + Steady + Send + 'static> StampClock for FromClock<K>
Source§type Instant = TimePoint<InterruptTime>
type Instant = TimePoint<InterruptTime>
What a reading is.
Source§fn now(&self) -> WinInstant
fn now(&self) -> WinInstant
A reading: never before one taken earlier.
Auto Trait Implementations§
impl<K> Freeze for FromClock<K>where
K: Freeze,
impl<K> RefUnwindSafe for FromClock<K>where
K: RefUnwindSafe,
impl<K> Send for FromClock<K>where
K: Send,
impl<K> Sync for FromClock<K>where
K: Sync,
impl<K> Unpin for FromClock<K>where
K: Unpin,
impl<K> UnsafeUnpin for FromClock<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for FromClock<K>where
K: UnwindSafe,
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