Module router

Module router 

Source
Expand description

RPC message router: acts like a network switch, routing messages between named endpoints (routes). Port of Goโ€™s pkg/wshutil/wshrouter.go.

Structsยง

ChannelRpcClient
MsgAndRoute ๐Ÿ”’
RouteInfo ๐Ÿ”’
RouterInner ๐Ÿ”’
WshRouter
RPC message router. Acts like a network switch, routing messages between multiple named endpoints based on route IDs.

Constantsยง

CLIENT_CHANNEL_CAPACITY ๐Ÿ”’
An RPC client backed by a tokio mpsc channel. Messages sent via send_rpc_message are forwarded to the receiver. Bounded channel capacity for per-client RPC message buffers.
DEFAULT_ROUTE
ROUTER_CHANNEL_CAPACITY ๐Ÿ”’
Bounded channel capacity for the main router message queue.
ROUTE_PREFIX_CONN
ROUTE_PREFIX_CONTROLLER
ROUTE_PREFIX_FE_BLOCK
ROUTE_PREFIX_PROC
ROUTE_PREFIX_TAB
SYS_ROUTE
TAURI_ROUTE
UPSTREAM_ROUTE

Traitsยง

RpcClient
Trait for RPC message transport endpoints. Matches Goโ€™s AbstractRpcClient interface.

Functionsยง

make_connection_route_id
make_controller_route_id
make_fe_block_route_id
make_proc_route_id
make_tab_route_id