#[repr(C, packed(1))]pub struct _LEAP_DEVICE_REF {
pub handle: *mut c_void,
pub id: u32,
}Expand description
\ingroup Structs A reference to a Leap device.
Get a LEAP_DEVICE_REF by calling LeapGetDeviceList(). Access a device by calling LeapOpenDevice() with this reference. LeapOpenDevice() provides a LEAP_DEVICE struct, which is a handle to an open device.
Fields§
§handle: *mut c_voidAn opaque handle. @since 3.0.0
id: u32a generic identifier. @since 3.0.0
Trait Implementations§
Source§impl Clone for _LEAP_DEVICE_REF
impl Clone for _LEAP_DEVICE_REF
Source§fn clone(&self) -> _LEAP_DEVICE_REF
fn clone(&self) -> _LEAP_DEVICE_REF
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 moreSource§impl Debug for _LEAP_DEVICE_REF
impl Debug for _LEAP_DEVICE_REF
impl Copy for _LEAP_DEVICE_REF
Auto Trait Implementations§
impl Freeze for _LEAP_DEVICE_REF
impl RefUnwindSafe for _LEAP_DEVICE_REF
impl !Send for _LEAP_DEVICE_REF
impl !Sync for _LEAP_DEVICE_REF
impl Unpin for _LEAP_DEVICE_REF
impl UnwindSafe for _LEAP_DEVICE_REF
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