Expand description
§chenal
Performant channel implementations.
Modules§
- capacity
- Bounded channel capacity abstraction.
- compat
compat-stdorcompat-tokio - Compatibility wrappers to be used in place of other populars channel implementation.
- errors
- Error types.
- futures
- Future types.
- mpmc
- MPMC channel implementations (to be populated).
- mpsc
- MPSC channel implementations.
- spmc
- SPMC channel implementations (to be populated).
- spsc
- SPSC channel implementations (to be populated).
- sync
- Reexport of
aiq::sync.
Structs§
- Channel
Id - Opaque unique identifier for a channel instance. Two halves sharing the same
ChannelIdbelong to the same channel. - Close
Guard - A RAII guard that closes the channel when dropped. Obtained via
CloseHandle::close_on_drop. - Close
Handle - A cloneable handle for closing a channel or observing its closure, without holding a sender or receiver half.
- MRx
- Multi-consumer cloneable receiving half.
- MTx
- Multi-producer cloneable sending half.
- Rx
- Single-consumer receiving half. Requires exclusive access (
&mut self) to receive. - Tx
- Single-producer sending half. Requires exclusive access (
&mut self) to send. - UMTx
- Multi-producer cloneable unbounded sending half, which never blocks.
- UTx
- Single-producer unbounded sending half, which never blocks. Requires exclusive access (
&mut self) to send. - Weak
- A non-owning reference to a cloneable channel half. Does not prevent the channel from closing.
Constants§
- DEFAULT_
UNBOUNDED_ BACKOFF - Default value for the
UNBOUNDED_BACKOFFMPSC/MPMC channel parameter.
Traits§
- Channel
- A channel implementation.
- Channel
Half - A sender or receiver half of a channel.