pub fn handle_timer<D: EventDispatcher>(ctx: &mut Ctx<D>, id: TimerId) {
    trace!("handle_timer: dispatching timerid: {:?}", id);

    match id {
        TimerId(TimerIdInner::DeviceLayer(x)) => {
            device::handle_timer(ctx, x);
        }
        TimerId(TimerIdInner::_TransportLayer(x)) => {
            transport::handle_timer(ctx, x);
        }
        TimerId(TimerIdInner::IpLayer(x)) => {
            ip::handle_timer(ctx, x);
        }
        #[cfg(test)]
        TimerId(TimerIdInner::Nop(_)) => {
            increment_counter!(ctx, "timer::nop");
        }
    }
}
/// Handle a generic timer event.
Handle a generic timer event.
Handle a generic timer event .
pub fn handle_timer<D: EventDispatcher>(ctx: &mut Ctx<D>, id: TimerId) {
    trace!("handle_timer: dispatching timerid: {:?}", id);
    match id {
        TimerId(TimerIdInner::DeviceLayer(x)) => {
            device::handle_timer(ctx, x);
        }
        TimerId(TimerIdInner::_TransportLayer(x)) => {
            transport::handle_timer(ctx, x);
        }
        TimerId(TimerIdInner::IpLayer(x)) => {
            ip::handle_timer(ctx, x);
        }
        #[cfg(test)]
        TimerId(TimerIdInner::Nop(_)) => {
            increment_counter!(ctx, "timer::nop");
        }
    }
}
pub fn handle_timer < D : EventDispatcher > ( ctx : & mut Ctx < D > , id : TimerId ) { trace ! ( " " id ) ; match id { TimerId ( TimerIdInner :: DeviceLayer ( x ) ) => { device :: handle_timer ( ctx , x ) ; } TimerId ( TimerIdInner :: _TransportLayer ( x ) ) => { transport :: handle_timer ( ctx , x ) ; } TimerId ( TimerIdInner :: IpLayer ( x ) ) => { ip :: handle_timer ( ctx , x ) ; } # [ cfg ( test ) ] TimerId ( TimerIdInner :: Nop ( _ ) ) => { increment_counter ! ( ctx " " ) ; } } }
Handle a generic timer event.
Handle a generic timer event .
ctx
&mut Ctx<D>
id
TimerId
ctx
&mut Ctx<D>
id
TimerId