[][src]Struct uvc::Context

pub struct Context<'a> { /* fields omitted */ }

Contains the libuvc context

Implementations

impl<'a> Context<'a>[src]

pub fn new() -> Result<Self>[src]

Creates a new context

pub fn devices(&'a self) -> Result<DeviceList<'a>>[src]

Enumerates the available devices

pub fn find_device(
    &'a self,
    vendor_id: Option<c_int>,
    product_id: Option<c_int>,
    serial_number: Option<&str>
) -> Result<Device<'a>>
[src]

Find a device based on informations about the device Pass None to all fields to get a default device

Trait Implementations

impl<'a> Debug for Context<'a>[src]

impl<'a> Drop for Context<'a>[src]

impl<'a> Send for Context<'a>[src]

impl<'a> Sync for Context<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Context<'a>[src]

impl<'a> Unpin for Context<'a>[src]

impl<'a> UnwindSafe for Context<'a>[src]

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.