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
setsockoptandgetsockopt.
Structs§
- AllDir
Entries - DirEntries
- An iterator over directory entries in an already-populated
getdents64result 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
opensystem call behind a builder API.
Enums§
- DirEntry
Type - Directory entry type.
- Open
With Mode - A marker type used with
OpenOptionsto represent situations where opening the file would require amodeargument. - Open
Without Mode - A marker type used with
OpenOptionsto represent situations where opening the file would require amodeargument.
Constants§
- OPEN_
READ_ ONLY - Use with
File::opento open a file only for reading. - OPEN_
READ_ WRITE - Use with
File::opento open a file for both reading and writing. - OPEN_
WRITE_ ONLY - Use with
File::opento open a file only for writing.
Traits§
- Open
Mode - A marker trait used with
OpenOptionsto represent whether a particular set of options must be opened with an additionalmodeargument.