Trait tx5::ErrorExt

source ·
pub trait ErrorExt {
    // Required methods
    fn id(&self) -> Cow<'_, str>;
    fn err_clone(&self) -> Error;
}
Expand description

Extension trait to extract a name from a Tx5 core error type.

Required Methods§

source

fn id(&self) -> Cow<'_, str>

Get the identifier of this error type, or the string representation.

source

fn err_clone(&self) -> Error

Clone the error maintaining any meta info is available if we are a tx5 error type.

Implementors§

source§

impl ErrorExt for tx5::deps::lair_keystore_api::dependencies::tokio::io::Error

source§

impl ErrorExt for tx5::Error