Struct ntex_mqtt::v5::PublishBuilder [−][src]
pub struct PublishBuilder { /* fields omitted */ }
Implementations
impl PublishBuilder
[src]
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]
Set retain flag
pub fn properties<F>(self, f: F) -> Self where
F: FnOnce(&mut PublishProperties),
[src]
F: FnOnce(&mut PublishProperties),
Set publish packet properties
pub fn set_properties<F>(&mut self, f: F) where
F: FnOnce(&mut PublishProperties),
[src]
F: FnOnce(&mut PublishProperties),
Set publish packet properties
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<PublishAck, PublishQos1Error>
[src]
Send publish packet with QoS 1
Auto Trait Implementations
impl !RefUnwindSafe for PublishBuilder
impl !RefUnwindSafe for PublishBuilder
impl !Send for PublishBuilder
impl !Send for PublishBuilder
impl !Sync for PublishBuilder
impl !Sync for PublishBuilder
impl Unpin for PublishBuilder
impl Unpin for PublishBuilder
impl !UnwindSafe for PublishBuilder
impl !UnwindSafe for PublishBuilder
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self