pub struct TelemetryService { /* private fields */ }
Expand description
Service for managing telemetry data and resource monitoring.
Implementations§
Source§impl TelemetryService
impl TelemetryService
Sourcepub fn new(update_interval: Duration) -> Self
pub fn new(update_interval: Duration) -> Self
Creates a new telemetry service with the given update interval.
Sourcepub fn tick(&mut self) -> bool
pub fn tick(&mut self) -> bool
Should be called periodically (e.g., once per frame). Updates all registered resource monitors if the interval has passed.
Sourcepub fn metrics_registry(&self) -> &MetricsRegistry
pub fn metrics_registry(&self) -> &MetricsRegistry
Returns a reference to the metrics registry.
Sourcepub fn monitor_registry(&self) -> &MonitorRegistry
pub fn monitor_registry(&self) -> &MonitorRegistry
Returns a reference to the monitor registry.
Trait Implementations§
Source§impl Debug for TelemetryService
impl Debug for TelemetryService
Auto Trait Implementations§
impl Freeze for TelemetryService
impl !RefUnwindSafe for TelemetryService
impl Send for TelemetryService
impl Sync for TelemetryService
impl Unpin for TelemetryService
impl !UnwindSafe for TelemetryService
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