[][src]Trait error_code::Category

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

    fn message(code: i32) -> 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(code: i32) -> Str

Returns the explanatory text for the code.

Loading content...

Implementations on Foreign Types

impl Category for ()[src]

Loading content...

Implementors

impl Category for PosixCategory[src]

impl Category for SystemCategory[src]

Loading content...