pub struct OutwardRightCam { /* private fields */ }
Expand description

Right-side outward camera representation.

Trait Implementations§

source§

impl Camera for OutwardRightCam

source§

fn camera_as_raw(&self) -> u32_

Returns the raw value of the selected camera.
source§

fn view_size(&self) -> ViewSize

Returns view size of the selected camera. Read more
source§

fn port_as_raw(&self) -> u32_

Returns the raw port of the selected camera.
source§

fn is_busy(&self) -> Result<bool>

Returns true if the camera is busy (receiving data). Read more
source§

fn final_byte_length(&self) -> usize

Returns the maximum amount of bytes the final image will occupy in memory based on the view size, trimming, pixel depth and other modifications set to the camera. Read more
source§

fn final_view_size(&self) -> (i16, i16)

Returns the dimensions of the final image based on the view size, trimming and other modifications set to the camera. Read more
source§

fn trimming(&self) -> Trimming

Returns the Trimming configuration currently set.
source§

fn set_trimming(&mut self, trimming: Trimming) -> Result<()>

Set trimming bounds to trim the camera photo. Read more
source§

fn is_trimming(&self) -> bool

Returns whether or not trimming is currently enabled for the camera.
source§

fn set_exposure(&mut self, exposure: i8) -> Result<()>

Set the exposure level of the camera.
source§

fn set_white_balance(&mut self, white_balance: WhiteBalance) -> Result<()>

Set the white balance of the camera.
source§

fn set_sharpness(&mut self, sharpness: i8) -> Result<()>

Set the sharpness of the camera.
source§

fn set_auto_exposure(&mut self, enabled: bool) -> Result<()>

Set whether auto exposure is enabled or disabled for the camera.
source§

fn is_auto_exposure_enabled(&self) -> Result<bool>

Returns true if auto exposure is enabled for the camera.
source§

fn flip_image(&mut self, flip: FlipMode) -> Result<()>

Set the flip mode of the camera’s image.
source§

fn set_view_size(&mut self, size: ViewSize) -> Result<()>

Set the view size of the camera. Read more
source§

fn set_frame_rate(&mut self, frame_rate: FrameRate) -> Result<()>

Set the frame rate of the camera.
source§

fn set_photo_mode(&mut self, photo_mode: PhotoMode) -> Result<()>

Set the photo mode of the camera.
source§

fn set_effect(&mut self, effect: Effect) -> Result<()>

Set the effect of the camera. Read more
source§

fn set_contrast(&mut self, contrast: Contrast) -> Result<()>

Set the contrast of the camera.
source§

fn set_lens_correction(&mut self, lens_correction: LensCorrection) -> Result<()>

Set the lens correction of the camera.
source§

fn set_output_format(&mut self, format: OutputFormat) -> Result<()>

Set the output format of the camera.
source§

fn set_auto_exposure_window( &mut self, x: i16, y: i16, width: i16, height: i16 ) -> Result<()>

Set the region in which auto exposure should be based on. Read more
source§

fn set_auto_white_balance_window( &mut self, x: i16, y: i16, width: i16, height: i16 ) -> Result<()>

Set the region in which auto white balance should be based on. Read more
source§

fn set_noise_filter(&mut self, enabled: bool) -> Result<()>

Set whether the noise filter should be enabled or disabled for the camera.
source§

fn set_image_quality_calibration( &mut self, data: ImageQualityCalibration ) -> Result<()>

Set the ImageQualityCalibration for the camera.
source§

fn image_quality_calibration(&self) -> Result<ImageQualityCalibration>

Returns the current ImageQualityCalibration for the camera.
source§

fn take_picture(&mut self, buffer: &mut [u8], timeout: Duration) -> Result<()>

Request the camera to take a picture and write it in a buffer. Read more

Auto Trait Implementations§

§

impl RefUnwindSafe for OutwardRightCam

§

impl Send for OutwardRightCam

§

impl Sync for OutwardRightCam

§

impl Unpin for OutwardRightCam

§

impl UnwindSafe for OutwardRightCam

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.