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