MCPcopy Create free account
hub / github.com/RustCV/RustCV / DeviceInfo

Class DeviceInfo

rustcv-core/src/traits.rs:10–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8/// 设备基本信息
9#[derive(Debug, Clone, PartialEq)]
10pub 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)]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected