Struct linuxvideo::Capabilities
source · pub struct Capabilities(_);Expand description
Stores generic device information.
Returned by Device::capabilities.
Implementations§
source§impl Capabilities
impl Capabilities
sourcepub fn driver(&self) -> &str
pub fn driver(&self) -> &str
Returns the identifier of the V4L2 driver that provides this device.
Examples:
uvcvideov4l2 loopback
sourcepub fn card(&self) -> &str
pub fn card(&self) -> &str
Returns the card or device name.
For v4l2loopback devices, the reported card name can be configured by passing the
card_label parameter when loading the module (or via modprobe.d).
sourcepub fn bus_info(&self) -> &str
pub fn bus_info(&self) -> &str
Returns a description of where on the system the device is attached.
Examples:
usb-0000:0a:00.3-2.1platform:v4l2loopback-002
sourcepub fn all_capabilities(&self) -> CapabilityFlags
pub fn all_capabilities(&self) -> CapabilityFlags
Returns all capabilities the underlying hardware device exposes.
Some capabilities might be inaccessible through the opened device node and require opening a different one.
sourcepub fn device_capabilities(&self) -> CapabilityFlags
pub fn device_capabilities(&self) -> CapabilityFlags
Returns the capabilities available through the currently opened device node.