embassy/docs/modules/ROOT/pages/traits.adoc
Ulf Lilleengen 5c4a9043d1 Update docs
2021-12-09 10:40:26 +01:00

8 lines
422 B
Text

= Embassy Traits
Embassy provides a set of traits and types specifically designed for `async` usage.
* `embassy::io`: `AsyncBufRead`, `AsyncWrite`. Traits for byte-stream IO, essentially `no_std` compatible versions of `futures::io`.
* `embassy::traits::flash`: Flash device trait.
* `embassy::time`: `Clock` and `Alarm` traits. Std-like `Duration` and `Instant`.
* More traits for SPI, I2C, UART async HAL coming soon.