Crate tokio_file_unix

Source
Expand description

A utility library that adds asynchronous support to file-like objects on Unix-like platforms.

This crate is primarily intended for pipes and other files that support nonblocking I/O. Regular files do not support nonblocking I/O, so this crate has no effect on them.

See File for an example of how a file can be made suitable for asynchronous I/O.

Structs§

File
Wraps file-like objects for asynchronous I/O.

Functions§

get_nonblocking
Gets the nonblocking mode of the underlying file descriptor.
raw_stderr
Duplicate the standard error file.
raw_stdin
Duplicate the standard input file.
raw_stdout
Duplicate the standard output file.
set_nonblocking
Sets the nonblocking mode of the underlying file descriptor to either on (true) or off (false). If File::new_nb was previously used to construct the File, then nonblocking mode has already been turned on.