Enum Delivery
pub enum Delivery {
AtMostOnce,
Acknowledged {
qos: AckQoS,
packet_id: PacketId,
dup: bool,
},
}Expand description
The QoS level of a PUBLISH. QoS 1 and 2 add a packet identifier and the
DUP flag.
Variants§
AtMostOnce
QoS 0. There is no packet identifier and DUP is always 0
[MQTT-3.3.1-2].
Acknowledged
QoS 1 or 2.
Implementations§
Trait Implementations§
impl Copy for Delivery
impl Eq for Delivery
impl StructuralPartialEq for Delivery
Auto Trait Implementations§
impl Freeze for Delivery
impl RefUnwindSafe for Delivery
impl Send for Delivery
impl Sync for Delivery
impl Unpin for Delivery
impl UnsafeUnpin for Delivery
impl UnwindSafe for Delivery
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