Trait embedded_svc::mqtt::client::asynch::Client

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

Required Methods§

source

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

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

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

source§

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

source§

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

Implementors§