Module event_loop
Expand description
Single-connection event loop.
Structsยง
- Established
Connection ๐ - State produced by a successful connect + CONNACK handshake.
- Inbound
Aliases ๐ - Inbound topic alias map: resolves aliases in incoming PUBLISH.
- Loop
State ๐ - Mutable state that persists across reconnection attempts.
- Outbound
Aliases ๐ - Outbound topic alias map: assigns and tracks aliases for outgoing PUBLISH.
- Packet
Io ๐ - Bundled I/O and state for processing a single incoming packet.
- Pending ๐
Enumsยง
- Disconnect
Reason ๐ - Why a single connection attempt ended.
- Owned
Retransmit ๐ - Owned copy of retransmission data, used to bridge the sync
for_each_retransmitcallback and async packet writing.
Functionsยง
- apply_
jitter ๐ - build_
connect ๐ - dispatch_
event ๐ - drain_
queued_ ๐commands - establish_
connection ๐ - Perform TCP connect, send CONNECT, wait for CONNACK, and retransmit any
pending
QoSmessages when resuming a session. - flush_
journal ๐ - Drain pending journal bytes and write them to the journal (if any).
- handle_
command ๐ - handle_
incoming_ ๐packet - owned_
retransmit_ ๐to_ packet - reset_
keep_ ๐alive - resolve_
inbound_ ๐alias - Resolve an inbound topic alias, returning the full topic if the alias was used. Updates the alias map as a side effect.
- retransmit_
pending ๐ - Retransmit all pending
QoS1/2 messages after session resumption. - run
- run_
connection ๐ - send_
disconnect ๐ - send_
subscribe ๐ - send_
unsubscribe ๐