pub struct WithQueryHandler<H> { /* private fields */ }
Expand description
Wrapper over handler
Implementations§
Source§impl<H> WithQueryHandler<H>
impl<H> WithQueryHandler<H>
Sourcepub const fn new(inner: H, required: &'static [&'static str]) -> Self
pub const fn new(inner: H, required: &'static [&'static str]) -> Self
Create a new WithQueryHandler
.
Trait Implementations§
Source§impl<H: Clone> Clone for WithQueryHandler<H>
impl<H: Clone> Clone for WithQueryHandler<H>
Source§fn clone(&self) -> WithQueryHandler<H>
fn clone(&self) -> WithQueryHandler<H>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<H: Debug> Debug for WithQueryHandler<H>
impl<H: Debug> Debug for WithQueryHandler<H>
Source§impl<H, T, S> Handler<T, S> for WithQueryHandler<H>where
H: Handler<T, S>,
impl<H, T, S> Handler<T, S> for WithQueryHandler<H>where
H: Handler<T, S>,
Source§fn call(self, req: Request, state: S) -> Self::Future
fn call(self, req: Request, state: S) -> Self::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer
to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service
by providing the stateimpl<H: Copy> Copy for WithQueryHandler<H>
Auto Trait Implementations§
impl<H> Freeze for WithQueryHandler<H>where
H: Freeze,
impl<H> RefUnwindSafe for WithQueryHandler<H>where
H: RefUnwindSafe,
impl<H> Send for WithQueryHandler<H>where
H: Send,
impl<H> Sync for WithQueryHandler<H>where
H: Sync,
impl<H> Unpin for WithQueryHandler<H>where
H: Unpin,
impl<H> UnwindSafe for WithQueryHandler<H>where
H: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service
and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService
and no state. Read more