use linux_video::Device; fn main() -> std::io::Result<()> { let dev = Device::open("/dev/video0")?; let caps = dev.capabilities()?; println!("Capabilities: {caps}"); println!("Controls:"); for ctrl in dev.controls(None) { let ctrl = ctrl?; println!(" {ctrl}"); if let Some(items) = dev.control_items(&ctrl) { for item in items { let item = item?; println!(" {item}"); } } } Ok(()) }