1 pub type GattCharacteristic
= *mut ::core
::ffi
::c_void
;
2 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
4 pub struct GattCharacteristicProperties(pub u32);
5 impl GattCharacteristicProperties
{
6 pub const None
: Self = Self(0u32);
7 pub const Broadcast
: Self = Self(1u32);
8 pub const Read
: Self = Self(2u32);
9 pub const WriteWithoutResponse
: Self = Self(4u32);
10 pub const Write
: Self = Self(8u32);
11 pub const Notify
: Self = Self(16u32);
12 pub const Indicate
: Self = Self(32u32);
13 pub const AuthenticatedSignedWrites
: Self = Self(64u32);
14 pub const ExtendedProperties
: Self = Self(128u32);
15 pub const ReliableWrites
: Self = Self(256u32);
16 pub const WritableAuxiliaries
: Self = Self(512u32);
18 impl ::core
::marker
::Copy
for GattCharacteristicProperties {}
19 impl ::core
::clone
::Clone
for GattCharacteristicProperties
{
20 fn clone(&self) -> Self {
24 pub type GattCharacteristicsResult
= *mut ::core
::ffi
::c_void
;
25 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
27 pub struct GattClientCharacteristicConfigurationDescriptorValue(pub i32);
28 impl GattClientCharacteristicConfigurationDescriptorValue
{
29 pub const None
: Self = Self(0i32);
30 pub const Notify
: Self = Self(1i32);
31 pub const Indicate
: Self = Self(2i32);
33 impl ::core
::marker
::Copy
for GattClientCharacteristicConfigurationDescriptorValue {}
34 impl ::core
::clone
::Clone
for GattClientCharacteristicConfigurationDescriptorValue
{
35 fn clone(&self) -> Self {
39 pub type GattClientNotificationResult
= *mut ::core
::ffi
::c_void
;
40 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
42 pub struct GattCommunicationStatus(pub i32);
43 impl GattCommunicationStatus
{
44 pub const Success
: Self = Self(0i32);
45 pub const Unreachable
: Self = Self(1i32);
46 pub const ProtocolError
: Self = Self(2i32);
47 pub const AccessDenied
: Self = Self(3i32);
49 impl ::core
::marker
::Copy
for GattCommunicationStatus {}
50 impl ::core
::clone
::Clone
for GattCommunicationStatus
{
51 fn clone(&self) -> Self {
55 pub type GattDescriptor
= *mut ::core
::ffi
::c_void
;
56 pub type GattDescriptorsResult
= *mut ::core
::ffi
::c_void
;
57 pub type GattDeviceService
= *mut ::core
::ffi
::c_void
;
58 pub type GattDeviceServicesResult
= *mut ::core
::ffi
::c_void
;
59 pub type GattLocalCharacteristic
= *mut ::core
::ffi
::c_void
;
60 pub type GattLocalCharacteristicParameters
= *mut ::core
::ffi
::c_void
;
61 pub type GattLocalCharacteristicResult
= *mut ::core
::ffi
::c_void
;
62 pub type GattLocalDescriptor
= *mut ::core
::ffi
::c_void
;
63 pub type GattLocalDescriptorParameters
= *mut ::core
::ffi
::c_void
;
64 pub type GattLocalDescriptorResult
= *mut ::core
::ffi
::c_void
;
65 pub type GattLocalService
= *mut ::core
::ffi
::c_void
;
66 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
68 pub struct GattOpenStatus(pub i32);
70 pub const Unspecified
: Self = Self(0i32);
71 pub const Success
: Self = Self(1i32);
72 pub const AlreadyOpened
: Self = Self(2i32);
73 pub const NotFound
: Self = Self(3i32);
74 pub const SharingViolation
: Self = Self(4i32);
75 pub const AccessDenied
: Self = Self(5i32);
77 impl ::core
::marker
::Copy
for GattOpenStatus {}
78 impl ::core
::clone
::Clone
for GattOpenStatus
{
79 fn clone(&self) -> Self {
83 pub type GattPresentationFormat
= *mut ::core
::ffi
::c_void
;
84 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
86 pub struct GattProtectionLevel(pub i32);
87 impl GattProtectionLevel
{
88 pub const Plain
: Self = Self(0i32);
89 pub const AuthenticationRequired
: Self = Self(1i32);
90 pub const EncryptionRequired
: Self = Self(2i32);
91 pub const EncryptionAndAuthenticationRequired
: Self = Self(3i32);
93 impl ::core
::marker
::Copy
for GattProtectionLevel {}
94 impl ::core
::clone
::Clone
for GattProtectionLevel
{
95 fn clone(&self) -> Self {
99 pub type GattReadClientCharacteristicConfigurationDescriptorResult
= *mut ::core
::ffi
::c_void
;
100 pub type GattReadRequest
= *mut ::core
::ffi
::c_void
;
101 pub type GattReadRequestedEventArgs
= *mut ::core
::ffi
::c_void
;
102 pub type GattReadResult
= *mut ::core
::ffi
::c_void
;
103 pub type GattReliableWriteTransaction
= *mut ::core
::ffi
::c_void
;
104 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
106 pub struct GattRequestState(pub i32);
107 impl GattRequestState
{
108 pub const Pending
: Self = Self(0i32);
109 pub const Completed
: Self = Self(1i32);
110 pub const Canceled
: Self = Self(2i32);
112 impl ::core
::marker
::Copy
for GattRequestState {}
113 impl ::core
::clone
::Clone
for GattRequestState
{
114 fn clone(&self) -> Self {
118 pub type GattRequestStateChangedEventArgs
= *mut ::core
::ffi
::c_void
;
119 pub type GattServiceProvider
= *mut ::core
::ffi
::c_void
;
120 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
122 pub struct GattServiceProviderAdvertisementStatus(pub i32);
123 impl GattServiceProviderAdvertisementStatus
{
124 pub const Created
: Self = Self(0i32);
125 pub const Stopped
: Self = Self(1i32);
126 pub const Started
: Self = Self(2i32);
127 pub const Aborted
: Self = Self(3i32);
128 pub const StartedWithoutAllAdvertisementData
: Self = Self(4i32);
130 impl ::core
::marker
::Copy
for GattServiceProviderAdvertisementStatus {}
131 impl ::core
::clone
::Clone
for GattServiceProviderAdvertisementStatus
{
132 fn clone(&self) -> Self {
136 pub type GattServiceProviderAdvertisementStatusChangedEventArgs
= *mut ::core
::ffi
::c_void
;
137 pub type GattServiceProviderAdvertisingParameters
= *mut ::core
::ffi
::c_void
;
138 pub type GattServiceProviderResult
= *mut ::core
::ffi
::c_void
;
139 pub type GattSession
= *mut ::core
::ffi
::c_void
;
140 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
142 pub struct GattSessionStatus(pub i32);
143 impl GattSessionStatus
{
144 pub const Closed
: Self = Self(0i32);
145 pub const Active
: Self = Self(1i32);
147 impl ::core
::marker
::Copy
for GattSessionStatus {}
148 impl ::core
::clone
::Clone
for GattSessionStatus
{
149 fn clone(&self) -> Self {
153 pub type GattSessionStatusChangedEventArgs
= *mut ::core
::ffi
::c_void
;
154 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
156 pub struct GattSharingMode(pub i32);
157 impl GattSharingMode
{
158 pub const Unspecified
: Self = Self(0i32);
159 pub const Exclusive
: Self = Self(1i32);
160 pub const SharedReadOnly
: Self = Self(2i32);
161 pub const SharedReadAndWrite
: Self = Self(3i32);
163 impl ::core
::marker
::Copy
for GattSharingMode {}
164 impl ::core
::clone
::Clone
for GattSharingMode
{
165 fn clone(&self) -> Self {
169 pub type GattSubscribedClient
= *mut ::core
::ffi
::c_void
;
170 pub type GattValueChangedEventArgs
= *mut ::core
::ffi
::c_void
;
171 #[doc = "*Required features: `\"Devices_Bluetooth_GenericAttributeProfile\"`*"]
173 pub struct GattWriteOption(pub i32);
174 impl GattWriteOption
{
175 pub const WriteWithResponse
: Self = Self(0i32);
176 pub const WriteWithoutResponse
: Self = Self(1i32);
178 impl ::core
::marker
::Copy
for GattWriteOption {}
179 impl ::core
::clone
::Clone
for GattWriteOption
{
180 fn clone(&self) -> Self {
184 pub type GattWriteRequest
= *mut ::core
::ffi
::c_void
;
185 pub type GattWriteRequestedEventArgs
= *mut ::core
::ffi
::c_void
;
186 pub type GattWriteResult
= *mut ::core
::ffi
::c_void
;