TimerFnPtr

Type Alias TimerFnPtr 

Source
pub type TimerFnPtr = dyn Fn(Box<dyn Timer>, Option<TimerParam>) -> Result<TimerParam> + Send + Sync + 'static;
Expand description

Timer callback function pointer type.

Callbacks receive the timer handle and optional parameter, and can return an updated parameter value.