pub struct TimerSpec {
pub duration_ms: u64,
pub mode: TimerMode,
}Expand description
Specification for an asynchronous timer.
Fields§
§duration_ms: u64Duration or interval in milliseconds.
mode: TimerModeWhether this timer fires once or repeats.
Implementations§
Trait Implementations§
impl Copy for TimerSpec
impl Eq for TimerSpec
impl StructuralPartialEq for TimerSpec
Auto Trait Implementations§
impl Freeze for TimerSpec
impl RefUnwindSafe for TimerSpec
impl Send for TimerSpec
impl Sync for TimerSpec
impl Unpin for TimerSpec
impl UnwindSafe for TimerSpec
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)