[][src]Struct ntex_mqtt::v5::PublishBuilder

pub struct PublishBuilder { /* fields omitted */ }

Implementations

impl PublishBuilder[src]

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]

Set retain flag

pub fn properties<F>(self, f: F) -> Self where
    F: FnOnce(&mut PublishProperties), 
[src]

Set publish packet properties

pub fn set_properties<F>(&mut self, f: F) where
    F: FnOnce(&mut PublishProperties), 
[src]

Set publish packet properties

pub fn send_at_most_once(
    self
) -> impl Future<Output = Result<(), PublishQos0Error>>
[src]

Send publish packet with QoS 0

pub async fn send_at_least_once(self) -> Result<PublishAck, PublishQos1Error>[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, 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>,