Struct leap_sys::_LEAP_DEVICE_EVENT
source · [−]#[repr(C, packed)]pub struct _LEAP_DEVICE_EVENT {
pub flags: u32,
pub device: LEAP_DEVICE_REF,
pub status: u32,
}
Expand description
\ingroup Structs Device event information.
LeapPollConnection() produces a message containing this event when a new device is detected. You can use the handle provided by the device filed to open a device so that you can access its properties. @since 3.0.0
Fields
flags: u32
Reserved for future use. @since 3.0.0
device: LEAP_DEVICE_REF
The handle reference of to the newly attached device. @since 3.0.0
status: u32
The status of the connected device. A combination of flags from the eLeapDeviceStatus collection.
Trait Implementations
sourceimpl Clone for _LEAP_DEVICE_EVENT
impl Clone for _LEAP_DEVICE_EVENT
sourcefn clone(&self) -> _LEAP_DEVICE_EVENT
fn clone(&self) -> _LEAP_DEVICE_EVENT
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
sourceimpl Debug for _LEAP_DEVICE_EVENT
impl Debug for _LEAP_DEVICE_EVENT
impl Copy for _LEAP_DEVICE_EVENT
Auto Trait Implementations
impl RefUnwindSafe for _LEAP_DEVICE_EVENT
impl !Send for _LEAP_DEVICE_EVENT
impl !Sync for _LEAP_DEVICE_EVENT
impl Unpin for _LEAP_DEVICE_EVENT
impl UnwindSafe for _LEAP_DEVICE_EVENT
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