use std::fmt; mod service; /// H1 service response type pub enum H2ServiceResult { Disconnected, Shutdown(T), } impl fmt::Debug for H2ServiceResult { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { H2ServiceResult::Disconnected => write!(f, "H2ServiceResult::Disconnected"), H2ServiceResult::Shutdown(ref v) => { write!(f, "H2ServiceResult::Shutdown({:?})", v) } } } }