Skip to main content

EventSchema

Trait EventSchema 

Source
pub trait EventSchema {
    const KIND: u8;

    // Required method
    fn definition() -> &'static EventDefinition;
}
Expand description

Trait implemented by generated event types.

Required Associated Constants§

Source

const KIND: u8

Stable event kind.

Required Methods§

Source

fn definition() -> &'static EventDefinition

Returns the static event definition.

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.

Implementors§