pub struct DeviceInfo {
pub name: String,
pub id: String,
pub backend: String,
pub bus_info: Option<String>,
}Expand description
设备基本信息
Fields§
§name: String对用户友好的显示名称 (e.g. “Logitech C920”)
id: String唯一硬件 ID (e.g. “/dev/video0” 或 USB 序列号) 用于 Driver::open 的参数
backend: String后端类型标识 (e.g. “V4L2”, “MediaFoundation”)
bus_info: Option<String>硬件总线信息 (可选,e.g. “usb-0000:00:14.0-1”) 用于高级拓扑识别
Trait Implementations§
Source§impl Clone for DeviceInfo
impl Clone for DeviceInfo
Source§fn clone(&self) -> DeviceInfo
fn clone(&self) -> DeviceInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeviceInfo
impl Debug for DeviceInfo
Source§impl PartialEq for DeviceInfo
impl PartialEq for DeviceInfo
impl StructuralPartialEq for DeviceInfo
Auto Trait Implementations§
impl Freeze for DeviceInfo
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnsafeUnpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more