| 8 | /// 设备基本信息 |
| 9 | #[derive(Debug, Clone, PartialEq)] |
| 10 | pub struct DeviceInfo { |
| 11 | /// 对用户友好的显示名称 (e.g. "Logitech C920") |
| 12 | pub name: String, |
| 13 | |
| 14 | /// 唯一硬件 ID (e.g. "/dev/video0" 或 USB 序列号) |
| 15 | /// 用于 Driver::open 的参数 |
| 16 | pub id: String, |
| 17 | |
| 18 | /// 后端类型标识 (e.g. "V4L2", "MediaFoundation") |
| 19 | pub backend: String, |
| 20 | |
| 21 | /// 硬件总线信息 (可选,e.g. "usb-0000:00:14.0-1") |
| 22 | /// 用于高级拓扑识别 |
| 23 | pub bus_info: Option<String>, |
| 24 | } |
| 25 | |
| 26 | /// 硬件触发源配置 |
| 27 | #[derive(Debug, Clone, Copy, PartialEq, Eq)] |
nothing calls this directly
no outgoing calls
no test coverage detected