pub struct CameraState {
pub controls: Vec<(CameraControl, ControlRange)>,
pub autos: Vec<(AutoToggle, AutoState)>,
}Expand description
Everything the controls UI needs, read in a single device-open: each supported control’s range and each supported auto toggle’s state.
Fields§
§controls: Vec<(CameraControl, ControlRange)>§autos: Vec<(AutoToggle, AutoState)>Trait Implementations§
Source§impl Clone for CameraState
impl Clone for CameraState
Source§fn clone(&self) -> CameraState
fn clone(&self) -> CameraState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CameraState
impl Debug for CameraState
Source§impl Default for CameraState
impl Default for CameraState
Source§fn default() -> CameraState
fn default() -> CameraState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CameraState
impl RefUnwindSafe for CameraState
impl Send for CameraState
impl Sync for CameraState
impl Unpin for CameraState
impl UnsafeUnpin for CameraState
impl UnwindSafe for CameraState
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