Enum libcamera::properties::Location
source · #[repr(i32)]pub enum Location {
CameraFront = 0,
CameraBack = 1,
CameraExternal = 2,
}
Expand description
Camera mounting location
Variants§
CameraFront = 0
The camera is mounted on the front side of the device, facing the user
CameraBack = 1
The camera is mounted on the back side of the device, facing away from the user
CameraExternal = 2
The camera is attached to the device in a way that allows it to be moved freely
Trait Implementations§
source§impl From<Location> for ControlValue
impl From<Location> for ControlValue
source§impl TryFrom<ControlValue> for Location
impl TryFrom<ControlValue> for Location
source§type Error = ControlValueError
type Error = ControlValueError
The type returned in the event of a conversion error.
impl Copy for Location
impl Eq for Location
impl Property for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)