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]
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]
pub fn dup(self, val: bool) -> Self
[src]This might be re-delivery of an earlier attempt to send the Packet.
pub fn properties<F>(self, f: F) -> Self where
F: FnOnce(&mut PublishProperties),
[src]
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]
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) -> Result<(), SendPacketError>
[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<PublishAck, PublishQos1Error>
[src]
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 !Send for PublishBuilder
impl !Sync for PublishBuilder
impl Unpin for PublishBuilder
impl !UnwindSafe for PublishBuilder
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self