Module sync
Source - chan
- fs
- Asynchronous file utilities.
- future
- Combinators for the
Future
trait. - io
- Traits, helpers, and type definitions for asynchronous I/O functionality.
- stream
- Combinators for the
Stream
trait. - task
- thread
- Native threads.
- AtomicBool
- A boolean type which can be safely shared between threads.
- AtomicI8
- An integer type which can be safely shared between threads.
- AtomicI16
- An integer type which can be safely shared between threads.
- AtomicI32
- An integer type which can be safely shared between threads.
- AtomicI64
- An integer type which can be safely shared between threads.
- AtomicIsize
- An integer type which can be safely shared between threads.
- AtomicPtr
- A raw pointer type which can be safely shared between threads.
- AtomicU8
- An integer type which can be safely shared between threads.
- AtomicU16
- An integer type which can be safely shared between threads.
- AtomicU32
- An integer type which can be safely shared between threads.
- AtomicU64
- An integer type which can be safely shared between threads.
- AtomicUsize
- An integer type which can be safely shared between threads.
- Barrier
- A barrier enables multiple threads to synchronize the beginning
of some computation.
- JoinHandle
- An owned permission to join on a thread (block on its termination).
- Mutex
- A mutual exclusion primitive useful for protecting shared data
- MutexGuard
- An RAII implementation of a “scoped lock” of a mutex. When this structure is
dropped (falls out of scope), the lock will be unlocked.
- Notify
- Notifies a single task to wake up.
- OnceLock
- A synchronization primitive which can nominally be written to only once.
- Receiver
- The receiving half of Rust’s
channel
(or sync_channel
) type.
This half can only be owned by one thread. - Sender
- The sending-half of Rust’s synchronous
sync_channel
type. - Task
- Ordering
- Atomic memory orderings
- ATOMIC_BOOL_INITDeprecated
- An
AtomicBool
initialized to false
. - ATOMIC_ISIZE_INITDeprecated
- An
AtomicIsize
initialized to 0
. - ATOMIC_USIZE_INITDeprecated
- An
AtomicUsize
initialized to 0
.
- AsyncRead
- Reads bytes from a source.
- AsyncReadExt
- Reads bytes from a source.
- AsyncWrite
- Writes bytes asynchronously.
- AsyncWriteExt
- Writes bytes to a sink.
- Future
- A future represents an asynchronous computation, commonly obtained by use of
async
. - FutureExt
- Extension trait for
Future
. - Stream
- A stream of values produced asynchronously.
- StreamExt
- Extension trait for
Stream
. - AtomicPrimitiveExperimental
- A marker trait for primitive types which can be modified atomically.
- compiler_fence
- A “compiler-only” atomic fence.
- fence
- An atomic fence.
- spin_loop_hintDeprecated
- Signals the processor that it is inside a busy-wait spin-loop (“spin lock”).
- AtomicExperimental
- A memory location which can be safely modified from multiple threads.