Struct Oneshot
pub struct Oneshot<S: Service<Req>, Req> { /* private fields */ }
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>,
const fn new(svc: S, req: Req) -> Self
Trait Implementations
impl<'__pin, S: Service<Req>, Req> Unpin for Oneshot<S, Req>
where
PinnedFieldsOf<__Origin<'__pin, S, Req>>: Unpin,
impl<S, Req> Future for Oneshot<S, Req>
where
S: Service<Req>,
type Output = Result<<S as Service<Req>>::Response, <S as Service<Req>>::Error>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
impl<S: Debug + Service<Req>, Req: Debug> Debug for Oneshot<S, Req>
fn fmt(&self, f: &mut Formatter<'_>) -> Result