#[repr(C, packed)]
pub union _LEAP_CONNECTION_MESSAGE__bindgen_ty_1 {
Show 19 fields
pub pointer: *const c_void,
pub connection_event: *const LEAP_CONNECTION_EVENT,
pub connection_lost_event: *const LEAP_CONNECTION_LOST_EVENT,
pub device_event: *const LEAP_DEVICE_EVENT,
pub device_status_change_event: *const LEAP_DEVICE_STATUS_CHANGE_EVENT,
pub policy_event: *const LEAP_POLICY_EVENT,
pub device_failure_event: *const LEAP_DEVICE_FAILURE_EVENT,
pub tracking_event: *const LEAP_TRACKING_EVENT,
pub tracking_mode_event: *const LEAP_TRACKING_MODE_EVENT,
pub log_event: *const LEAP_LOG_EVENT,
pub log_events: *const LEAP_LOG_EVENTS,
pub config_response_event: *const LEAP_CONFIG_RESPONSE_EVENT,
pub config_change_event: *const LEAP_CONFIG_CHANGE_EVENT,
pub dropped_frame_event: *const LEAP_DROPPED_FRAME_EVENT,
pub image_event: *const LEAP_IMAGE_EVENT,
pub point_mapping_change_event: *const LEAP_POINT_MAPPING_CHANGE_EVENT,
pub head_pose_event: *const LEAP_HEAD_POSE_EVENT,
pub eye_event: *const LEAP_EYE_EVENT,
pub imu_event: *const LEAP_IMU_EVENT,
}
Expand description
A pointer to the event data for the current type of message. @since 3.0.0
Fields
pointer: *const c_void
An untyped pointer. @since 3.0.0
connection_event: *const LEAP_CONNECTION_EVENT
A connection message. @since 3.0.0
connection_lost_event: *const LEAP_CONNECTION_LOST_EVENT
A connection lost. @since 3.0.0
device_event: *const LEAP_DEVICE_EVENT
A device detected message. @since 3.0.0
device_status_change_event: *const LEAP_DEVICE_STATUS_CHANGE_EVENT
A device’s status has changed. @since 3.1.3
policy_event: *const LEAP_POLICY_EVENT
A policy message. @since 3.0.0
device_failure_event: *const LEAP_DEVICE_FAILURE_EVENT
A device failure message. @since 3.0.0
tracking_event: *const LEAP_TRACKING_EVENT
A tracking message. @since 3.0.0
tracking_mode_event: *const LEAP_TRACKING_MODE_EVENT
A tracking mode message. @since 5.0.0
log_event: *const LEAP_LOG_EVENT
A log message. @since 3.0.0
log_events: *const LEAP_LOG_EVENTS
A log messages. @since 4.0.0
config_response_event: *const LEAP_CONFIG_RESPONSE_EVENT
A get config value message. @since 3.0.0
config_change_event: *const LEAP_CONFIG_CHANGE_EVENT
A set config value message. @since 3.0.0
dropped_frame_event: *const LEAP_DROPPED_FRAME_EVENT
image_event: *const LEAP_IMAGE_EVENT
A streaming image message. @since 4.0.0
point_mapping_change_event: *const LEAP_POINT_MAPPING_CHANGE_EVENT
A point mapping message. @since 4.0.0
head_pose_event: *const LEAP_HEAD_POSE_EVENT
A head pose message. @since 4.1.0
eye_event: *const LEAP_EYE_EVENT
An eye positions message for both the left and right eyes. @since 4.1.0
imu_event: *const LEAP_IMU_EVENT
An IMU message. @since 4.1.0
Trait Implementations
sourceimpl Clone for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
impl Clone for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
sourcefn clone(&self) -> _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
fn clone(&self) -> _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
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
impl Copy for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
Auto Trait Implementations
impl RefUnwindSafe for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
impl !Send for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
impl !Sync for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
impl Unpin for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
impl UnwindSafe for _LEAP_CONNECTION_MESSAGE__bindgen_ty_1
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