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
). IfFile::new_nb
was previously used to construct theFile
, then nonblocking mode has already been turned on.