Module ore::future[][src]

Future and stream utilities.

This module provides future and stream combinators that are missing from the futures crate.

Structs

DevNull

A sink that consumes its input and sends it nowhere.

Drain

The stream returned by OreStreamExt::drain.

Enqueue

Future for the enqueue method.

SelectFlatten

The stream returned by OreStreamExt::select_flatten.

TryRecv

The future returned by OreTryStreamExt::try_recv.

Enums

Either3

Combines three different futures yielding the same item and error types into a single concrete type.

MaybeFuture

Either a future or an immediately available value

Traits

OreFutureExt

Extension methods for futures.

OreSinkExt

Extension methods for sinks.

OreStreamExt

Extension methods for streams.

OreTryFutureExt

Extension methods for Result-returning futures.

OreTryStreamExt

Extension methods for Result-producing streams.

Functions

dev_null

Constructs a sink that consumes its input and sends it nowhere.

select_all_biased

Merges streams together, yielding items as they become available.