pub struct PublishMessage {
pub id: u16,
pub topic_name: String,
pub payload: Vec<u8>,
}
Expand description
The actix message containing the payload of a MQTT publish packet
Fields§
§id: u16
The packet identifier of the publish packet for QoS Level 1 and Level 2, or 0 for QoS Level 0
topic_name: String
The topic name of the message
payload: Vec<u8>
The message payload
Trait Implementations§
Source§impl Clone for PublishMessage
impl Clone for PublishMessage
Source§fn clone(&self) -> PublishMessage
fn clone(&self) -> PublishMessage
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PublishMessage
impl Debug for PublishMessage
Auto Trait Implementations§
impl Freeze for PublishMessage
impl RefUnwindSafe for PublishMessage
impl Send for PublishMessage
impl Sync for PublishMessage
impl Unpin for PublishMessage
impl UnwindSafe for PublishMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more