pub struct FrameClock {
pub tick: u64,
pub rate: RateClass,
}Expand description
Modeled device-rate clock used by crate::AdapterLoop.
The clock is a caller-advanced tick index. It does not read wall time, sleep, schedule work, or own an executor.
Fields§
§tick: u64Monotone device-frame tick.
rate: RateClassTiming envelope used to interpret tick distance.
Implementations§
Trait Implementations§
Source§impl Clone for FrameClock
impl Clone for FrameClock
Source§fn clone(&self) -> FrameClock
fn clone(&self) -> FrameClock
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 moreimpl Copy for FrameClock
Source§impl Debug for FrameClock
impl Debug for FrameClock
impl Eq for FrameClock
Source§impl PartialEq for FrameClock
impl PartialEq for FrameClock
impl StructuralPartialEq for FrameClock
Auto Trait Implementations§
impl Freeze for FrameClock
impl RefUnwindSafe for FrameClock
impl Send for FrameClock
impl Sync for FrameClock
impl Unpin for FrameClock
impl UnsafeUnpin for FrameClock
impl UnwindSafe for FrameClock
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