Expand description
The main File
type and its supporting utilities for working safely with file descriptors.
Modules§
- fcntl
- A safer abstraction for
fcntl
. - ioctl
- A safer abstraction for
ioctl
. - sockopt
- A safer abstraction for
setsockopt
andgetsockopt
.
Structs§
- AllDir
Entries - DirEntries
- An iterator over directory entries in an already-populated
getdents64
result buffer. - DirEntry
- A single directory entry extracted from a buffer populated by
getdents64
. - File
- An encapsulated Linux file descriptor.
- Open
Options - Encapsulates the various options for the
open
system call behind a builder API.
Enums§
- DirEntry
Type - Directory entry type.
- Open
With Mode - A marker type used with
OpenOptions
to represent situations where opening the file would require amode
argument. - Open
Without Mode - A marker type used with
OpenOptions
to represent situations where opening the file would require amode
argument.
Constants§
- OPEN_
READ_ ONLY - Use with
File::open
to open a file only for reading. - OPEN_
READ_ WRITE - Use with
File::open
to open a file for both reading and writing. - OPEN_
WRITE_ ONLY - Use with
File::open
to open a file only for writing.
Traits§
- Open
Mode - A marker trait used with
OpenOptions
to represent whether a particular set of options must be opened with an additionalmode
argument.