pub trait Event: Properties {
const NAME: &'static str;
const KIND: EventKind = EventKind::Append;
}Expand description
An analytics event.
This trait requires an implementation of Properties.
Required Associated Constants§
Provided Associated Constants§
Sourceconst KIND: EventKind = EventKind::Append
const KIND: EventKind = EventKind::Append
What kind of event this is.
Most events do not update state, so the default here is EventKind::Append.
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.