Struct sincere::Group
[−]
[src]
pub struct Group { pub routes: Vec<Route>, pub before: Vec<Middleware>, pub after: Vec<Middleware>, // some fields omitted }
Fields
routes: Vec<Route>
before: Vec<Middleware>
after: Vec<Middleware>
Methods
impl Group
[src]
fn new(prefix: &str) -> Group
[src]
fn get<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn post<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn put<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn delete<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn option<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn head<H>(&mut self, pattern: &str, handle: H) -> &mut Route where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn before<H>(&mut self, handle: H) -> &mut Self where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn after<H>(&mut self, handle: H) -> &mut Self where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,