[][src]Trait nng_async::protocol::Subscribe

pub trait Subscribe {
    fn subscribe(&self, topic: &[u8]) -> Result<()>;
fn unsubscribe(&self, topic: &[u8]) -> Result<()>; fn subscribe_str(&self, topic: &str) -> Result<()> { ... }
fn unsubscribe_str(&self, topic: &str) -> Result<()> { ... } }

Type of subscribe half in publish/subscribe pattern.

Required methods

fn subscribe(&self, topic: &[u8]) -> Result<()>

Subscribe to a topic.

fn unsubscribe(&self, topic: &[u8]) -> Result<()>

Unsubscribe from a topic.

Loading content...

Provided methods

fn subscribe_str(&self, topic: &str) -> Result<()>

Subscribe to a topic.

fn unsubscribe_str(&self, topic: &str) -> Result<()>

Unsubscribe from a topic.

Loading content...

Implementors

impl Subscribe for SubscribeAsyncStream[src]

impl Subscribe for Sub0[src]

Loading content...