Module instant

Module instant 

Source
Expand description

Defines the Instant trait for clock users and corresponding implementations for clock implementers

The following types implementing the Instant trait are defined:

  • TimespecInstant for a struct of u32 seconds and u32 nanoseconds
  • Instant32 for an instant using a single u32 tick counter
  • Instant64 for an instant using a single u64 tick counter
  • If the std feature is enabled, the Instant trait is implemented on std::time::Instant

Structs§

Instant32
An Instant type using a single unsigned integer tick counter
Instant64
An Instant type using a single unsigned integer tick counter
TimespecInstant
An Instant type inspired by the timespec struct from the C standard library

Traits§

Instant
Trait for types which represent measurements of monotonically nondecreasing clocks