pub trait TimerCallback<K: Kernel> {
// Required method
fn callback(
&mut self,
kernel: K,
timer: ForeignBox<Timer<K>>,
now: Instant<K::Clock>,
) -> Option<ForeignBox<Timer<K>>>;
}Required Methods§
fn callback( &mut self, kernel: K, timer: ForeignBox<Timer<K>>, now: Instant<K::Clock>, ) -> Option<ForeignBox<Timer<K>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".