Module channel

Source
Expand description

Static memory based single-producer single-consumer channel for communication between threads.

Structs§

CachePadded
Pads and aligns a value to the length of a cache line.
Receiver
One endpoint of a channel, which can be used to receive Sync and 'static values from another thread.
Sender
One endpoint of a channel, which can be used to send Sync and 'static values to another thread.
SyncUnsafeCell
A Sync UnsafeCell when T is Sync. “Manually stabilized” from rustc feature gate sync_unsafe_cell.

Functions§

channel_from_parts
Creates a new channel from its raw parts.

Type Aliases§

Channel
Return type of channel_from_parts.