logo
pub trait StaticEventContent: EventContent {
    const KIND: EventKind;
    const TYPE: &'static str;
}
Available on crate feature events only.
Expand description

Trait for abstracting over event content structs.

… but not enums which don’t always have an event type and kind (e.g. message vs state) that’s fixed / known at compile time.

Required Associated Constants

The event’s “kind”.

See the type’s documentation.

The event type.

Implementors