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§
- Access
Guard - A lifetime-bound, read-only access permit into a
ContainerSharedAsync
. - Access
Guard Mut - A lifetime-bound, mutable access permit into a
ContainerSharedAsync
. - Container
Shared Async - 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. - Owned
Access Guard - An owned, read-only access permit into a
ContainerSharedAsync
. - Owned
Access Guard Mut - An owned, mutable access permit into a
ContainerSharedAsync
.
Type Aliases§
- Container
Shared Async Atomic - Type alias to a shared, asynchronous, thread-safe container that is readable and writable (with atomic writes).
See
Atomic
for more information. - Container
Shared Async Atomic Locked - 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. - Container
Shared Async Readonly - Type alias to a shared, asynchronous, thread-safe container that is read-only.
- Container
Shared Async Readonly Locked - Type alias to a shared, asynchronous, thread-safe container that is read-only, and has a shared file lock.
- Container
Shared Async Writable - Type alias to a shared, asynchronous, thread-safe container that is readable and writable.
- Container
Shared Async Writable Locked - Type alias to a shared, asynchronous, thread-safe container that is readable and writable, and has an exclusive file lock.