eventuals/
lib.rs

1mod eventual;
2pub use eventual::*;
3pub mod error;
4pub use error::Closed;
5mod combinators;
6pub use combinators::*;
7
8// This is a convenience trait to make it easy to pass either an Eventual or an
9// EventualReader into functions.
10pub trait IntoReader {
11    type Output: Value;
12    fn into_reader(self) -> EventualReader<Self::Output>;
13}
14
15pub trait Value: 'static + Send + Clone + Eq {}
16impl<T> Value for T where T: 'static + Send + Clone + Eq {}