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: Debug + Service<Req>, Req: Debug> Debug for Oneshot<S, Req>
[src][+]
impl<S, Req> Future for Oneshot<S, Req> where
S: Service<Req>,
[src][+]
S: Service<Req>,
impl<S: Service<Req>, Req> PinnedDrop for Oneshot<S, Req>
[src][+]
impl<'pin, S: Service<Req>, Req> Unpin for Oneshot<S, Req> where
__Oneshot<'pin, S, Req>: Unpin,
[src]
__Oneshot<'pin, S, Req>: Unpin,
impl<S: Service<Req>, Req> UnsafeUnpin for Oneshot<S, Req>
[src]
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, 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>,