Structs§
- Basic
Event - A basic scheduled event.
task
will be called once when added to the scheduler. A mutable reference tostate
will be passed totask
on each call. iftask
returnsSome(Duration)
,task
will be rerun after that amount of time has passed. iftask
returnsNone
, theBasicEvent
will be dropped - Scheduler