pub struct WithState<H, S> { /* private fields */ }
Trait Implementations§
Source§impl<H, S> Handler for WithState<H, S>
impl<H, S> Handler for WithState<H, S>
fn handle<'t, 'a>(&'t self, req: Request) -> BoxFuture<'a, Result<Response>>where
Self: 'a,
't: 'a,
fn with_state<S>(self, state: Arc<S>) -> WithState<Self, S>
fn wrap<M>(self, middleware: M) -> Wrap<Self, M>where
Self: Sized,
M: Middleware,
fn boxed(self) -> Box<dyn Handler>where
Self: Sized + 'static,
fn into_server(self) -> Serverwhere
Self: Sized + 'static,
Auto Trait Implementations§
impl<H, S> Freeze for WithState<H, S>where
H: Freeze,
impl<H, S> RefUnwindSafe for WithState<H, S>where
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, S> Send for WithState<H, S>
impl<H, S> Sync for WithState<H, S>
impl<H, S> Unpin for WithState<H, S>where
H: Unpin,
impl<H, S> UnwindSafe for WithState<H, S>where
H: UnwindSafe,
S: RefUnwindSafe,
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