1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
//! Utilities errors kinds. error_chain! { foreign_links { ParseIntError(::std::num::ParseIntError); ParseFloatError(::std::num::ParseFloatError); } errors { EmptyOption { description("unwrapped empty option") } } } /// Future with core error type. pub type Future<T> = ::futures::Future<Item = T, Error = Error>; /// Boxed future with core error type. pub type BoxFuture<T> = Box<Future<T>>;