pub struct TimerBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> TimerBuilder<S>
impl<S: State> TimerBuilder<S>
Sourcepub fn build(self) -> Timerwhere
S: IsComplete,
pub fn build(self) -> Timerwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: Id) -> TimerBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: Id) -> TimerBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Unique within the system or actuator description that contains it.
Sourcepub fn diagnostic_label(
self,
value: impl Into<String>,
) -> TimerBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn diagnostic_label(
self,
value: impl Into<String>,
) -> TimerBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> TimerBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
pub fn maybe_diagnostic_label(
self,
value: Option<impl Into<String>>,
) -> TimerBuilder<SetDiagnosticLabel<S>>where
S::DiagnosticLabel: IsUnset,
Sourcepub fn duration(self, value: Duration) -> TimerBuilder<SetDuration<S>>where
S::Duration: IsUnset,
pub fn duration(self, value: Duration) -> TimerBuilder<SetDuration<S>>where
S::Duration: IsUnset,
Required.
How long the timer runs once started.
Auto Trait Implementations§
impl<S> Freeze for TimerBuilder<S>
impl<S> RefUnwindSafe for TimerBuilder<S>
impl<S> Send for TimerBuilder<S>
impl<S> Sync for TimerBuilder<S>
impl<S> Unpin for TimerBuilder<S>
impl<S> UnsafeUnpin for TimerBuilder<S>
impl<S> UnwindSafe for TimerBuilder<S>
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