pub trait DeviceSource: Send {
// Required methods
fn read(&mut self) -> DeviceReading;
fn read_errors(&self) -> u64;
}Expand description
2026-09-26: Where device readings come from.
Required Methods§
Sourcefn read(&mut self) -> DeviceReading
fn read(&mut self) -> DeviceReading
2026-09-26: One reading, now. Never fails as a whole: an unreadable
field is None.
Sourcefn read_errors(&self) -> u64
fn read_errors(&self) -> u64
2026-09-26: Failed reads so far. A “not supported” or “no permission”
answer is not a failure. NvmlSource does not count the NVLink state
queries: a link that does not answer is skipped.