pub struct ColorFrame { /* private fields */ }Implementations§
Source§impl ColorFrame
impl ColorFrame
pub fn get_frame_description(&self) -> Result<FrameDescription, Error>
pub fn get_raw_color_image_format(&self) -> Result<ColorImageFormat, Error>
pub fn copy_raw_frame_data_to_array( &self, frame_data: &mut [u8], ) -> Result<(), Error>
pub fn access_raw_underlying_buffer(&self) -> Result<&[u8], Error>
pub fn copy_converted_frame_data_to_array( &self, frame_data: &mut [u8], color_format: ColorImageFormat, ) -> Result<(), Error>
pub fn create_frame_description( &self, format: ColorImageFormat, ) -> Result<FrameDescription, Error>
pub fn get_color_camera_settings(&self) -> Result<ColorCameraSettings, Error>
pub fn get_relative_time(&self) -> Result<TIMESPAN, Error>
pub fn get_color_frame_source(&self) -> Result<ColorFrameSource, Error>
Trait Implementations§
Source§impl Clone for ColorFrame
impl Clone for ColorFrame
Source§fn clone(&self) -> ColorFrame
fn clone(&self) -> ColorFrame
Returns a duplicate of the value. Read more
1.0.0 · 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 ColorFrame
impl Debug for ColorFrame
Auto Trait Implementations§
impl Freeze for ColorFrame
impl RefUnwindSafe for ColorFrame
impl !Send for ColorFrame
impl !Sync for ColorFrame
impl Unpin for ColorFrame
impl UnwindSafe for ColorFrame
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