async-codec-util 0.2.0

Utilities for working with the async-codec traits.
Documentation
1
2
3
4
5
6
7
8
9
//! Utilities for working with encoders.

mod chain;
pub use self::chain::Chain;

/// Chain two encoders, encoding them in sequence.
pub fn chain<W, S, T>(first: S, second: T) -> Chain<W, S, T> {
    Chain::new(first, second)
}