Module select

Module select 

Source
Expand description

§Selection between channels

This module provides:

  • Select: Allows selecting from multiple borrowed receiver references, which is a type-erased interface similar to the select in crossbeam-channel, supporting both mpmc, mpsc, and spsc channels.
  • Multiplex: Owns and reads from multiple channels as a non-concurrent consumer, mainly for spsc, mpsc.

Performance: dedicated channel > multiplex > select

Structs§

Multiplex
A multiplexer that owns multi channel receivers of the same Flavor type.
Select
The select interface only support select from receivers.
SelectResult
The result from Select::select, use for calling read_select() on the receiver type, may contains event to receive or disconnected event

Enums§

SelectMode

Type Aliases§

Mux
Type alias for multiplexed channel flavor