Skip to main content

Module route

Module route 

Source
Expand description

RETURNS-46 · where a generated client’s calls go, and whether they may.

A Route is a client’s path (a RoutePath) and, for a client below a dynamic instance whose name the service would route elsewhere, why nothing may be sent. A child’s route is its parent’s, joined; a refusal is inherited, so root.org("acme.stats").stats().tick(..) fails as root.org("acme.stats").tick(..) does — at once, with ClientError::InvalidName, sending nothing.

Structs§

Route
A generated client’s route: its path, and a refusal if an instance name on the way to it cannot be routed.

Functions§

is_route_segment
One segment of the service’s path grammar, [a-z][a-z0-9_]* — the rule plexus-auth-core’s MethodPath holds every routed path to (mirrored here: plexus-client builds for wasm32 and takes no plexus-auth-core; a fixture test holds the two to the same answers).