Crate scr_axum_cranker_router

Source

Modules§

connector_connection
connector_instance
connector_service
dark_host
dark_mode_manager
exceptions
ip_validator
proxy_info
proxy_listener
route_identify
route_resolver
router_info
router_socket
router_socket_filter
websocket_farm

Structs§

CrankerConnectorInfo
Mainly for extracting connector information during registration Not being used in main logic of the router.
CrankerRouter
This class creates a router function in axum for receiving HTTP requests from clients (visit_portal()), and a router function for receiving websocket registrations from Cranker connectors. You are responsible for creating axum server instance(s) that the router functions (handler) are added to. When shutting down, the stop() method should be called after stopping your axum server(s). This class is created by using the CrankerRouterBuilder::new().build() builder.
CrankerRouterConfig
The config / builder of a CrankerRouter
CrankerRouterState
The shared state of Cranker router

Constants§

CRANKER_V_1_0
CRANKER_V_3_0
_VER_1_0
_VER_3_0

Type Aliases§

CrankerRouterBuilder
The builder / config of a CrankerRouter