Scheduled
The Scheduled Crate provides utilities for managing scheduled events in Rust applications. This is just a simple implementation of a event queue and is meant to be used in any automated applications.
Features
This scheduler uses chronos time system to specify dates and times so it is best to pair this with their types.
- Schedule events to occur at specific dates or after certain durations.
- Manage a queue of events, executing them when their activation time is reached.
- Customizable event functions with the
EventFunctype.
Example
use ;
use ;
Structs
Scheduler
This struct is responsible for managing the events you have as well as adding them and executing them.
Event
Internal representation of an event. It is a pair of do funcs and a date time.