Struct treemux::GroupBuilder [−][src]
Implementations
impl<'a, M, S> GroupBuilder<'a, M, S>
[src]
pub fn extend<P: Into<Cow<'static, str>>, B: Into<Treemux>>(
&self,
path: P,
routes: B
)
[src]
&self,
path: P,
routes: B
)
pub fn scope<P: Into<Cow<'static, str>>>(
self,
path: P
) -> GroupBuilder<'a, M, S>
[src]
self,
path: P
) -> GroupBuilder<'a, M, S>
pub fn middleware<N>(self, middleware: N) -> GroupBuilder<'a, Stack<N, M>, S> where
N: Layer<S::Service, Service = S::Service>,
M: Layer<S::Service, Service = S::Service>,
S: Layer<RequestHandler, Service = RequestHandler>,
[src]
N: Layer<S::Service, Service = S::Service>,
M: Layer<S::Service, Service = S::Service>,
S: Layer<RequestHandler, Service = RequestHandler>,
Trait Implementations
impl<'a, M, S> RouterBuilder for GroupBuilder<'a, M, S> where
S: Layer<RequestHandler, Service = RequestHandler>,
M: Layer<RequestHandler, Service = RequestHandler>,
[src]
S: Layer<RequestHandler, Service = RequestHandler>,
M: Layer<RequestHandler, Service = RequestHandler>,
fn handle<P, H>(&self, method: Method, path: P, handler: H) where
P: Into<String>,
H: Into<RequestHandler>,
[src]
P: Into<String>,
H: Into<RequestHandler>,
fn get<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn head<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn options<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn post<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn put<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn patch<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
fn delete<P, H, R>(&mut self, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = ResponseResult> + Send + 'static,
Auto Trait Implementations
impl<'a, M, S> !RefUnwindSafe for GroupBuilder<'a, M, S>
[src]
impl<'a, M, S> Send for GroupBuilder<'a, M, S> where
M: Send,
S: Sync,
[src]
M: Send,
S: Sync,
impl<'a, M, S> Sync for GroupBuilder<'a, M, S> where
M: Sync,
S: Sync,
[src]
M: Sync,
S: Sync,
impl<'a, M, S> Unpin for GroupBuilder<'a, M, S> where
M: Unpin,
[src]
M: Unpin,
impl<'a, M, S> !UnwindSafe for GroupBuilder<'a, M, S>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,