pub struct GroupBuilder<'a, M, S> { /* private fields */ }
Implementations§
Source§impl<'a, M, S> GroupBuilder<'a, M, S>
impl<'a, M, S> GroupBuilder<'a, M, S>
pub fn extend<P: Into<Cow<'static, str>>, B: Into<Treemux>>( &self, path: P, routes: B, )
pub fn scope<P: Into<Cow<'static, str>>>( 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>,
Trait Implementations§
Source§impl<'a, M, S> RouterBuilder for GroupBuilder<'a, M, S>where
S: Layer<RequestHandler, Service = RequestHandler>,
M: Layer<RequestHandler, Service = RequestHandler>,
impl<'a, M, S> RouterBuilder for GroupBuilder<'a, M, S>where
S: Layer<RequestHandler, Service = RequestHandler>,
M: Layer<RequestHandler, Service = RequestHandler>,
Source§fn handle<P, H>(&self, method: Method, path: P, handler: H)
fn handle<P, H>(&self, method: Method, path: P, handler: H)
Insert a value into the router for a specific path indexed by a key. Read more
Auto Trait Implementations§
impl<'a, M, S> Freeze for GroupBuilder<'a, M, S>where
M: Freeze,
impl<'a, M, S> !RefUnwindSafe for GroupBuilder<'a, M, S>
impl<'a, M, S> Send for GroupBuilder<'a, M, S>
impl<'a, M, S> Sync for GroupBuilder<'a, M, S>
impl<'a, M, S> Unpin for GroupBuilder<'a, M, S>where
M: Unpin,
impl<'a, M, S> !UnwindSafe for GroupBuilder<'a, M, S>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more