Module calloop::channel [−][src]
An MPSC channel whose receiving end is an event source
Create a channel using Channel::<T>::new()
, which returns a
Sender<T>
that can be cloned and sent accross threads if T: Send
,
and a Channel<T>
that can be inserted into an EventLoop
. It will generate
one event per message.
This implementation is based on
mio_more::channel
.
Structs
Channel |
The receiving end of the channel |
Sender | |
SyncSender |
Enums
Event |
The events generated by the channel event source |
SendError | |
TrySendError |
Functions
channel |
Create a new asynchronous channel |
sync_channel |
Create a new synchronous, bounded channel |