Expand description
This module contains the FileManager
struct which gives more direct access to a file.
Re-exports§
pub use self::lock::NoLock;
pub use self::lock::ExclusiveLock;
pub use self::mode::Atomic;
pub use self::mode::Readonly;
pub use self::mode::Writable;
pub use self::mode::Reading;
pub use self::mode::Writing;
pub use self::format::FileFormat;
Modules§
- format
- How to interpret the contents of files.
- lock
- Defines different types of file system locks.
- mode
- Defines different modes of accessing/manipulating files.
Structs§
- File
Manager - Manages a single file, allowing you to manipulate it in certain ways depending on the type parameters provided. This includes file format, file locking mode, and file access mode.
Type Aliases§
- Manager
Atomic - Type alias to a file manager that is readable and writable (with atomic writes), and has no file lock.
See
Atomic
for more information. - Manager
Atomic Locked - Type alias to a file manager that is readable and writable (with atomic writes), and has an exclusive file lock.
See
Atomic
for more information. - Manager
Readonly - Type alias to a file manager that is read-only, and has no file lock.
- Manager
Readonly Locked - Type alias to a file manager that is read-only, and has a shared file lock.
- Manager
Writable - Type alias to a file manager that is readable and writable, and has no file lock.
- Manager
Writable Locked - Type alias to a file manager that is readable and writable, and has an exclusive file lock.