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

Required Methods§

source

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

Implementations on Foreign Types§

source§

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

source§

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

Implementors§