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

AccessGuard
A lifetime-bound, read-only access permit into a ContainerSharedAsync.
AccessGuardMut
A lifetime-bound, mutable access permit into a ContainerSharedAsync.
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.
OwnedAccessGuard
An owned, read-only access permit into a ContainerSharedAsync.
OwnedAccessGuardMut
An owned, mutable access permit into a ContainerSharedAsync.

Type Aliases§

ContainerSharedAsyncAtomic
Type alias to a shared, asynchronous, thread-safe container that is readable and writable (with atomic writes). See Atomic for more information.
ContainerSharedAsyncAtomicLocked
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.
ContainerSharedAsyncReadonly
Type alias to a shared, asynchronous, thread-safe container that is read-only.
ContainerSharedAsyncReadonlyLocked
Type alias to a shared, asynchronous, thread-safe container that is read-only, and has a shared file lock.
ContainerSharedAsyncWritable
Type alias to a shared, asynchronous, thread-safe container that is readable and writable.
ContainerSharedAsyncWritableLocked
Type alias to a shared, asynchronous, thread-safe container that is readable and writable, and has an exclusive file lock.