pub trait ErrorCodeEnum: Into<i32> {
    type Category: Category;
    fn error_code(self) -> ErrorCode<Self::Category> { ... }
}
Expand description

Identifies object as error code, allowing for it to be converted with right Category

Associated Types

Specifies category of error code.

Provided methods

Converts self into ErrorCode

Implementors