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>
impl<T, Request> Unpin for ReadyOneshot<T, Request>
Auto Trait Implementations
impl<T, Request> Freeze for ReadyOneshot<T, Request>
where
Option<T>: Freeze,
PhantomData<fn() -> Request>: Freeze,
impl<T, Request> RefUnwindSafe for ReadyOneshot<T, Request>
where
Option<T>: RefUnwindSafe,
PhantomData<fn() -> Request>: RefUnwindSafe,
impl<T, Request> Send for ReadyOneshot<T, Request>
where
Option<T>: Send,
PhantomData<fn() -> Request>: Send,
impl<T, Request> Sync for ReadyOneshot<T, Request>
where
Option<T>: Sync,
PhantomData<fn() -> Request>: Sync,
impl<T, Request> UnsafeUnpin for ReadyOneshot<T, Request>
where
Option<T>: UnsafeUnpin,
PhantomData<fn() -> Request>: UnsafeUnpin,
impl<T, Request> UnwindSafe for ReadyOneshot<T, Request>
where
Option<T>: UnwindSafe,
PhantomData<fn() -> Request>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for ReadyOneshot<T, Request>
where
F: Future,
type Output = <F as Future>::Output;type IntoFuture = F;fn into_future(self) -> <F as IntoFuture>::IntoFuture
impl<F, T, E> TryFuture for ReadyOneshot<T, Request>
where
F: Future<Output = Result<T, E>> + ?Sized,
type Ok = T;type Error = E;fn try_poll(self: Pin<&mut F>, cx: &mut Context<'_>) -> Poll<<F as Future>::Output>
impl<Fut> TryFutureExt for ReadyOneshot<T, Request>
where
Fut: TryFuture + ?Sized,
impl<T> Any for ReadyOneshot<T, Request>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ReadyOneshot<T, Request>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ReadyOneshot<T, Request>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ReadyOneshot<T, Request>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for ReadyOneshot<T, Request>
where
T: Future + ?Sized,
impl<T> FutureExt for ReadyOneshot<T, Request>
where
T: Future + ?Sized,
impl<T> Instrument for ReadyOneshot<T, Request>
impl<T> WithSubscriber for ReadyOneshot<T, Request>
impl<T, U> Into<U> for ReadyOneshot<T, Request>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for ReadyOneshot<T, Request>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ReadyOneshot<T, Request>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>