Crate readlock_tokio

Source
Expand description

§readlock-tokio

A clone of the readlock crate that uses tokio’s RwLock instead of the one from std.

Modules§

litelite
Versions of Shared and SharedReadLock that are implemented in terms of the rclite crate. Because rclite::Arc doesn’t have weak references, there is no WeakReadLock here.

Structs§

OwnedSharedReadGuard
RAII structure used to release the shared read access of a lock when dropped.
Shared
A wrapper around a resource possibly shared with SharedReadLocks and WeakReadLocks, but no other Shareds.
SharedReadGuard
RAII structure used to release the shared read access of a lock when dropped.
SharedReadLock
A read-only reference to a resource possibly shared with up to one Shared and many WeakReadLocks.
SharedWriteGuard
RAII structure used to release the exclusive write access of a lock when dropped.
TryLockError
Error returned from SharedReadLock::try_lock.
WeakReadLock
A weak read-only reference to a resource possibly shared with up to one Shared, and many SharedReadLocks.

Type Aliases§

TryLockResult
A type alias for the result of a nonblocking locking method.