Skip to main content

Module thread_primitives

Module thread_primitives 

Source
Expand description

This module provides all the primitives needed to build a multithreaded application.

Modules§

io
Traits, helpers, and type definitions for asynchronous I/O functionality.

Structs§

AsyncMutex
An asynchronous Mutex-like type.
AsyncMutexGuard
A handle to a held Mutex. The guard can be held across any .await point as it is Send.
AsyncRwLock
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.

Statics§

RT_CACHE

Traits§

AsyncReadExt
Reads bytes from a source.
AsyncWriteExt
Writes bytes to a sink.

Functions§

init_cache

Type Aliases§

SafeTokioRuntime
TokioRtCache