pub struct TimerBuilder<D: DurationTicks> { /* private fields */ }
Expand description
Helper builder for a new software timer.
Implementations§
Source§impl<D: DurationTicks> TimerBuilder<D>
impl<D: DurationTicks> TimerBuilder<D>
Sourcepub fn set_period(&mut self, period: D) -> &mut Self
pub fn set_period(&mut self, period: D) -> &mut Self
Set the period of the timer.
Sourcepub fn set_auto_reload(&mut self, auto_reload: bool) -> &mut Self
pub fn set_auto_reload(&mut self, auto_reload: bool) -> &mut Self
Should the timer be automatically reloaded?
Auto Trait Implementations§
impl<D> Freeze for TimerBuilder<D>where
D: Freeze,
impl<D> RefUnwindSafe for TimerBuilder<D>where
D: RefUnwindSafe,
impl<D> Send for TimerBuilder<D>where
D: Send,
impl<D> Sync for TimerBuilder<D>where
D: Sync,
impl<D> Unpin for TimerBuilder<D>where
D: Unpin,
impl<D> UnwindSafe for TimerBuilder<D>where
D: 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