pub trait ErrorCode {
// Required methods
fn error_code(&self) -> i32;
fn str_repr_from_err_code(code: i32) -> Option<&'static str>;
}
Required Methods§
fn error_code(&self) -> i32
fn str_repr_from_err_code(code: i32) -> Option<&'static str>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.