Struct leap_sys::_LEAP_CONNECTION_MESSAGE
source · [−]#[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_1
device_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
sourceimpl Clone for _LEAP_CONNECTION_MESSAGE
impl Clone for _LEAP_CONNECTION_MESSAGE
sourcefn clone(&self) -> _LEAP_CONNECTION_MESSAGE
fn clone(&self) -> _LEAP_CONNECTION_MESSAGE
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
Auto Trait Implementations
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
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