Struct leap_sys::_LEAP_DEVICE_INFO
source · [−]#[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
sourceimpl Clone for _LEAP_DEVICE_INFO
impl Clone for _LEAP_DEVICE_INFO
sourcefn clone(&self) -> _LEAP_DEVICE_INFO
fn clone(&self) -> _LEAP_DEVICE_INFO
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for _LEAP_DEVICE_INFO
impl Debug for _LEAP_DEVICE_INFO
impl Copy for _LEAP_DEVICE_INFO
Auto Trait Implementations
impl RefUnwindSafe for _LEAP_DEVICE_INFO
impl !Send for _LEAP_DEVICE_INFO
impl !Sync for _LEAP_DEVICE_INFO
impl Unpin for _LEAP_DEVICE_INFO
impl UnwindSafe for _LEAP_DEVICE_INFO
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more