Struct ReadyOneshot
pub struct ReadyOneshot<T, Request> { /* private fields */ }
A Future that yields the service when it is ready to accept a request.
ReadyOneshot values are produced by ServiceExt::ready_oneshot.
Implementations
impl<T, Request> ReadyOneshot<T, Request>
where
T: Service<Request>,
const fn new(service: T) -> Self
Trait Implementations
impl<T, Request> Debug for ReadyOneshot<T, Request>
where
T: Debug,
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T, Request> Future for ReadyOneshot<T, Request>
where
T: Service<Request>,
type Output = Result<T, <T as Service<Request>>::Error>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>