Function win32_result
pub fn win32_result(res: i32, transferred: u32) -> Poll<Result<usize, Error>>Expand description
Convert the result of a Win32 call to a driver result.
ERROR_IO_PENDING becomes Poll::Pending, the “operation completed but
with a trailing condition” errors become Poll::Ready with the
transferred bytes, and anything else becomes an error.