DeviceSource

Trait DeviceSource 

Source
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§

Source

fn read(&mut self) -> DeviceReading

2026-09-26: One reading, now. Never fails as a whole: an unreadable field is None.

Source

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.

Implementors§