Trait error_code::ErrorCodeEnum
source · [−]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
Provided methods
fn error_code(self) -> ErrorCode<Self::Category>
fn error_code(self) -> ErrorCode<Self::Category>
Converts self into ErrorCode