Trait system_interface::io::ReadReady
source · [−]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
fn num_ready_bytes(&self) -> Result<u64>
fn num_ready_bytes(&self) -> Result<u64>
Return the number of bytes which are ready to be read immediately.
Implementations on Foreign Types
sourceimpl ReadReady for Stdin
impl ReadReady for Stdin
Implement ReadReady
for Stdin
.
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl<'a> ReadReady for StdinLock<'a>
impl<'a> ReadReady for StdinLock<'a>
Implement ReadReady
for StdinLock
.
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for TcpStream
impl ReadReady for TcpStream
Implement ReadReady
for std::net::TcpStream
.
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for TcpStream
impl ReadReady for TcpStream
Implement ReadReady
for std::net::TcpStream
.
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for UnixStream
impl ReadReady for UnixStream
Implement ReadReady
for std::os::unix::net::UnixStream
.
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for ChildStdout
impl ReadReady for ChildStdout
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for ChildStderr
impl ReadReady for ChildStderr
fn num_ready_bytes(&self) -> Result<u64>
sourceimpl ReadReady for File
impl ReadReady for File
Implement ReadReady
for cap_std::fs::File
.