[][src]Function layered_io::to_std_io_read_result

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

Translate from read_with_status's return value with independent size and status to a std::io::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.