Trait re_analytics::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.

Object Safety§

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"