Embassy provides a set of traits and types specifically designed for
async usage. Many of these futures will be upstreamed to the
embedded-hal crate at some point in the future, probably when the required GAT (Generic Associated Types) feature is stabilized in Rust.
AsyncWrite. Traits for byte-stream IO, essentially
no_stdcompatible versions of
futures::io. The primary reason for re-defining these traits is that the
std::io::Error, which does not work in the
embassy::traits: Async traits for Flash, SPI, I2C, UART, RNG, GPIO and more.
Drivertrait that is implemented for different platforms. Time in Embassy is represented using the
These traits are implemented by the platform-specific crates, such as