1use std::fmt;
2use std::error;
3
4pub use self::io::IoExt;
5pub use self::futures::FutureExt;
6pub use self::servers::SimpleHttpServer;
7
8pub mod io;
9pub mod router;
10pub mod headers;
11pub mod servers;
12pub mod futures;
13
14#[derive(Debug)]
15pub struct NoError(());
16impl fmt::Display for NoError {
17 fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result {
18 unreachable!()
19 }
20}
21impl error::Error for NoError {
22 fn description(&self) -> &str {
23 unreachable!()
24 }
25 fn cause(&self) -> Option<&error::Error> {
26 unreachable!()
27 }
28}