pub fn nonblock(&self) -> Result<(), io::Error> {
        match unsafe {
            libc::fcntl(
                self.fd,
                libc::F_SETFL,
                libc::fcntl(self.fd, libc::F_GETFL, 0) | libc::O_NONBLOCK,
            )
        } {
            i if i < 0 => Err(io::Error::last_os_error()),
            _ => Ok(()),
        }
    }
/// Set underlying socket file descriptor to be non blocking.
Set underlying socket file descriptor to be non blocking.
Set underlying socket file descriptor to be non blocking .
pub fn nonblock(&self) -> Result<(), io::Error> {
        match unsafe {
            libc::fcntl(
                self.fd,
                libc::F_SETFL,
                libc::fcntl(self.fd, libc::F_GETFL, 0) | libc::O_NONBLOCK,
            )
        } {
            i if i < 0 => Err(io::Error::last_os_error()),
            _ => Ok(()),
        }
    }
pub fn nonblock ( & self ) -> Result < ( ) , io :: Error > { match unsafe { libc :: fcntl ( self . fd , libc :: F_SETFL , libc :: fcntl ( self . fd , libc :: F_GETFL , 0 ) | libc :: O_NONBLOCK , ) } { i if i < 0 => Err ( io :: Error :: last_os_error ( ) ) , _ => Ok ( ( ) ) , } }
Set underlying socket file descriptor to be non blocking.
Set underlying socket file descriptor to be non blocking .
&self
&self