embedded_svc::mqtt::client::asynch

Trait 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>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§