pub struct GroupRouter { /* private fields */ }Expand description
Inner router used within a group closure
This captures routes without a prefix, which are later merged with the group’s prefix.
Implementations§
Source§impl GroupRouter
impl GroupRouter
Sourcepub fn post<H, Fut>(self, path: &str, handler: H) -> Self
pub fn post<H, Fut>(self, path: &str, handler: H) -> Self
Register a POST route within the group
Auto Trait Implementations§
impl Freeze for GroupRouter
impl !RefUnwindSafe for GroupRouter
impl Send for GroupRouter
impl Sync for GroupRouter
impl Unpin for GroupRouter
impl !UnwindSafe for GroupRouter
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