Module event_loop

Module event_loop 

Expand description

Single-connection event loop.

Structsยง

EstablishedConnection ๐Ÿ”’
State produced by a successful connect + CONNACK handshake.
InboundAliases ๐Ÿ”’
Inbound topic alias map: resolves aliases in incoming PUBLISH.
LoopState ๐Ÿ”’
Mutable state that persists across reconnection attempts.
OutboundAliases ๐Ÿ”’
Outbound topic alias map: assigns and tracks aliases for outgoing PUBLISH.
PacketIo ๐Ÿ”’
Bundled I/O and state for processing a single incoming packet.
Pending ๐Ÿ”’

Enumsยง

DisconnectReason ๐Ÿ”’
Why a single connection attempt ended.
OwnedRetransmit ๐Ÿ”’
Owned copy of retransmission data, used to bridge the sync for_each_retransmit callback 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 QoS messages 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 QoS 1/2 messages after session resumption.
run
run_connection ๐Ÿ”’
send_disconnect ๐Ÿ”’
send_subscribe ๐Ÿ”’
send_unsubscribe ๐Ÿ”’