Skip to main content

Crate chenal

Crate chenal 

Source
Expand description

§chenal

Performant channel implementations.

Modules§

capacity
Bounded channel capacity abstraction.
compatcompat-std or compat-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§

ChannelId
Opaque unique identifier for a channel instance. Two halves sharing the same ChannelId belong to the same channel.
CloseGuard
A RAII guard that closes the channel when dropped. Obtained via CloseHandle::close_on_drop.
CloseHandle
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_BACKOFF MPSC/MPMC channel parameter.

Traits§

Channel
A channel implementation.
ChannelHalf
A sender or receiver half of a channel.