[][src]Struct leap_sys::_LEAP_DEVICE_REF

#[repr(C, packed)]pub struct _LEAP_DEVICE_REF {
    pub handle: *mut c_void,
    pub id: u32,
}

\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_void

An opaque handle. @since 3.0.0

id: u32

a generic identifier. @since 3.0.0

Trait Implementations

impl Clone for _LEAP_DEVICE_REF[src]

impl Copy for _LEAP_DEVICE_REF[src]

impl Debug for _LEAP_DEVICE_REF[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.