[−][src]Struct v4l::device::DeviceInfo
Represents a video4linux device node
Implementations
impl DeviceInfo
[src]
pub fn new<P: AsRef<Path>>(path: P) -> Self
[src]
Returns a device node observer by path
The device is opened in read only mode.
Arguments
path
- Node path (usually a character device or sysfs entry)
Example
use v4l::DeviceInfo; let node = DeviceInfo::new("/dev/video0");
pub fn path(&self) -> &Path
[src]
Returns the absolute path of the device node
pub fn index(&self) -> Option<usize>
[src]
Returns the index of the device node
pub fn name(&self) -> Option<String>
[src]
Returns name of the device by parsing its sysfs entry
Trait Implementations
impl TryFrom<DeviceInfo> for Device
[src]
Auto Trait Implementations
impl RefUnwindSafe for DeviceInfo
impl Send for DeviceInfo
impl Sync for DeviceInfo
impl Unpin for DeviceInfo
impl UnwindSafe for DeviceInfo
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,