Enum for_mqtt_client::protocol::packet::Unsubscribe
source · pub enum Unsubscribe {
V4 {
packet_id: u16,
payload: Bytes,
},
V5 {
packet_id: u16,
properties: Bytes,
filters: Bytes,
},
}Expand description
Subscription packet
Variants§
Implementations§
Trait Implementations§
source§impl Clone for Unsubscribe
impl Clone for Unsubscribe
source§fn clone(&self) -> Unsubscribe
fn clone(&self) -> Unsubscribe
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 Unsubscribe
impl Debug for Unsubscribe
source§impl PacketDup for Unsubscribe
impl PacketDup for Unsubscribe
source§impl PartialEq<Unsubscribe> for Unsubscribe
impl PartialEq<Unsubscribe> for Unsubscribe
source§fn eq(&self, other: &Unsubscribe) -> bool
fn eq(&self, other: &Unsubscribe) -> bool
This method tests for
self and other values to be equal, and is used
by ==.