pub fn result(&self) -> Result<u32, std::io::Error> {
        let res = self.res;

        if res < 0 {
            Err(std::io::Error::from_raw_os_error(res))
        } else {
            Ok(res as u32)
        }
    }
/// Return the result associated to the IO operation.
Return the result associated to the IO operation.
Return the result associated to the IO operation .
pub fn result(&self) -> Result<u32, std::io::Error> {
        let res = self.res;
        if res < 0 {
            Err(std::io::Error::from_raw_os_error(res))
        } else {
            Ok(res as u32)
        }
    }
pub fn result ( & self ) -> Result < u32 , std :: io :: Error > { let res = self . res ; if res < 0 { Err ( std :: io :: Error :: from_raw_os_error ( res ) ) } else { Ok ( res as u32 ) } }
Return the result associated to the IO operation.
Return the result associated to the IO operation .
&self
&self