Skip to main content

ErrorCode

Trait ErrorCode 

Source
pub trait ErrorCode {
    // Required method
    fn error_code(&self) -> &'static str;
}
Expand description

Error code for external reference (e.g., documentation).

Required Methods§

Source

fn error_code(&self) -> &'static str

Get a unique error code for this error type.

Implementors§