Skip to main content

Module router

Module router 

Source
Expand description

Router and RouterBuilder — the longest-prefix route tree that maps a request path to the controller mounted at its deepest matching prefix.

Structs§

RateLimitClass
One controller’s declared rate-limit class, as returned by Router::rate_limit_classes: the controller’s mount path and the class label it declared via #[controller(rate_limit = "…")]. Used by a startup coverage check that asserts every declared class has a policy.
RouteMatch
The result of Router::match_controller: the matched controller and the leftover path segments joined as the controller’s action. Returned from a path-only resolve (no verb / parameter checks; those happen inside the controller’s dispatch).
Router
The Actus router. Dispatches requests to controllers by longest-prefix match over the route tree at arbitrary depth.
RouterBuilder
A builder for constructing the router.