unsafe fn set_nonblocking(fd: RawFd, nonblocking: bool) -> Result<()>
Sets fd to be blocking or nonblocking. fd must be a valid fd of a type that accepts the O_NONBLOCK flag. This includes regular files, pipes, and sockets.
fd
O_NONBLOCK