pub struct ChainHandler<H, N> {
pub path: &'static str,
pub method: Method,
pub handler: H,
pub next: N,
}Fields§
§path: &'static str§method: Method§handler: H§next: NImplementations§
Source§impl<H, N> ChainHandler<H, N>
impl<H, N> ChainHandler<H, N>
pub fn get<H2>( self, path: &'static str, handler: H2, ) -> ChainHandler<H2, ChainHandler<H, N>>
pub fn post<H2>( self, path: &'static str, handler: H2, ) -> ChainHandler<H2, ChainHandler<H, N>>
pub fn put<H2>( self, path: &'static str, handler: H2, ) -> ChainHandler<H2, ChainHandler<H, N>>
pub fn delete<H2>( self, path: &'static str, handler: H2, ) -> ChainHandler<H2, ChainHandler<H, N>>
pub fn request<H2>( self, path: &'static str, method: Method, handler: H2, ) -> ChainHandler<H2, ChainHandler<H, N>>
Auto Trait Implementations§
impl<H, N> Freeze for ChainHandler<H, N>
impl<H, N> RefUnwindSafe for ChainHandler<H, N>where
H: RefUnwindSafe,
N: RefUnwindSafe,
impl<H, N> Send for ChainHandler<H, N>
impl<H, N> Sync for ChainHandler<H, N>
impl<H, N> Unpin for ChainHandler<H, N>
impl<H, N> UnsafeUnpin for ChainHandler<H, N>where
H: UnsafeUnpin,
N: UnsafeUnpin,
impl<H, N> UnwindSafe for ChainHandler<H, N>where
H: UnwindSafe,
N: UnwindSafe,
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