crypto_util/
errors.rs

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