#[repr(C, packed)]
pub struct _LEAP_DEVICE_INFO { pub size: u32, pub status: u32, pub caps: u32, pub pid: eLeapDevicePID, pub baseline: u32, pub serial_length: u32, pub serial: *mut c_char, pub h_fov: f32, pub v_fov: f32, pub range: u32, }
Expand description

\ingroup Structs Properties of a Leap device. Get a LEAP_DEVICE_INFO by calling LeapGetDeviceInfo() with the handle for device. The device must be open. @since 3.0.0

Fields

size: u32

Size of this structure. @since 3.0.0

status: u32

A combination of eLeapDeviceStatus flags. @since 3.0.0

caps: u32

A combination of eLeapDeviceCaps flags. @since 3.0.0

pid: eLeapDevicePID

One of the eLeapDevicePID members. @since 3.0.0

baseline: u32

The device baseline, in micrometers.

The baseline is defined as the distance between the center axis of each lens in a stereo camera system. For other camera systems, this value is set to zero. @since 3.0.0

serial_length: u32

The required length of the serial number char buffer including the null character. @since 3.0.0

serial: *mut c_char

A pointer to the null-terminated device serial number string. @since 3.0.0

h_fov: f32

The horizontal field of view of this device in radians. @since 3.0.0

v_fov: f32

The vertical field of view of this device in radians. @since 3.0.0

range: u32

The maximum range for this device, in micrometers. @since 3.0.0

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.