[−][src]Struct uvc::Context
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]
&'a self,
vendor_id: Option<c_int>,
product_id: Option<c_int>,
serial_number: Option<&str>
) -> Result<Device<'a>>
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]
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,
pub 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.
pub 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>,