Enum Qos2Phase
pub enum Qos2Phase {
AwaitingPubrec,
AwaitingPubcomp,
}Expand description
The phase of a QoS 2 outbound publish from the client’s perspective.
These correspond to the two halves of the QoS 2 four-step handshake
(§4.3.3).
Variants§
AwaitingPubrec
PUBLISH sent, awaiting PUBREC. The full message must be stored so it can be retransmitted with DUP=1 on reconnect.
AwaitingPubcomp
PUBREC received (rc < 0x80), PUBREL sent, awaiting PUBCOMP. The original message payload can be discarded; only the packet identifier needs to be retained.
Trait Implementations§
impl Copy for Qos2Phase
impl Eq for Qos2Phase
impl StructuralPartialEq for Qos2Phase
Auto Trait Implementations§
impl Freeze for Qos2Phase
impl RefUnwindSafe for Qos2Phase
impl Send for Qos2Phase
impl Sync for Qos2Phase
impl Unpin for Qos2Phase
impl UnwindSafe for Qos2Phase
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