[][src]Trait error_code::Category

pub trait Category {
    const NAME: &'static str;

    fn message<'a>(code: i32) -> Cow<'a, str>;
}

Describes category of Error, defining it's semantics.

Associated Constants

const NAME: &'static str

Category's name, used in formatting to identify type of error code.

Loading content...

Required methods

fn message<'a>(code: i32) -> Cow<'a, str>

Returns the explanatory text for the code.

Loading content...

Implementors

impl Category for ()[src]

impl Category for PosixCategory[src]

impl Category for SystemCategory[src]

Loading content...