Struct ntex_mqtt::v5::MqttSink [−][src]
pub struct MqttSink(_);
Implementations
Get notification when packet could be send to the peer.
Result indicates if connection is alive
Close mqtt connection
pub fn publish<U>(&self, topic: U, payload: Bytes) -> PublishBuilder where
ByteString: From<U>,
pub fn publish<U>(&self, topic: U, payload: Bytes) -> PublishBuilder where
ByteString: From<U>,
Create publish packet builder
Create subscribe packet builder
Create unsubscribe packet builder
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for MqttSink
impl !UnwindSafe for MqttSink
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more