[][src]Struct azure_kinect::device::Device

pub struct Device<'a> { /* fields omitted */ }

Implementations

impl<'_> Device<'_>[src]

pub fn start_cameras(
    &self,
    configuration: &k4a_device_configuration_t
) -> Result<Camera, Error>
[src]

Starts the K4A device's cameras

pub fn get_serialnum(&self) -> Result<String, Error>[src]

Get the K4A device serial number

pub fn get_color_control(
    &self,
    command: k4a_color_control_command_t
) -> Result<(k4a_color_control_mode_t, i32), Error>
[src]

Get the K4A color sensor control value

pub fn set_color_control(
    &self,
    command: k4a_color_control_command_t,
    mode: k4a_color_control_mode_t,
    value: i32
) -> Result<(), Error>
[src]

Set the K4A color sensor control value

pub fn get_color_control_capabilities(
    &self,
    command: k4a_color_control_command_t
) -> Result<ColorControlCapabilities, Error>
[src]

pub fn get_raw_calibration(&self) -> Result<Vec<u8>, Error>[src]

Get the raw calibration blob for the entire K4A device.

pub fn get_calibration(
    &self,
    depth_mode: k4a_depth_mode_t,
    color_resolution: k4a_color_resolution_t
) -> Result<Calibration, Error>
[src]

Get the camera calibration for the entire K4A device, which is used for all transformation functions.

pub fn is_sync_connected(&self) -> Result<(bool, bool), Error>[src]

Get the device jack status for the synchronization connectors

pub fn is_sync_in_connected(&self) -> Result<bool, Error>[src]

Get the device jack status for the synchronization in connector

pub fn is_sync_out_connected(&self) -> Result<bool, Error>[src]

Get the device jack status for the synchronization out connector

pub fn get_version(&self) -> Result<k4a_hardware_version_t, Error>[src]

Get the version numbers of the K4A subsystems' firmware

Trait Implementations

impl<'_> Drop for Device<'_>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Device<'a>

impl<'a> !Send for Device<'a>

impl<'a> !Sync for Device<'a>

impl<'a> Unpin for Device<'a>

impl<'a> !UnwindSafe for Device<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.