pub trait InstantBindingsTypes {
    type Instant: Instant + 'static;
Expand description

Trait defining the Instant type provided by bindings’ InstantContext implementation.

It is a separate trait from InstantContext so the type stands by itself to be stored at rest in core structures.

Required Associated Types§


type Instant: Instant + 'static

The type of an instant in time.

All time is measured using Instants, including scheduling timers through TimerContext. This type may represent some sort of real-world time (e.g., [std::time::Instant]), or may be faked in testing using a fake clock.