pub enum QoS2Action {
SendPubRec {
packet_id: u16,
reason_code: ReasonCode,
},
SendPubRel {
packet_id: u16,
},
SendPubComp {
packet_id: u16,
reason_code: ReasonCode,
},
TrackOutgoingPubRec {
packet_id: u16,
},
TrackOutgoingPubRel {
packet_id: u16,
},
RemoveOutgoingPubRel {
packet_id: u16,
},
TrackIncomingPubRec {
packet_id: u16,
},
RemoveIncomingPubRec {
packet_id: u16,
},
DeliverMessage {
packet_id: u16,
},
CompleteFlow {
packet_id: u16,
},
ErrorFlow {
packet_id: u16,
reason_code: ReasonCode,
},
}Variants§
SendPubRec
SendPubRel
SendPubComp
TrackOutgoingPubRec
TrackOutgoingPubRel
RemoveOutgoingPubRel
TrackIncomingPubRec
RemoveIncomingPubRec
DeliverMessage
CompleteFlow
ErrorFlow
Implementations§
Source§impl QoS2Action
impl QoS2Action
pub fn to_pubrec_packet(&self) -> Option<PubRecPacket>
pub fn to_pubrel_packet(&self) -> Option<PubRelPacket>
pub fn to_pubcomp_packet(&self) -> Option<PubCompPacket>
Trait Implementations§
Source§impl Clone for QoS2Action
impl Clone for QoS2Action
Source§fn clone(&self) -> QoS2Action
fn clone(&self) -> QoS2Action
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 QoS2Action
impl Debug for QoS2Action
Source§impl PartialEq for QoS2Action
impl PartialEq for QoS2Action
impl StructuralPartialEq for QoS2Action
Auto Trait Implementations§
impl Freeze for QoS2Action
impl RefUnwindSafe for QoS2Action
impl Send for QoS2Action
impl Sync for QoS2Action
impl Unpin for QoS2Action
impl UnwindSafe for QoS2Action
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