Struct OutboxEntry
pub struct OutboxEntry<'a> {
pub qos: AckQoS,
pub topic: &'a Topic,
pub payload: &'a Payload,
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: AckQoSQuality of Service.
topic: &'a TopicTopic name.
payload: &'a PayloadMessage 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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for OutboxEntry<'a>
§impl<'a> Debug for OutboxEntry<'a>
impl<'a> Debug for OutboxEntry<'a>
impl<'a> Eq for OutboxEntry<'a>
§impl<'a> PartialEq for OutboxEntry<'a>
impl<'a> PartialEq 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> UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, Q> Equivalent<Q> for K
impl<K, Q> Equivalent<Q> for K
§fn equivalent(&self, key: &Q) -> bool
fn equivalent(&self, key: &Q) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more