Expand description
Structs§
- Arc
alloc
- ⚛️
?alloc
A thread-safe reference-counting pointer. - ArcWeak
alloc
- ⚛️
?alloc
A version ofArc
that holds a non-owning reference. - Atomic
dep_atomic
- ⚛️
atomic
A generic atomic wrapper type. - Atomic
Bool - ⚛️
?core
A boolean type which can be safely shared between threads. - Atomic
F32 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe floating-point type. - Atomic
F64 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe floating-point type. - Atomic
I8 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I16 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I32 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I64 - ⚛️
?core
A thread-safe signed integer type. - Atomic
I128 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe signed integer type. - Atomic
Isize - ⚛️
?core
A thread-safe signed integer type. - Atomic
Ptr - ⚛️
?core
A raw pointer type which can be safely shared between threads. - Atomic
U8 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U16 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U32 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U64 - ⚛️
?core
A thread-safe unsigned integer type. - Atomic
U128 dep_portable_atomic
- ⚛️
portable-atomic
A thread-safe unsigned integer type. - Atomic
Usize - ⚛️
?core
A thread-safe unsigned integer type. - Barrier
std
std
Enables multiple threads to synchronize the beginning of some computation.- Barrier
Wait Result std
- ⚖️
std
Returned byBarrier::wait()
when all threads in the Barrier have rendezvoused. - Condvar
std
std
A Condition Variable- Lazy
Lock std
std
A value which is initialized on the first access.- Mutex
std
std
A mutual exclusion primitive useful for protecting shared data.- Mutex
Guard std
std
An RAII implementation of a “scoped lock” of a mutex.- Once
std
std
A synchronization primitive for one-time global initialization.- Once
Lock std
std
A synchronization primitive which can be written to only once.- Once
State std
std
State yielded toOnce::call_once_force()
’s closure parameter.- Poison
Error std
- 🚩
std
A type of error which can be returned whenever a lock is acquired. - RwLock
std
std
A reader-writer lock- RwLock
Read Guard std
std
RAII structure used to release the shared read access of a lock when dropped.- RwLock
Write Guard std
std
RAII structure used to release the exclusive write access of a lock when dropped.- Wait
Timeout Result std
- ⚖️
std
Whether a timed wait on a condition variable returned due to a time out or not.
Enums§
- Atomic
Ordering - ⚛️
core
Atomic memory ordering. - TryLock
Error std
- 🚩+
std
An enumeration of possible errors associated with aTryLockResult
.
Functions§
- atomic_
compiler_ fence - ⚛️
core
A compiler memory fence. - atomic_
fence - ⚛️
core
An atomic fence.
Type Aliases§
- Lock
Result std
- ⚖️
std
A type alias for the result of a lock method which can be poisoned. - TryLock
Result std
- ⚖️
std
A type alias for the result of a nonblocking locking method.