pub trait Router: Send + Sync {
// Required methods
fn navigate(&self, route: &str);
fn current_route(&self) -> String;
}Expand description
Router trait for navigation commands.
Required Methods§
Navigate to a route.
Sourcefn current_route(&self) -> String
fn current_route(&self) -> String
Get the current route.