pub trait Coded:
Copy
+ PartialEq
+ Send
+ Sync
+ 'static {
const NAME: &'static str;
const VARIANTS: &'static [Self];
// Provided methods
fn code(&self) -> u32 { ... }
fn from_code(code: u64) -> Result<Self, MessageError> { ... }
}Required Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".