Struct reset_router::RouterBuilder
[−]
[src]
pub struct RouterBuilder<'a> { /* fields omitted */ }
Methods
impl<'a> RouterBuilder<'a>
[src]
fn add_not_found<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
handler: FN
) -> Self
self,
handler: FN
) -> Self
impl<'a> RouterBuilder<'a>
[src]
fn add_get<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_post<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_put<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_patch<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_head<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_delete<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
handler: FN
) -> Self
self,
re: &'a str,
handler: FN
) -> Self
fn add_get_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
fn add_post_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
fn add_put_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
fn add_patch_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
fn add_head_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
fn add_delete_with_priority<I: IntoFuture<Future = F, Item = S, Error = E>, F: Future<Item = S, Error = E> + 'static + Send, S: IntoResponse, E: IntoResponse, FN: Fn(Request) -> I + Sync + Send + 'static>(
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self
self,
re: &'a str,
priority: usize,
handler: FN
) -> Self