Struct ResponseFuture
pub struct ResponseFuture<F, E> { /* private fields */ }
Future that resolves to the response or failure to connect.
Trait Implementations
impl<'__pin, F, E> Unpin for ResponseFuture<F, E>
where
PinnedFieldsOf<__Origin<'__pin, F, E>>: Unpin,
impl<F, T, E, ME> Future for ResponseFuture<F, ME>
where
F: Future<Output = Result<T, E>>,
E: Into<BoxError>,
ME: Into<BoxError>,
type Output = Result<T, Box<dyn Error + Sync + Send>>;fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>
impl<F: Debug, E: Debug> Debug for ResponseFuture<F, E>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
Auto Trait Implementations
impl<F, E> Freeze for ResponseFuture<F, E>
where
Inner<F, E>: Freeze,
impl<F, E> RefUnwindSafe for ResponseFuture<F, E>
where
Inner<F, E>: RefUnwindSafe,
impl<F, E> Send for ResponseFuture<F, E>
where
Inner<F, E>: Send,
impl<F, E> Sync for ResponseFuture<F, E>
where
Inner<F, E>: Sync,
impl<F, E> UnsafeUnpin for ResponseFuture<F, E>
where
Inner<F, E>: UnsafeUnpin,
impl<F, E> UnwindSafe for ResponseFuture<F, E>
where
Inner<F, E>: UnwindSafe,
Blanket Implementations
impl<F> IntoFuture for ResponseFuture<F, E>
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 ResponseFuture<F, E>
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 ResponseFuture<F, E>
where
Fut: TryFuture + ?Sized,
impl<T> Any for ResponseFuture<F, E>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for ResponseFuture<F, E>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for ResponseFuture<F, E>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for ResponseFuture<F, E>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> FutureExt for ResponseFuture<F, E>
where
T: Future + ?Sized,
impl<T> FutureExt for ResponseFuture<F, E>
where
T: Future + ?Sized,
impl<T> Instrument for ResponseFuture<F, E>
impl<T> WithSubscriber for ResponseFuture<F, E>
impl<T, U> Into<U> for ResponseFuture<F, E>
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 ResponseFuture<F, E>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for ResponseFuture<F, E>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>