pub struct AcquiredCamera(/* private fields */);
Expand description
A representation of a camera that is ready to stream or streaming.
It may be modified even as the stream is running:
- controls may be set
- dynamic links may be changed
Implementations§
Source§impl AcquiredCamera
impl AcquiredCamera
Sourcepub fn get_id(&self) -> &CameraId
pub fn get_id(&self) -> &CameraId
Returns globally unique, camera ID, stable for this device and for this software version (ideally for all software versions).
pub fn _video_capture_device(&self) -> &Device
Sourcepub fn query_controls(&self) -> Result<Vec<Description>, Error>
pub fn query_controls(&self) -> Result<Vec<Description>, Error>
Returns the camera controls.
Sourcepub fn control(&self, control: &Description) -> Result<Control>
pub fn control(&self, control: &Description) -> Result<Control>
Reads the current value of the control.
Sourcepub fn set_control(&self, control: Control) -> Result<()>
pub fn set_control(&self, control: Control) -> Result<()>
Sets the value of the control. May take effect after some frames.
Sourcepub fn start<'b>(
&'b mut self,
config: DeviceConfig,
buffer_count: usize,
) -> TracedResult<Stream<Stream>, Error>
pub fn start<'b>( &'b mut self, config: DeviceConfig, buffer_count: usize, ) -> TracedResult<Stream<Stream>, Error>
Starts recording from the camera
Sourcepub fn start_manual(
&mut self,
config: DeviceConfig,
buffer_count: usize,
) -> TracedResult<Stream<StreamManual>, Error>
pub fn start_manual( &mut self, config: DeviceConfig, buffer_count: usize, ) -> TracedResult<Stream<StreamManual>, Error>
Starts recording from the camera with manual buffer management
Sourcepub fn create_configs_database<T: Database>(&mut self) -> Result<T>
pub fn create_configs_database<T: Database>(&mut self) -> Result<T>
Returns a database of supported configs.
pub fn get_supported_configs(&mut self) -> Result<ConfigsDatabase>
Auto Trait Implementations§
impl Freeze for AcquiredCamera
impl !RefUnwindSafe for AcquiredCamera
impl Send for AcquiredCamera
impl Sync for AcquiredCamera
impl Unpin for AcquiredCamera
impl !UnwindSafe for AcquiredCamera
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