Struct OutboxEntry
pub struct OutboxEntry<'a> {
pub qos: QoS,
pub topic: &'a Topic,
pub payload: &'a [u8],
pub retain: bool,
pub properties: &'a PublishProperties,
pub was_sent: bool,
}Expand description
A stored outgoing publish awaiting acknowledgement.
Used for QoS 1 entries (awaiting PUBACK) and QoS 2 entries in the
first phase (awaiting PUBREC). Both have the same storage schema; the
qos field distinguishes them so the I/O driver can reconstruct the
correct packet type on retransmission.
Fields§
§qos: QoSQuality of Service: QoS::AtLeastOnce or QoS::ExactlyOnce.
topic: &'a TopicTopic name.
payload: &'a [u8]Message payload.
retain: boolRetain flag.
properties: &'a PublishPropertiesOriginal publish properties.
was_sent: booltrue if this entry has previously been put on the wire.
The I/O driver sets the MQTT DUP flag (§3.3.1.1) when this is true.
An entry becomes sent when the
drain_outbox visitor returns
DrainAction::Sent after a successful write.
Trait Implementations§
§impl<'a> Clone for OutboxEntry<'a>
impl<'a> Clone for OutboxEntry<'a>
§fn clone(&self) -> OutboxEntry<'a>
fn clone(&self) -> OutboxEntry<'a>
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 more§impl<'a> Debug for OutboxEntry<'a>
impl<'a> Debug for OutboxEntry<'a>
§impl<'a> PartialEq for OutboxEntry<'a>
impl<'a> PartialEq for OutboxEntry<'a>
impl<'a> Copy for OutboxEntry<'a>
impl<'a> Eq for OutboxEntry<'a>
impl<'a> StructuralPartialEq for OutboxEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for OutboxEntry<'a>
impl<'a> RefUnwindSafe for OutboxEntry<'a>
impl<'a> Send for OutboxEntry<'a>
impl<'a> Sync for OutboxEntry<'a>
impl<'a> Unpin for OutboxEntry<'a>
impl<'a> UnwindSafe for OutboxEntry<'a>
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