Struct pub_sub::Subscription [] [src]

pub struct Subscription<T: Clone> { /* fields omitted */ }

Subscription to a pub/sub channel

Methods

impl<T: Clone> Subscription<T>
[src]

Receives a single message. Blocks until a message is available.

Tries to receive a single message, not blocking if one is not available.

Creates an iterator that will block waiting for messages.

Trait Implementations

impl<T: Clone> Drop for Subscription<T>
[src]

Remove our sender ID from the sender list.

impl<T: Clone> Clone for Subscription<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more