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?