mai 0.1.0

A higher-level mio interface.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use EventedByteStream;
use Codec;
use Handler;

use std::fmt::Debug;

pub trait Protocol {
  type ByteStream: EventedByteStream;
  type Frame: Send + Debug;
  type Codec: Codec<Self::Frame>;
  type Handler: Handler<Self>;
  type Timeout: Debug;
  type Session: Send;
}