Trait HttpRouter

Source
pub trait HttpRouter {
    type Route;

    // Required method
    fn match_route<'a, 'r>(
        &'a self,
        method: &Method,
        path: &'r str,
    ) -> Match<'a, 'r, Self::Route>;
}

Required Associated Types§

Required Methods§

Source

fn match_route<'a, 'r>( &'a self, method: &Method, path: &'r str, ) -> Match<'a, 'r, Self::Route>

Implementors§

Source§

impl<T> HttpRouter for Router<T>

Source§

type Route = T