Skip to main content

Module inbound

Module inbound 

Available on crate feature tokio only.
Expand description

Inbound packet processing: framing, dispatch through the client state machine, and buffering received messages for delivery.

Functionsยง

handle_incoming ๐Ÿ”’
Handles one decoded inbound packet. The client state machine processes it and any response is enqueued. A received message is buffered for delivery to the application.
process_inbound ๐Ÿ”’
Decodes and handles the complete packets currently framed in reader, in order. Stops when the delivery buffer reaches MSG_QUEUE_BOUND (a slow consumer applies backpressure this way) or a terminal event occurs.
send_response ๐Ÿ”’
Enqueues the response the client asked for, if any.