Struct viz::prelude::Route [−][src]
pub struct Route { /* fields omitted */ }
Expand description
Route
Implementations
pub fn mid<M>(self, m: M) -> Route where
M: for<'m> Handle<'m, Context, Output = Result<Response, Error>>,
[src]pub fn on<F, T>(self, method: Method, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn get<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn post<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn put<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn delete<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn options<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn connect<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn patch<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn trace<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn all<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn only<F, T, const S: usize>(
self,
methods: [Method; S],
handler: F
) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn except<F, T, const S: usize>(
self,
methods: [Method; S],
handler: F
) -> Route where
T: Extract + Send + Sync + 'static,
F: HandlerBase<T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn on2<F, T>(self, method: Method, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn get2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn post2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn put2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn delete2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn options2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn connect2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn patch2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn trace2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn all2<F, T>(self, handler: F) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]pub fn only2<F, T, const S: usize>(
self,
methods: [Method; S],
handler: F
) -> Route where
T: Extract + Send + Sync + 'static,
F: for<'h> HandlerCamp<'h, T> + Send + Sync + 'static,
<T as Extract>::Error: Into<Response>,
<T as Extract>::Error: Send,
[src]Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Route
impl !UnwindSafe for Route