leaprs/
connection_status.rs

1use leap_sys::*;
2use num_enum::{FromPrimitive, IntoPrimitive};
3
4#[derive(Debug, Clone, Copy, Eq, PartialEq, IntoPrimitive, FromPrimitive)]
5#[repr(i32)]
6#[doc = " The connection status codes."]
7#[doc = " These codes can be read from the LEAP_CONNECTION_INFO struct created by"]
8#[doc = " a call to LeapGetConnectionInfo()."]
9#[doc = " @since 3.0.0"]
10pub enum ConnectionStatus {
11    #[doc = " The connection is not open."]
12    #[doc = " Call LeapOpenConnection() to open a connection to the Ultraleap Tracking Service."]
13    #[doc = " @since 3.0.0"]
14    NotConnected = _eLeapConnectionStatus_eLeapConnectionStatus_NotConnected,
15    #[doc = " The connection is open."]
16    #[doc = " @since 3.0.0"]
17    Connected = _eLeapConnectionStatus_eLeapConnectionStatus_Connected,
18    #[doc = " Opening the connection is underway, but not complete."]
19    #[doc = " @since 3.0.0"]
20    HandshakeIncomplete = _eLeapConnectionStatus_eLeapConnectionStatus_HandshakeIncomplete,
21    #[doc = " The connection could not be opened because the Ultraleap Tracking Service does not"]
22    #[doc = " appear to be running."]
23    #[doc = " @since 3.0.0"]
24    NotRunning = _eLeapConnectionStatus_eLeapConnectionStatus_NotRunning,
25    #[num_enum(default)]
26    Unknown,
27}