pub trait ErrorCode {
// Required method
fn error_code(&self) -> i32;
}Expand description
Trait for types that can be converted to integer error code.
Required Methods§
Sourcefn error_code(&self) -> i32
fn error_code(&self) -> i32
Return the error code corresponding to this instance.