1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
use std::time::Duration;
mod alloc;
mod codec;
mod config;
mod dispatcher;
mod error;
mod keys;
mod zero_copy;
pub mod client;
pub use self::alloc::Packet;
pub use self::codec::{ServerCodec, ClientCodec};
pub use self::dispatcher::{Loop, Dispatcher};
pub use self::error::Error;
pub use self::keys::{GUID, Accept, Key};
pub use self::zero_copy::Frame;
#[derive(Debug, Clone)]
pub struct Config {
ping_interval: Duration,
inactivity_timeout: Duration,
max_packet_size: usize,
}