std::future - Rust (original) (raw)

Module future

1.36.0 · Source

Expand description

Asynchronous basic functionality.

Please see the fundamental async and await keywords and the async bookfor more information on asynchronous programming in Rust.

joinExperimental

Polls multiple futures simultaneously, returning a tuple of all results once complete.

Pending

Creates a future which never resolves, representing a computation that never finishes.

PollFn

A Future that wraps a function returning Poll.

Ready

A future that is immediately ready with a value.

AsyncDropInPlaceExperimental

A future returned by the async_drop_in_place.

Future

A future represents an asynchronous computation obtained by use of async.

IntoFuture

Conversion into a Future.

AsyncDropExperimental

Custom code within the asynchronous destructor.

pending

Creates a future which never resolves, representing a computation that never finishes.

poll_fn

Creates a future that wraps a function returning Poll.

ready

Creates a future that is immediately ready with a value.

async_dropExperimental

Asynchronously drops a value by running AsyncDrop::async_dropon a value and its fields recursively.

async_drop_in_place⚠Experimental

Creates the asynchronous destructor of the pointed-to value.