cobalt_client::traits

Trait AsEventCode

Source
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§

Implementations on Foreign Types§

Source§

impl AsEventCode for i8

Source§

impl AsEventCode for i16

Source§

impl AsEventCode for i32

Source§

impl AsEventCode for u8

Source§

impl AsEventCode for u16

Source§

impl AsEventCode for u32

Implementors§