Module ntex_util::future

source ·
Expand description

Utilities for futures

Structs

Future for the lazy function.

Enums

Combines two different futures, streams, or sinks having the same associated types into a single type.
A future representing a value that is immediately ready.

Traits

A Sink is a value into which other values can be sent, asynchronously.
A stream of values produced asynchronously.

Functions

Future for the join combinator, waiting for two futures to complete.
Creates a future which represents a collection of the outputs of the futures given.
Creates a new future that allows delayed execution of a closure.
Creates a new future wrapping around a function returning Poll.
Waits for either one of two differently-typed futures to complete.
A future that completes after the given item has been fully processed into the sink, including flushing.
Creates a future that resolves to the next item in the stream.

Type Definitions

An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.