Skip to main content

Crate crux_time

Crate crux_time 

Source
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§

command
protocol

Structs§

CompletedTimerHandle
Equivalent of TimerHandle for timers which completed (i.e. specified time is in the past).
Time
Time capability API.
TimerFuture
TimerHandle
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§

TimerOutcome
Result of the timer run. Timers can either run to completion or be cleared early.