[−][src]Crate one_of_futures
This crate implements several custom future-aware OneOf
types, which behaves
similarly to Either
type,
but suitable for more than two variants.
It also exposes impl_one_of!
macro, which allow to generate custom OneOf
type,
with the desired number and names of variants
Features
futures_03
enables support for futures 0.3 (core/std), enabled by default
sink
enables support fot futures 0.3 (core/std) 's Sink
, enabled by default
futures_01
enables support for futures 0.1 under the futures_01 module
Macros
impl_one_of | Macro to implement custom |
Enums
OneOf2 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf3 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf4 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf5 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf6 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf7 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
OneOf8 | Combines multiple different futures, streams, or sinks having the same associated types into a single type. |
Traits
FusedFuture | A future which tracks whether or not the underlying future should no longer be polled. |
FusedStream | A stream which tracks whether or not the underlying stream should no longer be polled. |
Stream | A stream of values produced asynchronously. |