//! Main library entry point for fatcat implementation. mod server; mod errors { error_chain!{} } pub use self::errors::*; use fatcat; use hyper; use std::io; pub struct NewService; impl hyper::server::NewService for NewService { type Request = (hyper::Request, fatcat::Context); type Response = hyper::Response; type Error = hyper::Error; type Instance = fatcat::server::Service; /// Instantiate a new server. fn new_service(&self) -> io::Result { Ok(fatcat::server::Service::new(server::Server)) } }