pub trait GpuMonitor: Send + Sync {
// Required methods
fn gpu_count(&self) -> usize;
fn snapshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Vec<GpuSnapshot>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Abstraction over a source of GPU telemetry.
Implementors must be Send + Sync so that the monitor can be shared across
tasks behind an Arc.