Struct ntex_mqtt::v3::codec::Publish [−][src]
pub struct Publish { pub dup: bool, pub retain: bool, pub qos: QoS, pub topic: ByteString, pub packet_id: Option<NonZeroU16>, pub payload: Bytes, }
Publish message
Fields
dup: bool
this might be re-delivery of an earlier attempt to send the Packet.
retain: bool
qos: QoS
the level of assurance for delivery of an Application Message.
topic: ByteString
the information channel to which payload data is published.
packet_id: Option<NonZeroU16>
only present in PUBLISH Packets where the QoS level is 1 or 2.
payload: Bytes
the Application Message that is being published.
Trait Implementations
impl StructuralPartialEq for Publish
[src]
impl StructuralPartialEq for Publish
[src]Auto Trait Implementations
impl RefUnwindSafe for Publish
impl RefUnwindSafe for Publish
impl UnwindSafe for Publish
impl UnwindSafe for Publish
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