Skip to main content

Module mpsc

Module mpsc 

Source

Structs§

Receiver
The receiving half of Rust’s channel (or sync_channel) type. This half can only be owned by one thread.
Sender
The sending-half of Rust’s asynchronous channel type.

Enums§

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§

channel
Creates a new asynchronous channel, returning the sender/receiver halves.