Skip to main content

Module channel

Module channel 

Source
Expand description

Cloneable MPMC channels for the selected backend.

Modules§

mpsc
Standard-library-style MPSC channels selected with the executor backend.

Macros§

select
Selects from a set of channel operations.
select_biased
Selects from a set of channel operations.

Structs§

IntoIter
A blocking iterator over messages in a channel.
Iter
A blocking iterator over messages in a channel.
ReadyTimeoutError
An error returned from the ready_timeout method.
Receiver
The receiving side of a channel.
RecvError
An error returned from the recv method.
Select
Selects from a set of channel operations.
SelectTimeoutError
An error returned from the select_timeout method.
SelectedOperation
A selected operation that needs to be completed.
SendError
An error returned from the send method.
Sender
The sending side of a channel.
TryIter
A non-blocking iterator over messages in a channel.
TryReadyError
An error returned from the try_ready method.
TrySelectError
An error returned from the try_select method.

Enums§

RecvTimeoutError
An error returned from the recv_timeout method.
SendTimeoutError
An error returned from the send_timeout method.
TryRecvError
An error returned from the try_recv method.
TrySendError
An error returned from the try_send method.

Functions§

after
Creates a receiver that delivers a message after a certain duration of time.
at
Creates a receiver that delivers a message at a certain instant in time.
bounded
Creates a channel of bounded capacity.
never
Creates a receiver that never delivers messages.
send_or_cancel
Selects between sending a value and receiving a cancellation message or disconnection.
tick
Creates a receiver that delivers messages periodically.
unbounded
Creates a channel of unbounded capacity.