A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.rs/embedded-io/0.6.1/x86_64-unknown-linux-gnu/embedded_io/trait.ReadReady.html below:

ReadReady in embedded_io - Rust

pub trait ReadReady: ErrorType {
    // Required method
    fn read_ready(&mut self) -> Result<bool, Self::Error>;
}
Expand description

Get whether a reader is ready.

This allows using a Read or BufRead in a nonblocking fashion, i.e. trying to read only when it is ready.

Source

Get whether the reader is ready for immediately reading.

This usually means that there is either some bytes have been received and are buffered and ready to be read, or that the reader is at EOF.

If this returns true, it’s guaranteed that the next call to Read::read or BufRead::fill_buf will not block.

Source§ Source§

Available on crate features std or alloc only.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4