Struct sincere::app::App
[−]
[src]
pub struct App { /* fields omitted */ }
Methods
impl App
[src]
fn new() -> App
[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 mount(&mut self, group: Group)
[src]
fn begin<H>(&mut self, handle: H) -> &mut Self 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,
fn finish<H>(&mut self, handle: H) -> &mut Self where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn not_found<H>(&mut self, handle: H) where
H: Fn(&mut Context) + Send + Sync + 'static,
[src]
H: Fn(&mut Context) + Send + Sync + 'static,
fn handle(&self, stream: &mut Stream)
[src]
fn run(self, addr: &str, process_num: usize) -> Result<()>
[src]
fn run_tls(
self,
addr: &str,
process_num: usize,
cert: &str,
private_key: &str
) -> Result<()>
[src]
self,
addr: &str,
process_num: usize,
cert: &str,
private_key: &str
) -> Result<()>