Expand description
Re-exports§
pub use core::future::pending;
pub use core::future::ready;
pub use core::future::Future;
pub use core::future::Pending;
pub use core::future::Ready;
Structs§
- Catch
Unwind - Future for the
FutureExt::catch_unwind()
method. - Fuse
Future
for thefuse
method.- Or
- Future for the
or()
function and theFutureExt::or()
method. - PollFn
- Future for the
poll_fn()
function. - Poll
Once - Future for the
poll_once()
function. - Race
- Future for the
race()
function and theFutureExt::race()
method. - TryZip
- Future for the
try_zip()
function. - Yield
Now - Future for the
yield_now()
function. - Zip
- Future for the
zip()
function.
Traits§
Functions§
- block_
on - Blocks the current thread on a future.
- fuse
- Fuse a future such that
poll
will never again be called once it has completed. This method can be used to turn anyFuture
into aFusedFuture
. - or
- Returns the result of the future that completes first, preferring
future1
if both are ready. - poll_fn
- Creates a future from a function returning
Poll
. - poll_
once - Polls a future just once and returns an
Option
with the result. - race
- Returns the result of the future that completes first, with no preference if both are ready.
- race_
with_ seed - Race two futures but with a predefined random seed.
- try_zip
- Joins two fallible futures, waiting for both to complete or one of them to error.
- yield_
now - Wakes the current task and returns
Poll::Pending
once. - zip
- Joins two futures, waiting for both to complete.
Type Aliases§
- Boxed
- Type alias for
Pin<Box<dyn Future<Output = T> + Send + 'static>>
. - Boxed
Local - Type alias for
Pin<Box<dyn Future<Output = T> + 'static>>
.