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§

timer extra context parameter.

Required Methods§

Create new timer with context parameter

Parameters

Implementors§