embassy-sync

Crates

git

Versions

default

Flavors

Module rwlock

Source
Expand description

Async read-write lock.

This module provides a read-write lock that can be used to synchronize data between asynchronous tasks.

Structs§

RwLock
Async read-write lock.
RwLockReadGuard
Async read lock guard.
RwLockWriteGuard
Async write lock guard.
TryLockError
Error returned by RwLock::try_read and RwLock::try_write when the lock is already held.