Trait netstack3_core::TimerBindingsTypes

source ·
pub trait TimerBindingsTypes {
    type Timer: Debug + Send + Sync;
    type DispatchId: Clone;
    type UniqueTimerId: PartialEq + Eq;
}
Expand description

Opaque types provided by bindings used by TimerContext.

Required Associated Types§

source

type Timer: Debug + Send + Sync

State for a timer created through TimerContext.

source

type DispatchId: Clone

The type used to dispatch fired timers from bindings to core.

source

type UniqueTimerId: PartialEq + Eq

A value that uniquely identifiers a Timer. It is given along with the DispatchId whenever a timer is fired.

See TimerContext::unique_timer_id for details.

Object Safety§

This trait is not object safe.

Implementors§