[][src]Struct mqtt_codec::Publish

pub struct Publish {
    pub dup: bool,
    pub retain: bool,
    pub qos: QoS,
    pub topic: ByteString,
    pub packet_id: Option<u16>,
    pub payload: Bytes,
}

Publish message

Fields

dup: bool

this might be re-delivery of an earlier attempt to send the Packet.

retain: boolqos: 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<u16>

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 From<Publish> for Packet[src]

impl Clone for Publish[src]

impl PartialEq<Publish> for Publish[src]

impl Debug for Publish[src]

impl StructuralPartialEq for Publish[src]

Auto Trait Implementations

impl Send for Publish

impl Sync for Publish

impl Unpin for Publish

impl UnwindSafe for Publish

impl RefUnwindSafe for Publish

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]