Struct vidi::pipelines::AcquiredCamera
source · pub struct AcquiredCamera(CameraId, Arc<dyn CameraImpl>);
Tuple Fields§
§0: CameraId
§1: Arc<dyn CameraImpl>
Implementations§
source§impl AcquiredCamera
impl AcquiredCamera
sourcepub fn get_id(&self) -> &str
pub fn get_id(&self) -> &str
Returns globally unique, camera ID, stable for this device and for this software version (ideally for all software versions).
sourcepub fn start<'b>(
&'b mut self,
config: Config,
buffer_count: usize,
) -> Result<Stream<Stream>, Error>
pub fn start<'b>( &'b mut self, config: Config, buffer_count: usize, ) -> Result<Stream<Stream>, Error>
Starts recording from the camera
sourcepub fn start_manual(
&mut self,
config: Config,
buffer_count: usize,
) -> Result<Stream<StreamManual>, Error>
pub fn start_manual( &mut self, config: Config, buffer_count: usize, ) -> Result<Stream<StreamManual>, Error>
Starts recording from the camera with manual buffer management
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