Router

Trait Router 

Source
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§

Source

fn navigate(&self, route: &str)

Navigate to a route.

Source

fn current_route(&self) -> String

Get the current route.

Implementors§