Module outbound
Available on crate feature
tokio only.Expand description
Outbound command handling: turning user commands and stored session state into wire packets, limited by the server’s Receive Maximum and Maximum Packet Size.
Functions§
- handle_
command 🔒 - Handles one user command on a live connection.
- pump_
session 🔒 - Drains pending subscription groups, the outbox, and pending PUBRELs onto
the outbound buffer via the client’s
poll_transmit. It maps the per-packet events onto the user-facing futures: - register_
ack 🔒 - Tracks a recorded SUBSCRIBE/UNSUBSCRIBE’s completion future. The caller
pumps the session afterwards, which puts the group on the wire and arms
its ack deadline via
TransmitEvent::SubscribeSent/TransmitEvent::UnsubscribeSent. Shared tail ofsend_subscribeandsend_unsubscribe, which differ only in howpacket_idis obtained. - send_
publish 🔒 - send_
subscribe 🔒 - send_
unsubscribe 🔒