Module sync

Module sync 

Source

Modules§

channel
duplex
mpsc
oneshot
A one-shot channel is used for sending a single message between asynchronous tasks. The channel function is used to create a Sender and Receiver handle pair that form the channel.
queue

Structs§

Mutex
An asynchronous Mutex-like type.
MutexGuard
A handle to a held Mutex. The guard can be held across any .await point as it is Send.
RwLock
An asynchronous reader-writer lock.
RwLockReadGuard
RAII structure used to release the shared read access of a lock when dropped.
RwLockWriteGuard
RAII structure used to release the exclusive write access of a lock when dropped.
Semaphore
Counting semaphore performing asynchronous permit acquisition.
SemaphorePermit
A permit from the semaphore.