[−][src]Struct v4l::device::Info
Represents a video4linux device node
Implementations
impl Info
[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::device::Info; let node = Info::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
Auto Trait Implementations
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnwindSafe for Info
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>,