Trait Category
error_code
pub trait Category { const NAME: &'static str; fn message(code: i32) -> Str; }
Describes category of Error, defining it’s semantics.
const NAME: &'static str
Category’s name, used in formatting to identify type of error code.
fn message(code: i32) -> Str
Returns the explanatory text for the code.
impl Category for ()
fn message<'a>(_: i32) -> Str
impl Category for PosixCategory
fn message<'a>(code: i32) -> Str
impl Category for SystemCategory