pub use self::pipeline::Pipeline;
pub use self::compression::Compression;
#[macro_use]
pub mod pipeline;
pub mod compression;
use Error;
use std;
pub trait Middleware : std::fmt::Debug
{
fn encode_data(&mut self, data: Vec<u8>) -> Result<Vec<u8>, Error>;
fn decode_data(&mut self, data: Vec<u8>) -> Result<Vec<u8>, Error>;
}