Expand description
The vendor backend abstraction — nvtop’s struct gpu_vendor vtable, translated to Rust.
Contract:
init()failing is normal (driver/library absent) — the registry drops the backend silently and the rest of the tool keeps working.- Per-metric absence is
Nonein the sample, never anErr.Errfrom a refresh means “this refresh produced nothing usable” (device fell off the bus, etc.) and is survivable.
Enums§
Traits§
Functions§
- all_
backends - Explicit registry — no constructor/inventory magic. Each backend’s failed init is logged and skipped.