[][src]Struct v4l::device::Info

pub struct Info { /* fields omitted */ }

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

impl TryFrom<Info> for Device[src]

type Error = Error

The type returned in the event of a conversion error.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.