pub struct TimerBuilder<P, K, I, C, S>{ /* private fields */ }Expand description
A builder for a timer
Implementations§
Source§impl<P> TimerBuilder<P, NoSelector, NoInterval, NoCallback, NoStorage>
impl<P> TimerBuilder<P, NoSelector, NoInterval, NoCallback, NoStorage>
Source§impl<P, K, I, C, S> TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> TimerBuilder<P, K, I, C, S>
Sourcepub const fn activation_state(self, state: OperationState) -> Self
pub const fn activation_state(self, state: OperationState) -> Self
Set the activation state.
Source§impl<P, I, C, S> TimerBuilder<P, NoSelector, I, C, S>
impl<P, I, C, S> TimerBuilder<P, NoSelector, I, C, S>
Sourcepub fn selector(self, selector: &str) -> TimerBuilder<P, Selector, I, C, S>
pub fn selector(self, selector: &str) -> TimerBuilder<P, Selector, I, C, S>
Set the key expression for the timer
Sourcepub fn name(self, topic: &str) -> TimerBuilder<P, Selector, I, C, S>
pub fn name(self, topic: &str) -> TimerBuilder<P, Selector, I, C, S>
Set only the name of the timer. Will be prefixed with agents prefix.
Source§impl<P, K, C, S> TimerBuilder<P, K, NoInterval, C, S>
impl<P, K, C, S> TimerBuilder<P, K, NoInterval, C, S>
Sourcepub fn interval(self, interval: Duration) -> TimerBuilder<P, K, Interval, C, S>
pub fn interval(self, interval: Duration) -> TimerBuilder<P, K, Interval, C, S>
set timers interval
Source§impl<P, K, I, S> TimerBuilder<P, K, I, NoCallback, S>
impl<P, K, I, S> TimerBuilder<P, K, I, NoCallback, S>
Source§impl<P, K, I, C> TimerBuilder<P, K, I, C, NoStorage>
impl<P, K, I, C> TimerBuilder<P, K, I, C, NoStorage>
Source§impl<P, S> TimerBuilder<P, Selector, Interval, Callback<ArcTimerCallback<P>>, S>
impl<P, S> TimerBuilder<P, Selector, Interval, Callback<ArcTimerCallback<P>>, S>
Trait Implementations§
Auto Trait Implementations§
impl<P, K, I, C, S> Freeze for TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> !RefUnwindSafe for TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> Send for TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> Sync for TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> Unpin for TimerBuilder<P, K, I, C, S>
impl<P, K, I, C, S> !UnwindSafe for TimerBuilder<P, K, I, C, S>
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more