Struct pub_sub::PubSub
[−]
[src]
pub struct PubSub<T: Clone> { /* fields omitted */ }
Pub/sub channel.
Methods
impl<T: Clone> PubSub<T>
[src]
fn new() -> PubSub<T>
Create a pub/sub channel
fn send(&self, it: T) -> Result<(), SendError<T>>
Attempts to broadcast
fn subscribe(&self) -> Subscription<T>
Create a new subscription to the channel.
Trait Implementations
impl<T: Clone + Clone> Clone for PubSub<T>
[src]
fn clone(&self) -> PubSub<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more