Trait completeq_rs::TimerWithContext
source · pub trait TimerWithContext: Timer {
type Context;
fn new_with_context<C>(duration: Duration, context: C) -> Self
where
C: AsMut<Self::Context>;
}
Expand description
Timer service provider trait with more configiration.
Required Associated Types§
Required Methods§
sourcefn new_with_context<C>(duration: Duration, context: C) -> Selfwhere
C: AsMut<Self::Context>,
fn new_with_context<C>(duration: Duration, context: C) -> Selfwhere
C: AsMut<Self::Context>,
Create new timer with context parameter
Parameters
duration
- Timer expiration intervalcontext
- SeeTimerWithContext::Context