#[repr(C, packed)]
pub struct _LEAP_CONNECTION_MESSAGE { pub size: u32, pub type_: eLeapEventType, pub __bindgen_anon_1: _LEAP_CONNECTION_MESSAGE__bindgen_ty_1, pub device_id: u32, }
Expand description

\ingroup Structs Defines a basic message from the LeapC message queue. Set by calling LeapPollConnection(). @since 3.0.0

Fields

size: u32

The size of this message struct. @since 3.0.0

type_: eLeapEventType

The message type. @since 3.0.0

__bindgen_anon_1: _LEAP_CONNECTION_MESSAGE__bindgen_ty_1device_id: u32

A unique ID for the attached device that sent this message. A value of 0 indicates that it was a system-wide message, and not device specific. Use this ID to distinguish messages sent from multiple attached devices. @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.