blob: 396ae490569ba2637a93b02e847f2d3ab34ddf74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
pub type CustomDevice = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Devices_Custom\"`*"]
#[repr(transparent)]
pub struct DeviceAccessMode(pub i32);
impl DeviceAccessMode {
pub const Read: Self = Self(0i32);
pub const Write: Self = Self(1i32);
pub const ReadWrite: Self = Self(2i32);
}
impl ::core::marker::Copy for DeviceAccessMode {}
impl ::core::clone::Clone for DeviceAccessMode {
fn clone(&self) -> Self {
*self
}
}
#[doc = "*Required features: `\"Devices_Custom\"`*"]
#[repr(transparent)]
pub struct DeviceSharingMode(pub i32);
impl DeviceSharingMode {
pub const Shared: Self = Self(0i32);
pub const Exclusive: Self = Self(1i32);
}
impl ::core::marker::Copy for DeviceSharingMode {}
impl ::core::clone::Clone for DeviceSharingMode {
fn clone(&self) -> Self {
*self
}
}
pub type IIOControlCode = *mut ::core::ffi::c_void;
#[doc = "*Required features: `\"Devices_Custom\"`*"]
#[repr(transparent)]
pub struct IOControlAccessMode(pub i32);
impl IOControlAccessMode {
pub const Any: Self = Self(0i32);
pub const Read: Self = Self(1i32);
pub const Write: Self = Self(2i32);
pub const ReadWrite: Self = Self(3i32);
}
impl ::core::marker::Copy for IOControlAccessMode {}
impl ::core::clone::Clone for IOControlAccessMode {
fn clone(&self) -> Self {
*self
}
}
#[doc = "*Required features: `\"Devices_Custom\"`*"]
#[repr(transparent)]
pub struct IOControlBufferingMethod(pub i32);
impl IOControlBufferingMethod {
pub const Buffered: Self = Self(0i32);
pub const DirectInput: Self = Self(1i32);
pub const DirectOutput: Self = Self(2i32);
pub const Neither: Self = Self(3i32);
}
impl ::core::marker::Copy for IOControlBufferingMethod {}
impl ::core::clone::Clone for IOControlBufferingMethod {
fn clone(&self) -> Self {
*self
}
}
pub type IOControlCode = *mut ::core::ffi::c_void;
|