Function tokio_file_unix::set_file_nonblocking [] [src]

pub fn set_file_nonblocking(file: &mut File, nonblocking: bool) -> Result<()>

Sets nonblocking mode of the underlying file descriptor to either on (true) or off (false).

Implementation detail: uses fcntl to set O_NONBLOCK.