Function layered_io::to_std_io_read_result[][src]

pub fn to_std_io_read_result(size_and_status: (usize, Status)) -> Result<usize>
Expand description

Translate from read_with_status’s return value with independent size and status to a std::io::Read::read return value where 0 is special-cased to mean end-of-stream, an io::ErrorKind::Interrupted error is used to indicate a zero-length read, and pushes are not reported.