Crate embedded_io_async

Crate embedded_io_async 

Source
Expand description

crates.io crates.io Documentation

§embedded-io-async

Async IO traits for embedded systems.

This crate contains asynchronous versions of the embedded-io traits and shares its scope and design goals.

This project is developed and maintained by the HAL team.

§Optional Cargo features

  • std: Adds From impls to convert to/from std::io structs.
  • alloc: Adds blanket impls for Box, adds Write impl to Vec.
  • defmt: Derive defmt::Format from defmt 1.0 for enums and structs.

§Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.75 and up. It might compile with older versions but that may change in any new patch release.

See here for details on how the MSRV may be upgraded.

§License

Licensed under either of

at your option.

§Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Enums§

ErrorKind
Possible kinds of errors.
ReadExactError
Error returned by Read::read_exact
SeekFrom
Enumeration of possible methods to seek within an I/O object.

Traits§

BufRead
Async buffered reader.
Error
Error trait.
ErrorType
Base trait for all IO traits, defining the error type.
Read
Async reader.
ReadReady
Get whether a reader is ready.
Seek
Async seek within streams.
Write
Async writer.
WriteReady
Get whether a writer is ready.