#traits

no-std timeout-trait

Traits used to wait and timeout

13 releases (7 breaking)

Uses new Rust 2024

0.8.1 Jan 19, 2026
0.8.0 Dec 31, 2025
0.7.0 Dec 31, 2025

#1769 in Embedded development


Used in 3 crates (via os-trait)

MIT/Apache

21KB
553 lines

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.

Dependencies

~220KB