Expand description
The main File
type and its supporting utilities for working safely with file descriptors.
Modules
- A safer abstraction for
fcntl
. - A safer abstraction for
ioctl
. - A safer abstraction for
setsockopt
andgetsockopt
.
Structs
- An encapsulated Linux file descriptor.
- Encapsulates the various options for the
open
system call behind a builder API.
Enums
- A marker type used with
OpenOptions
to represent situations where opening the file would require amode
argument. - A marker type used with
OpenOptions
to represent situations where opening the file would require amode
argument.
Constants
- Use with
File::open
to open a file only for reading. - Use with
File::open
to open a file for both reading and writing. - Use with
File::open
to open a file only for writing.
Traits
- A marker trait used with
OpenOptions
to represent whether a particular set of options must be opened with an additionalmode
argument.