pub struct MqttSink { /* private fields */ }
Implementations§
Source§impl MqttSink
impl MqttSink
Sourcepub fn publish_qos0(&self, topic: ByteString, payload: Bytes, dup: bool)
pub fn publish_qos0(&self, topic: ByteString, payload: Bytes, dup: bool)
Send publish packet with qos set to 0
Sourcepub fn publish_qos1(
&mut self,
topic: ByteString,
payload: Bytes,
dup: bool,
) -> impl Future<Output = Result<(), ()>>
pub fn publish_qos1( &mut self, topic: ByteString, payload: Bytes, dup: bool, ) -> impl Future<Output = Result<(), ()>>
Send publish packet
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MqttSink
impl !RefUnwindSafe for MqttSink
impl !Send for MqttSink
impl !Sync for MqttSink
impl Unpin for MqttSink
impl !UnwindSafe for MqttSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more