pub struct UnsubscribePacket {
pub packet_id: u16,
pub filters: Vec<String>,
pub properties: Properties,
}Expand description
MQTT UNSUBSCRIBE packet
Fields§
§packet_id: u16Packet identifier
filters: Vec<String>Topic filters to unsubscribe from
properties: PropertiesUNSUBSCRIBE properties (v5.0 only)
Implementations§
Trait Implementations§
Source§impl Clone for UnsubscribePacket
impl Clone for UnsubscribePacket
Source§fn clone(&self) -> UnsubscribePacket
fn clone(&self) -> UnsubscribePacket
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 moreSource§impl Debug for UnsubscribePacket
impl Debug for UnsubscribePacket
Source§impl MqttPacket for UnsubscribePacket
impl MqttPacket for UnsubscribePacket
Source§fn packet_type(&self) -> PacketType
fn packet_type(&self) -> PacketType
Returns the packet type
Source§fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
fn encode_body<B: BufMut>(&self, buf: &mut B) -> Result<()>
Encodes the packet body (without fixed header) Read more
Source§fn decode_body<B: Buf>(buf: &mut B, fixed_header: &FixedHeader) -> Result<Self>
fn decode_body<B: Buf>(buf: &mut B, fixed_header: &FixedHeader) -> Result<Self>
Decodes the packet body (without fixed header) Read more
Auto Trait Implementations§
impl Freeze for UnsubscribePacket
impl RefUnwindSafe for UnsubscribePacket
impl Send for UnsubscribePacket
impl Sync for UnsubscribePacket
impl Unpin for UnsubscribePacket
impl UnwindSafe for UnsubscribePacket
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