pub struct Telemetry { /* private fields */ }Expand description
Telemetry service
Implementations§
Source§impl Telemetry
impl Telemetry
Sourcepub fn record(&self, event: TelemetryEvent) -> Result<()>
pub fn record(&self, event: TelemetryEvent) -> Result<()>
Record a telemetry event
Sourcepub fn get_stats(&self) -> Result<TelemetryStats>
pub fn get_stats(&self) -> Result<TelemetryStats>
Get telemetry statistics
Sourcepub fn export_data(&self) -> Result<String>
pub fn export_data(&self) -> Result<String>
Export all telemetry data as JSON
Sourcepub fn delete_all_data(&self) -> Result<()>
pub fn delete_all_data(&self) -> Result<()>
Delete all telemetry data
Auto Trait Implementations§
impl !Freeze for Telemetry
impl !RefUnwindSafe for Telemetry
impl Send for Telemetry
impl !Sync for Telemetry
impl Unpin for Telemetry
impl !UnwindSafe for Telemetry
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