[][src]Struct adventure::response::FutureResponseObj

pub struct FutureResponseObj<'a, T, E> { /* fields omitted */ }

A Response wrapping a trait object of polling futures, similar to FutureObj.

Methods

impl<'a, T, E> FutureResponseObj<'a, T, E>[src]

pub fn new<F>(fut: F) -> Self where
    F: Future<Output = Result<T, E>> + Send + 'a, 
[src]

pub fn into_inner(self) -> FutureObj<'a, Result<T, E>>[src]

Trait Implementations

impl<'a, T, E> Response for FutureResponseObj<'a, T, E>[src]

type Ok = T

The type of successful values of this response.

type Error = E

The type of failures of this response.

Important traits for IntoFuture<T>
fn into_future(self) -> IntoFuture<Self> where
    Self: Sized
[src]

Wrap this response into a type that can work with futures. Read more

Auto Trait Implementations

impl<'a, T, E> Send for FutureResponseObj<'a, T, E>

impl<'a, T, E> !Sync for FutureResponseObj<'a, T, E>

Blanket Implementations

impl<T> ResponseExt for T where
    T: Response
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.