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.

Implementations on Foreign Types§

source§

impl ErrorExt for Error

source§

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

source§

fn err_clone(&self) -> Error

Implementors§

source§

impl ErrorExt for tx5_go_pion_turn::Error