embedded_io - Rust (original) (raw)

Expand description

crates.io crates.io Documentation

§embedded-io

This project is developed and maintained by the HAL team.

Input/Output traits for embedded systems.

Rust’s std::io traits are not available in no_std targets, mainly because std::io::Errorrequires allocation. This crate contains replacement equivalent traits, usable in no_stdtargets.

§Differences with std::io

§Optional Cargo features

§Minimum Supported Rust Version (MSRV)

This crate is guaranteed to compile on stable Rust 1.60 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.

ErrorKind

Possible kinds of errors.

ReadExactError

Error returned by Read::read_exact

SeekFrom

Enumeration of possible methods to seek within an I/O object.

SliceWriteError

Errors that could be returned by Write on &mut [u8].

WriteFmtError

Error returned by Write::write_fmt

BufRead

Blocking buffered reader.

Error

Error trait.

ErrorType

Base trait for all IO traits, defining the error type.

Read

Blocking reader.

ReadReady

Get whether a reader is ready.

Seek

Blocking seek within streams.

Write

Blocking writer.

WriteReady

Get whether a writer is ready.