Struct salt::router::Router
[−]
[src]
pub struct Router { /* fields omitted */ }
Methods
impl Router
[src]
fn new() -> Self
Construct a new, empty Router
.
let router = Router::new();
Equivalent to Router::default()
.
fn route<R: Into<Route>>(&mut self, route: R)
Trait Implementations
impl Default for Router
[src]
impl Handler for Router
[src]
type Result = BoxFutureResponse
fn call(&self, ctx: Context) -> Self::Result
fn boxed(self) -> BoxHandler where
Self: Sized + 'static,
Self: Sized + 'static,