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
use std::fmt; use std::error; pub use self::io::IoExt; pub use self::futures::FutureExt; pub use self::servers::SimpleHttpServer; pub mod io; pub mod router; pub mod headers; pub mod servers; pub mod futures; #[derive(Debug)] pub struct NoError(()); impl fmt::Display for NoError { fn fmt(&self, _: &mut fmt::Formatter) -> fmt::Result { unreachable!() } } impl error::Error for NoError { fn description(&self) -> &str { unreachable!() } fn cause(&self) -> Option<&error::Error> { unreachable!() } }