#[repr(C, packed(1))]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: u32The size of this message struct. @since 3.0.0
type_: eLeapEventTypeThe message type. @since 3.0.0
__bindgen_anon_1: _LEAP_CONNECTION_MESSAGE__bindgen_ty_1§device_id: u32A 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§
Source§impl Clone for _LEAP_CONNECTION_MESSAGE
impl Clone for _LEAP_CONNECTION_MESSAGE
Source§fn clone(&self) -> _LEAP_CONNECTION_MESSAGE
fn clone(&self) -> _LEAP_CONNECTION_MESSAGE
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for _LEAP_CONNECTION_MESSAGE
Auto Trait Implementations§
impl Freeze for _LEAP_CONNECTION_MESSAGE
impl RefUnwindSafe for _LEAP_CONNECTION_MESSAGE
impl !Send for _LEAP_CONNECTION_MESSAGE
impl !Sync for _LEAP_CONNECTION_MESSAGE
impl Unpin for _LEAP_CONNECTION_MESSAGE
impl UnwindSafe for _LEAP_CONNECTION_MESSAGE
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more