#[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_EVENTimage_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

Returns a copy of the value. Read more

Performs copy-assignment from source. 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.