Struct viz::prelude::Endpoint [−][src]
pub struct Endpoint<Handler, Args>(_, _);
Expand description
Endpoint
Implementations
Trait Implementations
impl<'a, H, A> Handle<'a, Context> for Endpoint<H, A> where
A: 'static + Extract + Send,
H: 'static + Handler<A> + Send + Sync,
<A as Extract>::Error: Into<Response>,
<A as Extract>::Error: Send,
<H as Handler<A>>::Output: Into<Response>,
<H as Handler<A>>::Future: 'static,
<H as Handler<A>>::Future: Future,
<H as Handler<A>>::Future: Send,
<<H as Handler<A>>::Future as Future>::Output == <H as Handler<A>>::Output,
impl<'a, H, A> Handle<'a, Context> for Endpoint<H, A> where
A: 'static + Extract + Send,
H: 'static + Handler<A> + Send + Sync,
<A as Extract>::Error: Into<Response>,
<A as Extract>::Error: Send,
<H as Handler<A>>::Output: Into<Response>,
<H as Handler<A>>::Future: 'static,
<H as Handler<A>>::Future: Future,
<H as Handler<A>>::Future: Send,
<<H as Handler<A>>::Future as Future>::Output == <H as Handler<A>>::Output,
Auto Trait Implementations
impl<Handler, Args> RefUnwindSafe for Endpoint<Handler, Args> where
Handler: RefUnwindSafe,
impl<Handler, Args> UnwindSafe for Endpoint<Handler, Args> where
Handler: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
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;
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;
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;
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;
Notable traits for Instrumented<T>
impl<T> Future for Instrumented<T> where
T: Future, type Output = <T as Future>::Output;
pub fn vzip(self) -> V
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>,
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>,
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
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;
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;
Notable traits for WithDispatch<T>
impl<T> Future for WithDispatch<T> where
T: Future, type Output = <T as Future>::Output;
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more