Module calloop::channel

source ·
Expand description

An MPSC channel whose receiving end is an event source

Create a channel using channel(), which returns a Sender that can be cloned and sent accross threads if T: Send, and a Channel that can be inserted into an EventLoop. It will generate one event per message.

A synchronous version of the channel is provided by sync_channel, in which the SyncSender will block when the channel is full.

Structs

  • The receiving end of the channel
  • An error arising from processing events for a channel.
  • The sender end of a channel
  • The sender end of a synchronous channel

Enums

  • The events generated by the channel event source

Functions