Module mux

Module mux 

Source
Expand description

This utility wraps a Sender and Receiver, providing lightweight sub-channels keyed by Channel.

Usage:

Structs§

GlobalSender
Sender that can send messages over any sub Channel.
MuxHandle
A clonable handle that allows registering routes at any time, even after the Muxer is running.
Muxer
A multiplexer of p2p channels into subchannels.
MuxerBuilder
A builder that constructs a Muxer.
MuxerBuilderAllOpts
A builder that constructs a Muxer with a GlobalSender and backup channel.
MuxerBuilderWithBackup
A builder that constructs a Muxer with a backup channel.
MuxerBuilderWithGlobalSender
A builder that constructs a Muxer with a GlobalSender.
SubReceiver
Receiver that yields messages for a specific subchannel.
SubSender
Sender that routes messages to the subchannel.

Enums§

Error
Errors that can occur when interacting with a SubReceiver or MuxHandle.

Traits§

Builder
A generic builder interface.