pub enum PacketAction {
ConnectAck {
session_present: bool,
return_code: u8,
},
PublishAck {
pid: Pid,
},
PublishRec {
pid: Pid,
},
PublishRelease {
pid: Pid,
},
PublishComplete {
pid: Pid,
},
PublishReceived {
topic: TopicName,
qos: QoS,
retain: bool,
payload: Vec<u8>,
pid: Option<Pid>,
},
SubscribeAck {
pid: Pid,
return_codes: Vec<u8>,
},
UnsubscribeAck {
pid: Pid,
},
PingResponse,
None,
}Variants§
ConnectAck
A CONNACK packet was received.
PublishAck
A PUBACK packet was received.
PublishRec
A PUBREC packet was received.
PublishRelease
A PUBREL packet was received.
PublishComplete
A PUBCOMP packet was received.
PublishReceived
A PUBLISH message was received.
SubscribeAck
A SUBACK packet was received.
UnsubscribeAck
An UNSUBACK packet was received.
PingResponse
A PINGRESP packet was received.
None
No specific action is required.
Trait Implementations§
Source§impl Clone for PacketAction
impl Clone for PacketAction
Source§fn clone(&self) -> PacketAction
fn clone(&self) -> PacketAction
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 PacketAction
impl RefUnwindSafe for PacketAction
impl Send for PacketAction
impl Sync for PacketAction
impl Unpin for PacketAction
impl UnsafeUnpin for PacketAction
impl UnwindSafe for PacketAction
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