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,
}
Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for Publish
impl UnwindSafe for Publish
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more