use std::collections::HashMap;
mod memory;
mod stdio;
mod stream;
pub use memory::InMemory;
pub use stdio::Stdio;
pub use stream::BoxedHandler;
pub use stream::Stream;
pub trait Transport<C> {
type Handler;
type Output;
type Error;
fn serve(
self,
ctx: C,
handlers: HashMap<String, Self::Handler>,
) -> Result<Self::Output, Self::Error>;
}