Trait system_interface::io::ReadReady[][src]

pub trait ReadReady {
    fn num_ready_bytes(&self) -> Result<u64>;
}
Expand description

Extension for readable streams that can indicate the number of bytes ready to be read immediately.

Required methods

Return the number of bytes which are ready to be read immediately.

Implementations on Foreign Types

Implement ReadReady for Stdin.

Implement ReadReady for StdinLock.

Implement ReadReady for std::net::TcpStream.

Implement ReadReady for std::os::unix::net::UnixStream.

Implementors