Trait ToErrorCode

Source
pub trait ToErrorCode
where Self: Error,
{ // Required method fn error_code(&self) -> &str; }
Expand description

Convert self type to an error code. Used with DC parser pipeline error types.

Required Methods§

Source

fn error_code(&self) -> &str

Implementors§