Skip to main content

ErrorCode

Trait ErrorCode 

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

Machine-readable code for errors that cross process or API boundaries.

Required Methods§

Source

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

Returns a stable code for control flow and public API responses.

Implementors§