Trait embedded_svc::timer::TimerService
source · pub trait TimerService: ErrorType {
type Timer<'a>: OnceTimer<Error = Self::Error> + PeriodicTimer<Error = Self::Error> + 'a
where Self: 'a;
// Required method
fn timer<F>(&self, callback: F) -> Result<Self::Timer<'_>, Self::Error>
where F: FnMut() + Send + 'static;
}
Required Associated Types§
type Timer<'a>: OnceTimer<Error = Self::Error> + PeriodicTimer<Error = Self::Error> + 'a where Self: 'a
Required Methods§
Object Safety§
This trait is not object safe.