pub struct Event<'a> {
pub name: &'static str,
pub category: EventCategory,
pub timestamp: SystemTime,
pub install_id: Option<&'a str>,
pub session_id: &'a str,
pub schema_version: u32,
pub props: &'a [Prop<'a>],
}Expand description
A telemetry event in flight.
Constructed by the codegen’d emit_* helpers in teksilo-telemetry
(or hand-written for framework events) and handed to a reporter
synchronously. The borrowed 'a lifetime keeps the call site
allocation-free — adapters that buffer events MUST convert to
OwnedEvent before queueing.
Fields§
§name: &'static strStable, dev-authored event name ("intent.dispatched",
"lifecycle.app_started"). Always a &'static str literal.
category: EventCategory§timestamp: SystemTime§install_id: Option<&'a str>Some(uuid) in pseudonymous mode, None in anonymous mode.
session_id: &'a strPer-process random session id. Not persisted across restarts.
schema_version: u32Event-schema version at emission time. Used for server-side schema validation and the consent re-prompt rule.
props: &'a [Prop<'a>]Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Event<'a>
impl<'a> RefUnwindSafe for Event<'a>
impl<'a> Send for Event<'a>
impl<'a> Sync for Event<'a>
impl<'a> Unpin for Event<'a>
impl<'a> UnsafeUnpin for Event<'a>
impl<'a> UnwindSafe for Event<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more