Skip to main content

RouteFactory

Type Alias RouteFactory 

Source
pub type RouteFactory = Rc<dyn Fn(&mut App, &RouteSettings) -> Option<Retained<AnyRoute>>>;
Expand description

Creates a route for the given route settings.

Used by Navigator::on_generate_route.

Aliased Typeยง

pub struct RouteFactory { /* private fields */ }