pub struct PublishPacket {
pub dup: bool,
pub qos: QoS,
pub retain: bool,
pub topic: String,
pub packet_id: Option<u16>,
pub payload: Vec<u8>,
}Expand description
PUBLISH packet
Fields§
§dup: bool§qos: QoS§retain: bool§topic: String§packet_id: Option<u16>§payload: Vec<u8>Trait Implementations§
Source§impl Clone for PublishPacket
impl Clone for PublishPacket
Source§fn clone(&self) -> PublishPacket
fn clone(&self) -> PublishPacket
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PublishPacket
impl RefUnwindSafe for PublishPacket
impl Send for PublishPacket
impl Sync for PublishPacket
impl Unpin for PublishPacket
impl UnwindSafe for PublishPacket
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