Enum TransmitEvent
#[non_exhaustive]pub enum TransmitEvent {
Sent {
packet_id: PacketId,
},
PubrelSent {
packet_id: PacketId,
},
SubscribeSent {
packet_id: PacketId,
},
UnsubscribeSent {
packet_id: PacketId,
},
TooLarge {
packet_id: PacketId,
},
Unsupported {
packet_id: PacketId,
reason: Unsupported,
},
}Expand description
An outcome of Client::poll_transmit the caller must act on, reported per
packet identifier so the driver can resolve the user-facing future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Sent
The PUBLISH was written to the output buffer.
PubrelSent
A QoS 2 PUBREL was (re)written to the output buffer, under the same
packet id as the PUBLISH it completes. Distinct from
Sent because it does not contain a publish-progress
update of its own: the publish already reported Sent when the PUBLISH
itself went out, and this only keeps the operation’s ack-timeout
deadline alive through the PUBREL leg (including across a
reconnect).
SubscribeSent
A SUBSCRIBE was written to the output buffer for the pending group under this packet id.
UnsubscribeSent
An UNSUBSCRIBE was written to the output buffer for the pending group under this packet id.
TooLarge
The packet exceeded the server’s Maximum Packet Size and was dropped from the session without being sent (a PUBLISH, or a whole SUBSCRIBE/UNSUBSCRIBE group).
Unsupported
A stored PUBLISH or SUBSCRIBE uses a capability the server does not advertise (§3.2.2.3) and was dropped without being sent. Reachable when the capabilities shrank across a reconnect, or for a SUBSCRIBE stored while offline.
Fields
reason: UnsupportedThe capability the packet needs.
Trait Implementations§
§impl Clone for TransmitEvent
impl Clone for TransmitEvent
§fn clone(&self) -> TransmitEvent
fn clone(&self) -> TransmitEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransmitEvent
§impl Debug for TransmitEvent
impl Debug for TransmitEvent
impl Eq for TransmitEvent
§impl PartialEq for TransmitEvent
impl PartialEq for TransmitEvent
impl StructuralPartialEq for TransmitEvent
Auto Trait Implementations§
impl Freeze for TransmitEvent
impl RefUnwindSafe for TransmitEvent
impl Send for TransmitEvent
impl Sync for TransmitEvent
impl Unpin for TransmitEvent
impl UnsafeUnpin for TransmitEvent
impl UnwindSafe for TransmitEvent
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
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
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> ⓘ
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> ⓘ
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