pub trait AsEventCode {
// Required method
fn as_event_code(&self) -> u32;
}Expand description
AsEventCode is any type that can be converted into a u32 for the purposes of reporting to
cobalt.
Required Methods§
fn as_event_code(&self) -> u32
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".