Struct redis_async::client::pubsub::PubsubConnection [−][src]
pub struct PubsubConnection { /* fields omitted */ }
A shareable reference to subscribe to PUBSUB topics
Methods
impl PubsubConnection
[src]
impl PubsubConnection
pub fn subscribe(
&self,
topic: &str
) -> impl Future<Item = PubsubStream, Error = Error>
[src]
pub fn subscribe(
&self,
topic: &str
) -> impl Future<Item = PubsubStream, Error = Error>
Subscribes to a particular PUBSUB topic.
Returns a future that resolves to a Stream
that contains all the messages published on
that particular topic.
pub fn unsubscribe<T: Into<String>>(&self, topic: T)
[src]
pub fn unsubscribe<T: Into<String>>(&self, topic: T)
Trait Implementations
impl Clone for PubsubConnection
[src]
impl Clone for PubsubConnection
fn clone(&self) -> PubsubConnection
[src]
fn clone(&self) -> PubsubConnection
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for PubsubConnection
impl Send for PubsubConnection
impl Sync for PubsubConnection
impl Sync for PubsubConnection