pub struct TelemetryContext {
pub reporter: Rc<dyn UsageReporter>,
pub session_id: String,
pub schema_version: u32,
}Expand description
Registration type for the dispatch tap.
teksilo-telemetry::TelemetryBundle::open constructs one of these
and registers it into app_state. The dispatch tap in
crate::widget_tree::WidgetTree::dispatch_intent looks it up
by TypeId, calls record if found.
Carries the metadata the tap needs to assemble a complete
Event — session_id (per-process random) and schema_version
(codegen’d constant from the YAML manifest).
Fields§
§reporter: Rc<dyn UsageReporter>§session_id: StringPer-process random session id. Not persisted across restarts.
schema_version: u32Event-schema version at this build. Bumped whenever the framework’s events.yaml gains, drops, or reshapes an event.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryContext
impl !Send for TelemetryContext
impl !Sync for TelemetryContext
impl !UnwindSafe for TelemetryContext
impl Freeze for TelemetryContext
impl Unpin for TelemetryContext
impl UnsafeUnpin for TelemetryContext
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