Route

Trait Route 

Source
pub trait Route: FnMut(Request) -> Response + 'static { }
Expand description

Final routes are always in JSON.

Implementors§

Source§

impl<T> Route for T
where T: FnMut(Request) -> Response + 'static,