Module pubsub

Source
Expand description

Implementation of PubSubChannel, a queue where published messages get received by all subscribers.

Re-exports§

pub use publisher::DynImmediatePublisher;
pub use publisher::DynPublisher;
pub use publisher::ImmediatePublisher;
pub use publisher::Publisher;
pub use subscriber::DynSubscriber;
pub use subscriber::Subscriber;

Modules§

publisher
Implementation of anything directly publisher related
subscriber
Implementation of anything directly subscriber related

Structs§

PubSubChannel
A broadcast channel implementation where multiple publishers can send messages to multiple subscribers

Enums§

Error
Error type for the PubSubChannel
WaitResult
The result of the subscriber wait procedure

Traits§

PubSubBehavior
‘Middle level’ behaviour of the pubsub channel. This trait is used so that Sub and Pub can be generic over the channel.