pub struct TimerRuntime {
pub next_elapse_usec_realtime: Option<u64>,
pub next_elapse_usec_monotonic: Option<u64>,
pub last_trigger_usec: Option<Timestamp>,
}Expand description
Timer-specific runtime state.
Fields§
§next_elapse_usec_realtime: Option<u64>Next elapse on CLOCK_REALTIME; 0 for a purely monotonic timer.
next_elapse_usec_monotonic: Option<u64>§last_trigger_usec: Option<Timestamp>When the timer last fired; absent if it never has.
Trait Implementations§
Source§impl Clone for TimerRuntime
impl Clone for TimerRuntime
Source§fn clone(&self) -> TimerRuntime
fn clone(&self) -> TimerRuntime
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 moreSource§impl Debug for TimerRuntime
impl Debug for TimerRuntime
Source§impl<'de> Deserialize<'de> for TimerRuntime
impl<'de> Deserialize<'de> for TimerRuntime
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TimerRuntime
impl RefUnwindSafe for TimerRuntime
impl Send for TimerRuntime
impl Sync for TimerRuntime
impl Unpin for TimerRuntime
impl UnsafeUnpin for TimerRuntime
impl UnwindSafe for TimerRuntime
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