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§

source

fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)

Handle a timer firing.

Implementors§

source§

impl<Id, CC, BC> TimerHandler<BC, Id> for CC
where Id: HandleableTimer<CC, BC>,