Struct pencil::routing::MapAdapter [] [src]

pub struct MapAdapter<'m> {
    // some fields omitted
}

Does the URL matching and building based on runtime information.

Methods

impl<'m> MapAdapter<'m>

fn new(map: &Map, path: String, method: Method) -> MapAdapter

fn matched(&self) -> Result<(Rule, ViewArgs), HTTPError>

fn allowed_methods(&self) -> Vec<Method>

Get the valid methods that match for the given path.