Struct libcamera::control::ControlList
source · pub struct ControlList(/* private fields */);
Implementations§
source§impl ControlList
impl ControlList
pub fn new() -> UniquePtr<Self>
pub fn get<C: Control>(&self) -> Result<C, ControlError>
sourcepub fn set<C: Control>(&mut self, val: C) -> Result<(), ControlError>
pub fn set<C: Control>(&mut self, val: C) -> Result<(), ControlError>
Sets control value.
This can fail if control is not supported by the camera, but due to libcamera API limitations an error will not be returned. Use ControlList::get if you need to ensure that value was set.
Trait Implementations§
source§impl Debug for ControlList
impl Debug for ControlList
source§impl<'d> IntoIterator for &'d ControlList
impl<'d> IntoIterator for &'d ControlList
Auto Trait Implementations§
impl Freeze for ControlList
impl RefUnwindSafe for ControlList
impl Send for ControlList
impl Sync for ControlList
impl Unpin for ControlList
impl UnwindSafe for ControlList
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