pub struct Capabilities(/* private fields */);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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Capabilities
impl RefUnwindSafe for Capabilities
impl Send for Capabilities
impl Sync for Capabilities
impl Unpin for Capabilities
impl UnwindSafe for Capabilities
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