Skip to main content

Module manager

Module manager 

Source
Expand description

TcpManager / UdpManager actor-style wrappers.

is an actor that mediates Bind/Connect commands and dispatches per-connection child actors. Our equivalent is a small state machine driven by mpsc channels — callers get an IoEvent stream of inbound connections / read bytes / disconnects.

Structs§

ConnId
Stable identifier for an inbound TCP connection.
TcpManager
Actor-style TCP manager. Drop the handle (or call Self::shutdown) to stop it.
UdpManager
Actor-style UDP manager bound to a single socket.

Enums§

IoEvent
Events emitted by TcpManager / UdpManager.
TcpCommand
Commands sent into the TcpManager.
UdpCommand