[−][src]Macro linked_futures::impl_one_of
Macro to implement custom OneOf
type.
Example:
use one_of_futures::impl_one_of; impl_one_of!(MyEither; Left, Right ); fn main() { let either = match 1 { 0 => MyEither::Left(async { 1 }), _ => MyEither::Right(async { 2 }), }; }