[][src]Struct ntex_mqtt::v5::MqttSink

pub struct MqttSink(_, _);

Implementations

impl MqttSink[src]

pub fn is_opened(&self) -> bool[src]

Check connection status

pub fn credit(&self) -> usize[src]

Get client receive credit

pub fn ready(&self) -> impl Future<Output = bool>[src]

Get notification when packet could be send to the peer.

Result indicates if connection is alive

pub fn close(&self)[src]

Close mqtt connection with default Disconnect message

pub fn close_with_reason(&self, pkt: Disconnect)[src]

Close mqtt connection

pub fn publish<U>(&self, topic: U, payload: Bytes) -> PublishBuilder where
    ByteString: From<U>, 
[src]

Create publish packet builder

pub fn subscribe(&self, id: Option<NonZeroU32>) -> SubscribeBuilder[src]

Create subscribe packet builder

pub fn unsubscribe(&self) -> UnsubscribeBuilder[src]

Create unsubscribe packet builder

Trait Implementations

impl Clone for MqttSink[src]

impl Debug for MqttSink[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,