rr_mux/lib.rs
1#[macro_use]
2extern crate log;
3
4extern crate futures;
5extern crate async_trait;
6
7pub mod connector;
8/// Connector defines a generic futures-based request/response interface.
9/// This can be used to implement message based protocols independent of underlying transports
10pub use crate::connector::Connector;
11
12pub mod muxed;
13/// Muxed describes a message that is either a Request or a Response
14pub use muxed::Muxed;
15
16pub mod mux;
17/// Mux is an implementation of a Connector using a HashMap and oneshot channels
18pub use crate::mux::Mux;
19
20pub mod mapped;
21/// Mapped converts a connector interface from one type to another using a Mapper implementation.
22/// This can be used to multiplex protocols / message types over a single base connector
23pub use mapped::{Mapped, Mapper};
24
25/// Mock is a mock connector implementation that allows expectation based testing of modules that consume
26/// the Connector interface
27pub mod mock;
28
29pub mod wire;