pub trait Client: ErrorType {
    // Required methods
    fn subscribe<'a>(
        &'a mut self,
        topic: &'a str,
        qos: QoS
    ) -> Result<MessageId, Self::Error>;
    fn unsubscribe<'a>(
        &'a mut self,
        topic: &'a str
    ) -> Result<MessageId, Self::Error>;
}

Required Methods§

source

fn subscribe<'a>( &'a mut self, topic: &'a str, qos: QoS ) -> Result<MessageId, Self::Error>

source

fn unsubscribe<'a>( &'a mut self, topic: &'a str ) -> Result<MessageId, Self::Error>

Implementations on Foreign Types§

source§

impl<C> Client for &mut C
where C: Client,

source§

fn subscribe<'a>( &'a mut self, topic: &'a str, qos: QoS ) -> Result<MessageId, Self::Error>

source§

fn unsubscribe<'a>( &'a mut self, topic: &'a str ) -> Result<MessageId, Self::Error>

Implementors§