[][src]Struct adventure::response::FutureResponse

pub struct FutureResponse<F> { /* fields omitted */ }

Converts a std::future::Future into a Response.

Methods

impl<F> FutureResponse<F>[src]

pub fn new(fut: F) -> Self[src]

Trait Implementations

impl<F> Response for FutureResponse<F> where
    F: TryFuture
[src]

type Ok = F::Ok

The type of successful values of this response.

type Error = F::Error

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

impl<F: Unpin> Unpin for FutureResponse<F>[src]

impl<F> From<F> for FutureResponse<F> where
    F: TryFuture
[src]

Auto Trait Implementations

impl<F> Send for FutureResponse<F> where
    F: Send

impl<F> Sync for FutureResponse<F> where
    F: Sync

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.