pub struct Responder<H, O>(_, _);
Implementations
Trait Implementations
sourceimpl<H, I, O> Handler<I> for Responder<H, O> where
I: 'static + Send,
H: Handler<I, Output = Result<O, Error>> + Clone,
O: 'static + IntoResponse + Send + Sync,
impl<H, I, O> Handler<I> for Responder<H, O> where
I: 'static + Send,
H: Handler<I, Output = Result<O, Error>> + Clone,
O: 'static + IntoResponse + Send + Sync,
type Output = Result<Response<Body>, Error>
fn call<'life0, 'async_trait>(
&'life0 self,
args: I
) -> Pin<Box<dyn Future<Output = <Responder<H, O> as Handler<I>>::Output> + Send + 'async_trait, Global>>ⓘNotable traits for Pin<P>impl<P> Future for Pin<P> where
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
where
'life0: 'async_trait,
Responder<H, O>: 'async_trait,
P: DerefMut,
<P as Deref>::Target: Future, type Output = <<P as Deref>::Target as Future>::Output;
Auto Trait Implementations
impl<H, O> RefUnwindSafe for Responder<H, O> where
H: RefUnwindSafe,
O: RefUnwindSafe,
impl<H, O> Send for Responder<H, O> where
H: Send,
O: Send,
impl<H, O> Sync for Responder<H, O> where
H: Sync,
O: Sync,
impl<H, O> Unpin for Responder<H, O> where
H: Unpin,
O: Unpin,
impl<H, O> UnwindSafe for Responder<H, O> where
H: UnwindSafe,
O: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<I, T> HandlerExt<I> for T where
T: Handler<I> + ?Sized,
impl<I, T> HandlerExt<I> for T where
T: Handler<I> + ?Sized,
fn boxed(self) -> Box<dyn Handler<I, Output = Self::Output> + 'static, Global>ⓘNotable traits for Box<F, A>impl<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;
fn before<F>(self, f: F) -> Before<Self, F>
fn after<F>(self, f: F) -> After<Self, F>
fn around<F>(self, f: F) -> Around<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
fn and_then<F>(self, f: F) -> AndThen<Self, F>
fn map_err<F>(self, f: F) -> MapErr<Self, F>
fn or_else<F>(self, f: F) -> OrElse<Self, F>
fn catch_error<F, R, E>(self, f: F) -> CatchError<Self, F, R, E>
fn catch_unwind<F>(self, f: F) -> CatchUnwind<Self, F>
fn with<T>(self, t: T) -> <T as Transform<Self>>::Output where
T: Transform<Self>,
fn with_fn<F>(self, f: F) -> Self where
F: Fn(Self) -> Self,
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn instrument(self, span: Span) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
sourcefn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
fn in_current_span(self) -> Instrumented<Self>ⓘNotable traits for Instrumented<T>impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
where
S: Into<Dispatch>,
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
fn with_current_subscriber(self) -> WithDispatch<Self>ⓘNotable traits for WithDispatch<T>impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more