[−][src]Struct uvc::DeviceHandle
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]
F: Fn(StreamFormat, StreamFormat) -> StreamFormat,
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]
&'a self,
format: FrameFormat,
width: u32,
height: u32,
fps: u32
) -> Result<StreamHandle<'a>>
Creates a stream handle
pub fn get_stream_handle_with_format(
&'a self,
format: StreamFormat
) -> Result<StreamHandle<'a>>
[src]
&'a self,
format: StreamFormat
) -> Result<StreamHandle<'a>>
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]
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>,