Skip to main content

set_nonblocking

Function set_nonblocking 

Source
pub fn set_nonblocking(fd: RawFd) -> Result<()>
Expand description

Set a file descriptor to non-blocking mode via fcntl(O_NONBLOCK).

Exposed so a forbid(unsafe_code) driver (yipd’s QUIC pump) can make its socket/device non-blocking without an unsafe block of its own.