[][src]Crate async_lock

Async locking primitives.

This crate provides two primitives:

  • Mutex - a mutual exclusion lock.
  • RwLock - a reader-writer lock, allowing any number of readers or a single writer.

Structs

Mutex

An async mutex.

MutexGuard

A guard that releases the mutex when dropped.

RwLock

An async reader-writer lock.

RwLockReadGuard

A guard that releases the read lock when dropped.

RwLockWriteGuard

A guard that releases the write lock when dropped.