pub fn is_blocking(&self) -> Result<bool, io::Error> {
        let is_blocking = match unsafe { libc::fcntl(self.fd, libc::F_GETFL, 0) } {
            i if i >= 0 => i & libc::O_NONBLOCK == 0,
            _ => return Err(io::Error::last_os_error()),
        };
        Ok(is_blocking)
    }
/// Determines if underlying file descriptor is blocking.
Determines if underlying file descriptor is blocking.
Determines if underlying file descriptor is blocking .
pub fn is_blocking(&self) -> Result<bool, io::Error> {
        let is_blocking = match unsafe { libc::fcntl(self.fd, libc::F_GETFL, 0) } {
            i if i >= 0 => i & libc::O_NONBLOCK == 0,
            _ => return Err(io::Error::last_os_error()),
        };
        Ok(is_blocking)
    }
pub fn is_blocking ( & self ) -> Result < bool , io :: Error > { let is_blocking = match unsafe { libc :: fcntl ( self . fd , libc :: F_GETFL , 0 ) } { i if i >= 0 => i & libc :: O_NONBLOCK == 0 , _ => return Err ( io :: Error :: last_os_error ( ) ) , } ; Ok ( is_blocking ) }
Determines if underlying file descriptor is blocking.
Determines if underlying file descriptor is blocking .
&self
&self