Expand description
Current time access for Crux apps
Current time (on a wall clock) is considered a side-effect (although if we were to get pedantic, it’s more of a side-cause) by Crux, and has to be obtained externally. This capability provides a simple interface to do so.
Re-exports§
pub use protocol::*;
Modules§
Structs§
- Completed
Timer Handle - Equivalent of
TimerHandlefor timers which completed (i.e. specified time is in the past). - Time
- Time capability API.
- Timer
Future - Timer
Handle - A handle to a requested timer. Allows the timer to be cleared. The handle is safe to drop, in which case the original timer is no longer abortable
Enums§
- Timer
Outcome - Result of the timer run. Timers can either run to completion or be cleared early.