Struct treemux::GroupBuilder [−][src]
Implementations
impl<'a> GroupBuilder<'a>
[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<'b, P: Into<Cow<'static, str>>>(
&'b mut self,
path: P
) -> GroupBuilder<'b>
[src]
&'b mut self,
path: P
) -> GroupBuilder<'b>
pub fn middleware<M>(&mut self, middleware: M) where
M: Middleware<Input = Handler, Output = Handler>,
[src]
M: Middleware<Input = Handler, Output = Handler>,
Trait Implementations
impl<'a> RouterBuilder for GroupBuilder<'a>
[src]
fn handle<P, H, R>(&self, method: Method, path: P, handler: H) where
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + Send + 'static,
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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + 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 = Result<Response<Body>, Error>> + Send + 'static,
[src]
P: Into<String>,
H: Fn(Request<Body>) -> R + Send + Sync + 'static,
R: Future<Output = Result<Response<Body>, Error>> + Send + 'static,
Auto Trait Implementations
impl<'a> !RefUnwindSafe for GroupBuilder<'a>
[src]
impl<'a> Send for GroupBuilder<'a>
[src]
impl<'a> Sync for GroupBuilder<'a>
[src]
impl<'a> Unpin for GroupBuilder<'a>
[src]
impl<'a> !UnwindSafe for GroupBuilder<'a>
[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>,