Expand description
§timeout-trait
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§
Traits§
- DelayNs
- Delay with up to nanosecond precision.
- Tick
Instant - It doesn’t require operation interfaces on
TickInstantitself. Embedded systems can thus implement only the relative time version, which means you can not use it as a global timestamp.
Type Aliases§
- Kilohertz
U32 - Alias for kilohertz rate (
u32backing storage)