Struct tower::util::Oneshot [−][src]
A Future
consuming a Service
and request, waiting until the Service
is ready, and then calling Service::call
with the request, and
waiting for that Future
.
Implementations
impl<S, Req> Oneshot<S, Req> where
S: Service<Req>,
[src][−]
S: Service<Req>,
Trait Implementations
impl<S, Req> Debug for Oneshot<S, Req> where
S: Debug + Service<Req>,
Req: Debug,
[src][+]
S: Debug + Service<Req>,
Req: Debug,
impl<S, Req> Future for Oneshot<S, Req> where
S: Service<Req>,
[src][+]
S: Service<Req>,
impl<'pin, S, Req> Unpin for Oneshot<S, Req> where
S: Service<Req>,
__Oneshot<'pin, S, Req>: Unpin,
[src]
S: Service<Req>,
__Oneshot<'pin, S, Req>: Unpin,
impl<S, Req> UnsafeUnpin for Oneshot<S, Req> where
S: Service<Req>,
[src]
S: Service<Req>,
Auto Trait Implementations
impl<S, Req> RefUnwindSafe for Oneshot<S, Req> where
Req: RefUnwindSafe,
S: RefUnwindSafe,
<S as Service<Req>>::Future: RefUnwindSafe,
Req: RefUnwindSafe,
S: RefUnwindSafe,
<S as Service<Req>>::Future: RefUnwindSafe,
impl<S, Req> Send for Oneshot<S, Req> where
Req: Send,
S: Send,
<S as Service<Req>>::Future: Send,
Req: Send,
S: Send,
<S as Service<Req>>::Future: Send,
impl<S, Req> Sync for Oneshot<S, Req> where
Req: Sync,
S: Sync,
<S as Service<Req>>::Future: Sync,
Req: Sync,
S: Sync,
<S as Service<Req>>::Future: Sync,
impl<S, Req> UnwindSafe for Oneshot<S, Req> where
Req: UnwindSafe,
S: UnwindSafe,
<S as Service<Req>>::Future: UnwindSafe,
Req: UnwindSafe,
S: UnwindSafe,
<S as Service<Req>>::Future: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T> FutureExt for T where
T: Future + ?Sized,
[src][+]
T: Future + ?Sized,
impl<T> Instrument for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<F> IntoFuture for F where
F: Future,
[src][+]
F: Future,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<F, T, E> TryFuture for F where
F: Future<Output = Result<T, E>> + ?Sized,
[src][+]
F: Future<Output = Result<T, E>> + ?Sized,
impl<Fut> TryFutureExt for Fut where
Fut: TryFuture + ?Sized,
[src][+]
Fut: TryFuture + ?Sized,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,