pub trait PubSubBehavior<T>: SealedPubSubBehavior<T> {
// Required methods
fn publish_immediate(&self, message: T);
fn capacity(&self) -> usize;
fn is_full(&self) -> bool;
}
Expand description
‘Middle level’ behaviour of the pubsub channel. This trait is used so that Sub and Pub can be generic over the channel.
Required Methods§
Sourcefn publish_immediate(&self, message: T)
fn publish_immediate(&self, message: T)
Publish a message immediately