Struct libcamera::camera::CameraConfiguration
source · pub struct CameraConfiguration { /* private fields */ }
Expand description
Camera configuration.
Contains StreamConfigurationRef for each stream used by the camera.
Implementations§
source§impl CameraConfiguration
impl CameraConfiguration
sourcepub fn get(&self, index: usize) -> Option<Immutable<StreamConfigurationRef<'_>>>
pub fn get(&self, index: usize) -> Option<Immutable<StreamConfigurationRef<'_>>>
Returns immutable StreamConfigurationRef for the camera stream.
§Parameters
index
- Camera stream index.
sourcepub fn get_mut(&mut self, index: usize) -> Option<StreamConfigurationRef<'_>>
pub fn get_mut(&mut self, index: usize) -> Option<StreamConfigurationRef<'_>>
Returns mutable StreamConfigurationRef for the camera stream.
§Parameters
index
- Camera stream index.
sourcepub fn validate(&mut self) -> CameraConfigurationStatus
pub fn validate(&mut self) -> CameraConfigurationStatus
Validates camera configuration.
Trait Implementations§
source§impl Debug for CameraConfiguration
impl Debug for CameraConfiguration
Auto Trait Implementations§
impl Freeze for CameraConfiguration
impl RefUnwindSafe for CameraConfiguration
impl !Send for CameraConfiguration
impl !Sync for CameraConfiguration
impl Unpin for CameraConfiguration
impl UnwindSafe for CameraConfiguration
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