Module singlefile::container_shared_async
source · Available on crate feature
shared-async
only.Expand description
Container constructs allowing multiple-ownership, asynchronous, managed access to a file.
This module can be enabled with the shared-async
cargo feature.
Structs
- A lifetime-bound, read-only access permit into a
ContainerSharedAsync
. - A lifetime-bound, mutable access permit into a
ContainerSharedAsync
. - A container that allows asynchronous atomic reference-counted, mutable access (gated by an
RwLock
) to the underlying file and contents. Cloning this container will not clone the underlying contents, it will clone the underlying pointer, allowing multiple-access. - An owned, read-only access permit into a
ContainerSharedAsync
. - An owned, mutable access permit into a
ContainerSharedAsync
.
Type Aliases
- Type alias to a shared, asynchronous, thread-safe container that is readable and writable (with atomic writes). See
Atomic
for more information. - Type alias to a shared, asynchronous, thread-safe container that is readable and writable (with atomic writes), and has an exclusive file lock. See
Atomic
for more information. - Type alias to a shared, asynchronous, thread-safe container that is read-only.
- Type alias to a shared, asynchronous, thread-safe container that is read-only, and has a shared file lock.
- Type alias to a shared, asynchronous, thread-safe container that is readable and writable.
- Type alias to a shared, asynchronous, thread-safe container that is readable and writable, and has an exclusive file lock.