nerdbank_streams/lib.rs
1//! Tokio support for the Nerdbank.Streams multiplexing protocol.
2//!
3//! Protocol versions 1, 2, and 3 are supported. Protocol v2 and v3 also
4//! support the additive channel receive-window growth extensions.
5
6mod channel;
7mod frame;
8mod multiplexor;
9
10/// Tokio implementation of the MultiplexingStream protocol.
11///
12/// This module contains the multiplexing API so that future, unrelated
13/// `nerdbank-streams` features do not occupy the crate root.
14pub mod mxstream {
15 pub use crate::channel::{Channel, ChannelReadHalf, ChannelWriteHalf};
16 pub use crate::multiplexor::{
17 ChannelId, ChannelOptions, ChannelSource, Error, MultiplexingStream, Options,
18 ProtocolVersion,
19 };
20}