Trait error_code::Category[][src]

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

    fn message(code: i32) -> Str;
}
Expand description

Describes category of Error, defining it’s semantics.

Associated Constants

const NAME: &'static str[src]

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

Required methods

fn message(code: i32) -> Str[src]

Returns the explanatory text for the code.

Implementations on Foreign Types

impl Category for ()[src]

const NAME: &'static str[src]

fn message<'a>(_: i32) -> Str[src]

Implementors

impl Category for PosixCategory[src]

const NAME: &'static str[src]

fn message<'a>(code: i32) -> Str[src]

impl Category for SystemCategory[src]

const NAME: &'static str[src]

fn message<'a>(code: i32) -> Str[src]