(&self)
| 175 | /// Return the cached normalized inventory snapshot. |
| 176 | #[must_use] |
| 177 | pub fn device_ids(&self) -> Vec<String> { |
| 178 | self.state |
| 179 | .read() |
| 180 | .expect("CDI GPU selector state lock poisoned") |
| 181 | .inventory |
| 182 | .as_slice() |
| 183 | .to_vec() |
| 184 | } |
| 185 | |
| 186 | /// Return the current default device IDs without advancing the cursor. |
| 187 | pub fn peek_device_ids(&self, count: u32) -> Result<Vec<String>, CdiGpuSelectionError> { |