Module channel

Source

Re-exports§

pub use receiver::Receiver;
pub use sender::Sender;

Modules§

receiver
sender

Structs§

Channel
RecvError
An error returned from the recv function on a Receiver.
SendError
An error returned from the Sender::send or SyncSender::send function on channels.

Enums§

RecvTimeoutError
This enumeration is the list of possible errors that made recv_timeout unable to return data when called. This can occur with both a channel and a sync_channel.
TryRecvError
This enumeration is the list of the possible reasons that try_recv could not return data when called. This can occur with both a channel and a sync_channel.

Functions§

bounded
Function used to create and initialise a (Sender, Receiver) tuple.