[−][src]Struct adventure::response::LocalFutureResponseObj
A Response
wrapping a trait object of polling futures,
similar to LocalFutureObj
.
Methods
impl<'a, T, E> LocalFutureResponseObj<'a, T, E>
[src]
pub fn new<F>(fut: F) -> Self where
F: Future<Output = Result<T, E>> + 'a,
[src]
F: Future<Output = Result<T, E>> + 'a,
pub fn into_inner(self) -> LocalFutureObj<'a, Result<T, E>>
[src]
Trait Implementations
impl<'a, T, E> Response for LocalFutureResponseObj<'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.
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
Auto Trait Implementations
impl<'a, T, E> !Send for LocalFutureResponseObj<'a, T, E>
impl<'a, T, E> !Sync for LocalFutureResponseObj<'a, T, E>
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>,