leaprs 0.2.2

Safe wrapper for the LeapC Ultraleap (Leap Motion) hand tracking device API.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use derive_deref::Deref;
use leap_sys::LEAP_CONNECTION_LOST_EVENT;

#[doc = " Received from LeapPollConnection() when a connection to the Ultraleap Tracking Service is lost."]
#[doc = ""]
#[doc = " If a LeapC function that performs a transaction with the Ultraleap Tracking Service is called"]
#[doc = " after the connection is lost, the next call to LeapPollConnection() will return"]
#[doc = " this event. Otherwise, it can take up to 5 seconds of polling the connection to"]
#[doc = " receive this event."]
#[doc = " @since 3.0.0"]
/// # Fields
/// Available via dereference: [LEAP_CONNECTION_LOST_EVENT].
#[derive(Deref, Clone, Copy)]
pub struct ConnectionLostEventRef<'a>(pub(crate) &'a LEAP_CONNECTION_LOST_EVENT);

// No impl for now, only reserved fields.