Expand description
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
OneOftype.
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§
- Fused
Future - A future which tracks whether or not the underlying future should no longer be polled.
- Fused
Stream - A stream which tracks whether or not the underlying stream should no longer be polled.
- Sink
- A
Sinkis a value into which other values can be sent, asynchronously. - Stream
- A stream of values produced asynchronously.