Type Alias EventName

Source
pub type EventName = Cow<'static, str>;
Expand description

The name of an event, used for display and keying purposes.

Typically event names are &'static str but for rare cases when the exact set of events is not known in advance, we also support owned strings via Cow.

Aliased Type§

pub enum EventName {
    Borrowed(&'static str),
    Owned(String),
}

Variants§

§1.0.0

Borrowed(&'static str)

Borrowed data.

§1.0.0

Owned(String)

Owned data.