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>;
}
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>;
}