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
32
33
34
35
#![warn(missing_docs)]
#![warn(rust_2018_idioms)]
#![cfg_attr(feature = "nightly", feature(test))]
#[cfg(test)]
#[macro_use]
extern crate quickcheck_macros;
#[cfg(all(feature = "nightly", test))]
extern crate test;
mod frame;
mod mask;
mod message;
mod opcode;
mod upgrade;
pub mod protocol;
pub use crate::message::{Message, MessageCodec};
pub use crate::opcode::Opcode;
pub use crate::upgrade::{ClientRequest, UpgradeCodec};
use std::error;
use std::result;
pub type Error = Box<dyn error::Error + Send + Sync + 'static>;
pub type Result<T> = result::Result<T, Error>;