pub trait TimerService: ErrorType {
    type Timer: OnceTimer<Error = Self::Error> + PeriodicTimer<Error = Self::Error> + 'static;

    fn timer(
        &mut self,
        callback: impl FnMut() + Send + 'static
    ) -> Result<Self::Timer, Self::Error>; }

Required Associated Types§

Required Methods§

Implementations on Foreign Types§

Implementors§