Trait netstack3_base::TimerHandler
source · pub trait TimerHandler<BC, Id> {
// Required method
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id);
}
Expand description
A handler for timer firing events.
A TimerHandler
is a type capable of handling the event of a timer firing.
TimerHandler
is offered as a blanket implementation for all timers that
implement HandleableTimer
. TimerHandler
is meant to be used as bounds
on core context types. whereas HandleableTimer
allows split-crate
implementations sidestepping coherence issues.
Required Methods§
sourcefn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.