[][src]Module postage::broadcast

Provides a lossless, MPMC channel. All receivers are guaranteed to recieve each message.

When a receiver is cloned, the new receive will observe the same series of messages as the original. When a receiver is created with Sender::subscribe, it will observe new messages.

Structs

Receiver

A broadcast receiver that can be used with the postage::Stream trait.

Sender

A broadcast sender that can be used with the postage::Sink trait. Can be cloned.

Functions

channel

Constructs a pair of broadcast endpoints, with a fixed-size buffer of the given capacity