Trait ethcore::error::BlockImportErrorResultExt  [−]
pub trait BlockImportErrorResultExt<T> {
    fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError>
    where
        F: FnOnce() -> EK,
        EK: Into<BlockImportErrorKind>;
}Additional methods for Result, for easy interaction with this crate.
Required Methods
fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError> where
    F: FnOnce() -> EK,
    EK: Into<BlockImportErrorKind>, 
F: FnOnce() -> EK,
EK: Into<BlockImportErrorKind>,
If the Result is an Err then chain_err evaluates the closure,
which returns some type that can be converted to ErrorKind, boxes
the original error to store as the cause, then returns a new error
containing the original error.
Implementations on Foreign Types
impl<T, E> BlockImportErrorResultExt<T> for Result<T, E> where
    E: Error + Send + 'static, 
impl<T, E> BlockImportErrorResultExt<T> for Result<T, E> where
    E: Error + Send + 'static, fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError> where
    F: FnOnce() -> EK,
    EK: Into<BlockImportErrorKind>, 
fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError> where
    F: FnOnce() -> EK,
    EK: Into<BlockImportErrorKind>, impl<T> BlockImportErrorResultExt<T> for Option<T>
impl<T> BlockImportErrorResultExt<T> for Option<T>fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError> where
    F: FnOnce() -> EK,
    EK: Into<BlockImportErrorKind>, 
fn chain_err<F, EK>(self, callback: F) -> Result<T, BlockImportError> where
    F: FnOnce() -> EK,
    EK: Into<BlockImportErrorKind>,