[][src]Struct uvc::DeviceHandle

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

Open handle to a device

Implementations

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

pub fn scanning_mode(&self) -> Result<ScanningMode>[src]

pub fn ae_mode(&self) -> Result<AutoExposureMode>[src]

pub fn ae_priority(&self) -> Result<AutoExposurePriority>[src]

pub fn exposure_abs(&self) -> Result<u32>[src]

pub fn exposure_rel(&self) -> Result<i8>[src]

pub fn focus_abs(&self) -> Result<u16>[src]

pub fn focus_rel(&self) -> Result<(i8, u8)>[src]

impl<'a, 'b> DeviceHandle<'a>[src]

#[must_use]pub fn supported_formats(&self) -> FormatDescriptors<'a>[src]

List all supported formats

pub fn get_preferred_format<F>(&self, f: F) -> Option<StreamFormat> where
    F: Fn(StreamFormat, StreamFormat) -> StreamFormat
[src]

Iterates over all available formats to select the best format.

f should compare (x, y) and return the preferred format.

pub fn get_stream_handle_with_format_size_and_fps(
    &'a self,
    format: FrameFormat,
    width: u32,
    height: u32,
    fps: u32
) -> Result<StreamHandle<'a>>
[src]

Creates a stream handle

pub fn get_stream_handle_with_format(
    &'a self,
    format: StreamFormat
) -> Result<StreamHandle<'a>>
[src]

Creates a stream handle

Trait Implementations

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

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

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

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for DeviceHandle<'a>

impl<'a> Unpin for DeviceHandle<'a>

impl<'a> UnwindSafe for DeviceHandle<'a>

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.