Struct ResponseFuture

pub struct ResponseFuture<T> { /* private fields */ }

Response future returned by Optional.

Trait Implementations

impl<'__pin, T> Unpin for ResponseFuture<T> where PinnedFieldsOf<__Origin<'__pin, T>>: Unpin,

impl<F, T, E> Future for ResponseFuture<F> where F: Future<Output = Result<T, E>>, E: Into<BoxError>,

type Output = Result<T, Box<dyn Error + Sync + Send>>;
fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output>

impl<T: Debug> Debug for ResponseFuture<T>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<T> Freeze for ResponseFuture<T> where Option<T>: Freeze,

impl<T> RefUnwindSafe for ResponseFuture<T> where Option<T>: RefUnwindSafe,

impl<T> Send for ResponseFuture<T> where Option<T>: Send,

impl<T> Sync for ResponseFuture<T> where Option<T>: Sync,

impl<T> UnsafeUnpin for ResponseFuture<T> where Option<T>: UnsafeUnpin,

impl<T> UnwindSafe for ResponseFuture<T> where Option<T>: UnwindSafe,

Blanket Implementations

impl<F> IntoFuture for ResponseFuture<T> where F: Future,

impl<F, T, E> TryFuture for ResponseFuture<T> where F: Future<Output = Result<T, E>> + ?Sized,

impl<Fut> TryFutureExt for ResponseFuture<T> where Fut: TryFuture + ?Sized,

impl<T> Any for ResponseFuture<T> where T: 'static + ?Sized,

impl<T> Borrow<T> for ResponseFuture<T> where T: ?Sized,

impl<T> BorrowMut<T> for ResponseFuture<T> where T: ?Sized,

impl<T> From<T> for ResponseFuture<T>

impl<T> FutureExt for ResponseFuture<T> where T: Future + ?Sized,

impl<T> FutureExt for ResponseFuture<T> where T: Future + ?Sized,

impl<T> Instrument for ResponseFuture<T>

impl<T> WithSubscriber for ResponseFuture<T>

impl<T, U> Into<U> for ResponseFuture<T> where U: From<T>,

impl<T, U> TryFrom<U> for ResponseFuture<T> where U: Into<T>,

impl<T, U> TryInto<U> for ResponseFuture<T> where U: TryFrom<T>,