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§
async fn subscribe( &mut self, topic: &str, qos: QoS, ) -> Result<MessageId, Self::Error>
async fn unsubscribe(&mut self, topic: &str) -> Result<MessageId, Self::Error>
Object Safety§
This trait is not object safe.