mediator 0.2.2

An implementation of the Mediator pattern in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
/// A boxed stream.
#[cfg(feature = "streams")]
pub type BoxStream<'a, T> = std::pin::Pin<Box<dyn crate::futures::Stream<Item = T> + Send + 'a>>;

/// A boxed future.
pub type BoxFuture<'a, T> = std::pin::Pin<Box<dyn std::future::Future<Output = T> + Send + 'a>>;

#[cfg(feature = "streams")]
pub use tokio_stream::*;

/// Utilities for streams.
#[cfg(feature = "streams")]
pub mod stream;