Trait embedded_svc::mqtt::client::asynch::Publish

source ·
pub trait Publish: ErrorType {
    // Required method
    async fn publish(
        &mut self,
        topic: &str,
        qos: QoS,
        retain: bool,
        payload: &[u8],
    ) -> Result<MessageId, Self::Error>;
}

Required Methods§

source

async fn publish( &mut self, topic: &str, qos: QoS, retain: bool, payload: &[u8], ) -> Result<MessageId, Self::Error>

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<P> Publish for &mut P
where P: Publish,

source§

async fn publish( &mut self, topic: &str, qos: QoS, retain: bool, payload: &[u8], ) -> Result<MessageId, Self::Error>

Implementors§