[][src]Struct ntex_mqtt::v3::PublishBuilder

pub struct PublishBuilder { /* fields omitted */ }

Implementations

impl PublishBuilder[src]

pub fn packet_id(self, id: u16) -> Self[src]

Set packet id.

Note: if packet id is not set, it gets generated automatically. Packet id management should not be mixed, it should be auto-generated or set by user. Otherwise collisions could occure.

panics if id is 0

pub fn dup(self, val: bool) -> Self[src]

this might be re-delivery of an earlier attempt to send the Packet.

pub fn retain(self) -> Self[src]

pub fn send_at_most_once(self) -> Result<(), SendPacketError>[src]

Send publish packet with QoS 0

pub async fn send_at_least_once(self) -> Result<(), SendPacketError>[src]

Send publish packet with QoS 1

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, 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>,