[][src]Trait router_rs::prelude::RouteHandler

pub trait RouteHandler {
    fn route(&self) -> &Route;
fn view(&self, incoming_route: &str) -> VirtualNode;
fn set_provided(&mut self, provided: ProvidedMap);
fn provided(&self) -> &ProvidedMap; fn matches(&self, incoming_path: &str) -> bool { ... } }

Used by router-rs-macro during code generation when turning your

#[route(path="/...")] macro into a struct.

Required methods

fn route(&self) -> &Route

fn view(&self, incoming_route: &str) -> VirtualNode

fn set_provided(&mut self, provided: ProvidedMap)

fn provided(&self) -> &ProvidedMap

Loading content...

Provided methods

fn matches(&self, incoming_path: &str) -> bool

Loading content...

Implementors

Loading content...