async_monad 0.2.0

Asynchronous monad for rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/// # Wrapped Async Monads
/// 
/// Typically, all apis are the same as the standard [`Option`] / [`Result`].
/// 
/// For the operations that changes the value inside it, you should use a `Future` or something returns a `Future` instead of direct values.
/// 
/// For the operations that unwrap or check the value inside, they're transformed into an asynchronous version.
/// 
/// Some apis are not provided, consider `await` the monad and use its sync version instead.
pub mod async_wrapped;

#[cfg(feature = "async_trait")]
/// # Asynchronous Monad Operation
/// 
/// This module provides two traits for std [`Option`] / [`Result`].
/// 
/// The two traits provide all the functionality the std one provides, but can accept `Future`s as parameters or operators.
pub mod async_traits;