pub trait TelemetryExt {
// Required method
fn try_telemetry(&self) -> Option<&OpenedTelemetry>;
// Provided methods
fn telemetry(&self) -> &OpenedTelemetry { ... }
fn consent(&self) -> &ConsentStore { ... }
fn usage_reporter(&self) -> &DynamicReporter { ... }
}Expand description
Convenience accessors for telemetry services attached to the app’s
app_state registry.
Required Methods§
fn try_telemetry(&self) -> Option<&OpenedTelemetry>
Provided Methods§
Sourcefn telemetry(&self) -> &OpenedTelemetry
fn telemetry(&self) -> &OpenedTelemetry
The full bundle. Panics if TeksiloAppBuilder::telemetry(...)
was not called.
Sourcefn consent(&self) -> &ConsentStore
fn consent(&self) -> &ConsentStore
The consent store. Panics if no telemetry bundle was registered.
Sourcefn usage_reporter(&self) -> &DynamicReporter
fn usage_reporter(&self) -> &DynamicReporter
The active dynamic reporter (forwards to the adapter matching the current mode). Panics if no telemetry bundle was registered.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".