Struct mqtt3::Message
[−]
[src]
pub struct Message { pub topic: TopicPath, pub qos: QoS, pub retain: bool, pub pid: Option<PacketIdentifier>, pub payload: Arc<Vec<u8>>, }
Fields
topic: TopicPath
qos: QoS
retain: bool
pid: Option<PacketIdentifier>
payload: Arc<Vec<u8>>
Methods
impl Message
[src]
fn from_pub(publish: Box<Publish>) -> Result<Box<Message>>
fn from_last_will(last_will: LastWill) -> Box<Message>
fn to_pub(&self, qos: Option<QoS>, dup: bool) -> Box<Publish>
fn transform(&self, pid: Option<PacketIdentifier>, qos: Option<QoS>) -> Box<Message>
Trait Implementations
impl Clone for Message
[src]
fn clone(&self) -> Message
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more