Module pending
Expand description
Tracking and resolution of in-flight operation futures.
StructsΒ§
- Pending π
FunctionsΒ§
- ack_
queued π - Resolves the optional queue-acknowledgement channel immediately. Only for
operations with no durable state (
QoS0); anything stored in the session parks viapark_queuedinstead. - disarm π
- Drops
packet_idβs entry fromorder, if it has one. - dispatch_
ack π - Dispatches a non-message client event (acknowledgements). Returns
truewhen the event freed a send-quota slot so the caller can pump the session. - fail_op π
- Resolves an operationβs futures with an error, leaving the connection
intact.
erris any error source convertible intoError; it is materialised separately for each channel becauseErroris notClone. - fail_
superseded_ πacks - Fails every parked SUBSCRIBE/UNSUBSCRIBE completion whose packet id no longer owns any filter entry. A later request for the same filter superseded it in the core (one filter is one entry), so the orphaned packet id is never put on the wire and its SUBACK/UNSUBACK can never arrive; the future would otherwise hang. Mirrors the broker replacing the prior subscription with the newer one.
- park_
queued π - Parks the optional queue-acknowledgement channel until the next successful
persist, so
queued()reflects real durability. - rearm π
- Arms (or re-arms)
deadlineforpacket_id, keepingorderin sync so the earliest deadline is always itsfirst(). - reject_
offline π - Rejects an offline operation because the queue is full.
Type AliasesΒ§
- Queued
Waiters π queued()futures whose session mutation has not been persisted yet; resolved by the next successful persist.