[−][src]Struct freertos_rust::TimerBuilder 
Helper builder for a new software timer.
Methods
impl<D: DurationTicks> TimerBuilder<D>[src]
pub fn set_name(&mut self, name: &str) -> &mut Self[src]
Set the name of the timer.
pub fn set_period(&mut self, period: D) -> &mut Self[src]
Set the period of the timer.
pub fn set_auto_reload(&mut self, auto_reload: bool) -> &mut Self[src]
Should the timer be automatically reloaded?
pub fn create<F>(&self, callback: F) -> Result<Timer, FreeRtosError> where
    F: Fn(Timer),
    F: Send + 'static, [src]
F: Fn(Timer),
F: Send + 'static,
Try to create the new timer.
Note that the newly created timer must be started.
Auto Trait Implementations
impl<D> Send for TimerBuilder<D> where
    D: Send, 
D: Send,
impl<D> Sync for TimerBuilder<D> where
    D: Sync, 
D: Sync,
impl<D> Unpin for TimerBuilder<D> where
    D: Unpin, 
D: Unpin,
Blanket Implementations
impl<T> Any for T where
    T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
    T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
    T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
    U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
    U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, [src]
U: TryFrom<T>,