either-future

Crates.ioeither-future
lib.rseither-future
version1.1.0
sourcesrc
created_at2019-10-06 18:14:39.6499
updated_at2021-10-18 12:07:56.717409
descriptionAn implementation of Future for Either.
homepagehttps://github.com/FSMaxB/rust-either-future
repositoryhttps://github.com/FSMaxB/rust-either-future
max_upload_size
id170420
size15,978
Max Bruckner (FSMaxB)

documentation

README

either-future

EitherFuture is a no_std implementation of Future<Output = Either<Left, Right> for Either<LeftFuture, RightFuture>.

It is both implemented for futures::Future (0.1) and core::future::Future.

The minimum supported rust version (MSRV) is 1.15.0 if default features are disabled and only futures01 is enabled. See the different features for their respecitive MSRV.

Features

  • futures01: Implement futures::Future with version 0.1 of the futures library
    • MSRV: 1.15.0 (MSRV of futures 0.1)
  • futures03: Implement Conversions to and from futures_util::future::Either
    • MSRV: 1.41.0 (minimum supported version by futures_util 0.3)
  • std_future: Implement core::future::Future, enabled by default
    • MSRV: 1.36.0 (where core::future::Future was introduced to the standard library)
Commit count: 46

cargo fmt