re_analytics

Trait Event

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

Source

const NAME: &'static str

The name of the event.

We prefer snake_case when naming events.

Provided Associated Constants§

Source

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.

Implementors§

Source§

impl Event for CrashPanic

Source§

const NAME: &'static str = "crash-panic"

Source§

impl Event for CrashSignal

Source§

const NAME: &'static str = "crash-signal"

Source§

impl Event for Identify

Source§

const NAME: &'static str = "$identify"

Source§

const KIND: EventKind = EventKind::Update

Source§

impl Event for OpenRecording

Source§

const NAME: &'static str = "open_recording"

Source§

impl Event for ServeWasm

Source§

const NAME: &'static str = "serve_wasm"

Source§

impl Event for ViewerStarted

Source§

const NAME: &'static str = "viewer_started"