Module router

Module router 

Source
Expand description

Scoped stack-based routing utilities for shard components.

Each #[shard] function generates a *Destination type that implements RouterDestination. Destinations are stored in a per-scope LIFO stack.

§Responsibilities

  • Maintain an ordered stack (route_stack) of active destinations.
  • Expose push/pop/replace/reset helpers for scoped navigation.
  • Host scope/route shard states inside the router instance.
  • Trigger route-scoped shard-state cleanup when routes are discarded.

Structs§

RouterController
Reactive navigation controller for one shard tree.

Traits§

RouterDestination
A navigation destination produced by the #[shard] macro.