Module manager

Source
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::SharedLock;
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§

FileManager
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§

ManagerAtomic
Type alias to a file manager that is readable and writable (with atomic writes), and has no file lock. See Atomic for more information.
ManagerAtomicLocked
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.
ManagerReadonly
Type alias to a file manager that is read-only, and has no file lock.
ManagerReadonlyLocked
Type alias to a file manager that is read-only, and has a shared file lock.
ManagerWritable
Type alias to a file manager that is readable and writable, and has no file lock.
ManagerWritableLocked
Type alias to a file manager that is readable and writable, and has an exclusive file lock.