pub struct DeviceHandle<'a> { /* private fields */ }
Expand description
Open handle to a device
Implementations§
Source§impl<'a> DeviceHandle<'a>
impl<'a> DeviceHandle<'a>
pub fn scanning_mode(&self) -> Result<ScanningMode>
pub fn ae_mode(&self) -> Result<AutoExposureMode>
pub fn ae_priority(&self) -> Result<AutoExposurePriority>
pub fn exposure_abs(&self) -> Result<u32>
pub fn exposure_rel(&self) -> Result<i8>
pub fn focus_abs(&self) -> Result<u16>
pub fn focus_rel(&self) -> Result<(i8, u8)>
Source§impl<'a, 'b> DeviceHandle<'a>
impl<'a, 'b> DeviceHandle<'a>
Sourcepub fn supported_formats(&self) -> FormatDescriptors<'a> ⓘ
pub fn supported_formats(&self) -> FormatDescriptors<'a> ⓘ
List all supported formats
Sourcepub fn get_preferred_format<F>(&self, f: F) -> Option<StreamFormat>
pub fn get_preferred_format<F>(&self, f: F) -> Option<StreamFormat>
Iterates over all available formats to select the best format.
f should compare (x, y) and return the preferred format.
Sourcepub fn get_stream_handle_with_format_size_and_fps(
&'a self,
format: FrameFormat,
width: u32,
height: u32,
fps: u32,
) -> Result<StreamHandle<'a>>
pub fn get_stream_handle_with_format_size_and_fps( &'a self, format: FrameFormat, width: u32, height: u32, fps: u32, ) -> Result<StreamHandle<'a>>
Creates a stream handle
Sourcepub fn get_stream_handle_with_format(
&'a self,
format: StreamFormat,
) -> Result<StreamHandle<'a>>
pub fn get_stream_handle_with_format( &'a self, format: StreamFormat, ) -> Result<StreamHandle<'a>>
Creates a stream handle
Trait Implementations§
Source§impl<'a> Debug for DeviceHandle<'a>
impl<'a> Debug for DeviceHandle<'a>
Source§impl<'a> Drop for DeviceHandle<'a>
impl<'a> Drop for DeviceHandle<'a>
impl<'a> Send for DeviceHandle<'a>
impl<'a> Sync for DeviceHandle<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeviceHandle<'a>
impl<'a> RefUnwindSafe for DeviceHandle<'a>
impl<'a> Unpin for DeviceHandle<'a>
impl<'a> UnwindSafe for DeviceHandle<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more