[−][src]Struct adventure::response::FutureResponse
Converts a std::future::Future
into a Response
.
Methods
impl<F> FutureResponse<F>
[src]
Trait Implementations
impl<F> Response for FutureResponse<F> where
F: TryFuture,
[src]
F: TryFuture,
type Ok = F::Ok
The type of successful values of this response.
type Error = F::Error
The type of failures of this response.
fn poll(self: Pin<&mut Self>, w: &Waker) -> Poll<Result<Self::Ok, Self::Error>>
[src]
ⓘImportant traits for IntoFuture<T>fn into_future(self) -> IntoFuture<Self> where
Self: Sized,
[src]
ⓘImportant traits for IntoFuture<T>
Self: Sized,
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]
F: TryFuture,
Auto Trait Implementations
impl<F> Send for FutureResponse<F> where
F: Send,
F: Send,
impl<F> Sync for FutureResponse<F> where
F: Sync,
F: Sync,
Blanket Implementations
impl<T> ResponseExt for T where
T: Response,
[src]
T: Response,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,