[−][src]Trait futures_util::future::FutureExt
An extension trait for Future
s that provides a variety of convenient
adapters.
Provided methods
ⓘImportant traits for Map<Fut, F>fn map<U, F>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output) -> U,
Self: Sized,
[+]
ⓘImportant traits for Map<Fut, F>
F: FnOnce(Self::Output) -> U,
Self: Sized,
ⓘImportant traits for Then<Fut1, Fut2, F>fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
[+]
ⓘImportant traits for Then<Fut1, Fut2, F>
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
ⓘImportant traits for Either<A, B>fn left_future<B>(self) -> Either<Self, B> where
B: Future<Output = Self::Output>,
Self: Sized,
[+]
ⓘImportant traits for Either<A, B>
B: Future<Output = Self::Output>,
Self: Sized,
ⓘImportant traits for Either<A, B>fn right_future<A>(self) -> Either<A, Self> where
A: Future<Output = Self::Output>,
Self: Sized,
[+]
ⓘImportant traits for Either<A, B>
A: Future<Output = Self::Output>,
Self: Sized,
fn into_stream(self) -> IntoStream<Self> where
Self: Sized,
[+]
Self: Sized,
ⓘImportant traits for Flatten<Fut>fn flatten(self) -> Flatten<Self> where
Self::Output: Future,
Self: Sized,
[+]
ⓘImportant traits for Flatten<Fut>
Self::Output: Future,
Self: Sized,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
Self: Sized,
[+]
Self::Output: Stream,
Self: Sized,
ⓘImportant traits for Fuse<Fut>fn fuse(self) -> Fuse<Self> where
Self: Sized,
[+]
ⓘImportant traits for Fuse<Fut>
Self: Sized,
ⓘImportant traits for Inspect<Fut, F>fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnOnce(&Self::Output),
Self: Sized,
[+]
ⓘImportant traits for Inspect<Fut, F>
F: FnOnce(&Self::Output),
Self: Sized,
ⓘImportant traits for CatchUnwind<Fut>fn catch_unwind(self) -> CatchUnwind<Self> where
Self: Sized + UnwindSafe,
[+]
ⓘImportant traits for CatchUnwind<Fut>
Self: Sized + UnwindSafe,
ⓘImportant traits for Shared<Fut>fn shared(self) -> Shared<Self> where
Self: Sized,
Self::Output: Clone,
[+]
ⓘImportant traits for Shared<Fut>
Self: Sized,
Self::Output: Clone,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>) where
Self: Sized,
[+]
Self: Sized,
fn boxed<'a>(self) -> BoxFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[+]
Self: Sized + Send + 'a,
ⓘImportant traits for UnitError<Fut>fn unit_error(self) -> UnitError<Self> where
Self: Sized,
[+]
ⓘImportant traits for UnitError<Fut>
Self: Sized,
ⓘImportant traits for NeverError<Fut>fn never_error(self) -> NeverError<Self> where
Self: Sized,
[+]
ⓘImportant traits for NeverError<Fut>
Self: Sized,
fn poll_unpin(&mut self, cx: &mut Context) -> Poll<Self::Output> where
Self: Unpin + Sized,
[+]
Self: Unpin + Sized,
Implementors
impl<T: ?Sized> FutureExt for T where
T: Future,
[src][−]
T: Future,
ⓘImportant traits for Map<Fut, F>fn map<U, F>(self, f: F) -> Map<Self, F> where
F: FnOnce(Self::Output) -> U,
Self: Sized,
[src]
ⓘImportant traits for Map<Fut, F>
F: FnOnce(Self::Output) -> U,
Self: Sized,
ⓘImportant traits for Then<Fut1, Fut2, F>fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F> where
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
[src]
ⓘImportant traits for Then<Fut1, Fut2, F>
F: FnOnce(Self::Output) -> Fut,
Fut: Future,
Self: Sized,
ⓘImportant traits for Either<A, B>fn left_future<B>(self) -> Either<Self, B> where
B: Future<Output = Self::Output>,
Self: Sized,
[src]
ⓘImportant traits for Either<A, B>
B: Future<Output = Self::Output>,
Self: Sized,
ⓘImportant traits for Either<A, B>fn right_future<A>(self) -> Either<A, Self> where
A: Future<Output = Self::Output>,
Self: Sized,
[src]
ⓘImportant traits for Either<A, B>
A: Future<Output = Self::Output>,
Self: Sized,
fn into_stream(self) -> IntoStream<Self> where
Self: Sized,
[src]
Self: Sized,
ⓘImportant traits for Flatten<Fut>fn flatten(self) -> Flatten<Self> where
Self::Output: Future,
Self: Sized,
[src]
ⓘImportant traits for Flatten<Fut>
Self::Output: Future,
Self: Sized,
fn flatten_stream(self) -> FlattenStream<Self> where
Self::Output: Stream,
Self: Sized,
[src]
Self::Output: Stream,
Self: Sized,
ⓘImportant traits for Fuse<Fut>fn fuse(self) -> Fuse<Self> where
Self: Sized,
[src]
ⓘImportant traits for Fuse<Fut>
Self: Sized,
ⓘImportant traits for Inspect<Fut, F>fn inspect<F>(self, f: F) -> Inspect<Self, F> where
F: FnOnce(&Self::Output),
Self: Sized,
[src]
ⓘImportant traits for Inspect<Fut, F>
F: FnOnce(&Self::Output),
Self: Sized,
ⓘImportant traits for CatchUnwind<Fut>fn catch_unwind(self) -> CatchUnwind<Self> where
Self: Sized + UnwindSafe,
[src]
ⓘImportant traits for CatchUnwind<Fut>
Self: Sized + UnwindSafe,
ⓘImportant traits for Shared<Fut>fn shared(self) -> Shared<Self> where
Self: Sized,
Self::Output: Clone,
[src]
ⓘImportant traits for Shared<Fut>
Self: Sized,
Self::Output: Clone,
fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>) where
Self: Sized,
[src]
Self: Sized,
fn boxed<'a>(self) -> BoxFuture<'a, Self::Output> where
Self: Sized + Send + 'a,
[src]
Self: Sized + Send + 'a,
ⓘImportant traits for UnitError<Fut>fn unit_error(self) -> UnitError<Self> where
Self: Sized,
[src]
ⓘImportant traits for UnitError<Fut>
Self: Sized,
ⓘImportant traits for NeverError<Fut>fn never_error(self) -> NeverError<Self> where
Self: Sized,
[src]
ⓘImportant traits for NeverError<Fut>
Self: Sized,
fn poll_unpin(&mut self, cx: &mut Context) -> Poll<Self::Output> where
Self: Unpin + Sized,
[src]
Self: Unpin + Sized,