pub trait ResultExt<T, E> {
    // Required method
    fn account_manager_error(
        self,
        api_error: AccountApiError
    ) -> Result<T, AccountManagerError>;
}
Expand description

An extension trait to simplify conversion of results based on general errors to AccountManagerErrors.

Required Methods§

source

fn account_manager_error( self, api_error: AccountApiError ) -> Result<T, AccountManagerError>

Wraps the error in a non-fatal AccountManagerError with the supplied AccountApiError.

Implementations on Foreign Types§

source§

impl<T, E> ResultExt<T, E> for Result<T, E>where E: Into<Error> + Send + Sync + Sized,

Implementors§