Trait mqttrust::Mqtt[][src]

pub trait Mqtt {
    fn send(&self, packet: Packet<'_>) -> Result<(), MqttError>;
fn client_id(&self) -> &str; fn publish(
        &self,
        topic_name: &str,
        payload: &[u8],
        qos: QoS
    ) -> Result<(), MqttError> { ... }
fn subscribe(&self, topics: &[SubscribeTopic<'_>]) -> Result<(), MqttError> { ... }
fn unsubscribe(&self, topics: &[&str]) -> Result<(), MqttError> { ... } }

Required methods

Provided methods

Implementors