Crate timeout_trait

Crate timeout_trait 

Source
Expand description

§timeout-trait

CI Crates.io Docs.rs License Downloads

Traits used to wait and timeout in a no-std embedded system.

It requires an implementation of TickInstant. In return, it provides TickTimeout and TickDuration, which can be used for timeout-related operations. It also includes an implementation of DelayNs called TickDelay, suitable for bare-metal systems.

§Cargo Features

  • std: Used for unit test. Disabled by default.

Re-exports§

pub use delay::TickDelay;
pub use duration::TickDuration;
pub use timeout::TickTimeout;
pub use fugit;

Modules§

delay
duration
fake_impls
prelude
std_impls
timeout

Traits§

DelayNs
Delay with up to nanosecond precision.
TickInstant
It doesn’t require operation interfaces on TickInstant itself. Embedded systems can thus implement only the relative time version, which means you can not use it as a global timestamp.

Type Aliases§

KilohertzU32
Alias for kilohertz rate (u32 backing storage)