]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys-0.28.0/src/Windows/Devices/SerialCommunication/mod.rs
New upstream version 1.64.0+dfsg1
[rustc.git] / vendor / windows-sys-0.28.0 / src / Windows / Devices / SerialCommunication / mod.rs
1 #![allow(non_snake_case, non_camel_case_types, non_upper_case_globals, clashing_extern_declarations, clippy::all)]
2 #[link(name = "windows")]
3 extern "system" {}
4 pub type ErrorReceivedEventArgs = *mut ::core::ffi::c_void;
5 pub type PinChangedEventArgs = *mut ::core::ffi::c_void;
6 pub type SerialDevice = *mut ::core::ffi::c_void;
7 #[repr(transparent)]
8 pub struct SerialError(pub i32);
9 impl SerialError {
10 pub const Frame: Self = Self(0i32);
11 pub const BufferOverrun: Self = Self(1i32);
12 pub const ReceiveFull: Self = Self(2i32);
13 pub const ReceiveParity: Self = Self(3i32);
14 pub const TransmitFull: Self = Self(4i32);
15 }
16 impl ::core::marker::Copy for SerialError {}
17 impl ::core::clone::Clone for SerialError {
18 fn clone(&self) -> Self {
19 *self
20 }
21 }
22 #[repr(transparent)]
23 pub struct SerialHandshake(pub i32);
24 impl SerialHandshake {
25 pub const None: Self = Self(0i32);
26 pub const RequestToSend: Self = Self(1i32);
27 pub const XOnXOff: Self = Self(2i32);
28 pub const RequestToSendXOnXOff: Self = Self(3i32);
29 }
30 impl ::core::marker::Copy for SerialHandshake {}
31 impl ::core::clone::Clone for SerialHandshake {
32 fn clone(&self) -> Self {
33 *self
34 }
35 }
36 #[repr(transparent)]
37 pub struct SerialParity(pub i32);
38 impl SerialParity {
39 pub const None: Self = Self(0i32);
40 pub const Odd: Self = Self(1i32);
41 pub const Even: Self = Self(2i32);
42 pub const Mark: Self = Self(3i32);
43 pub const Space: Self = Self(4i32);
44 }
45 impl ::core::marker::Copy for SerialParity {}
46 impl ::core::clone::Clone for SerialParity {
47 fn clone(&self) -> Self {
48 *self
49 }
50 }
51 #[repr(transparent)]
52 pub struct SerialPinChange(pub i32);
53 impl SerialPinChange {
54 pub const BreakSignal: Self = Self(0i32);
55 pub const CarrierDetect: Self = Self(1i32);
56 pub const ClearToSend: Self = Self(2i32);
57 pub const DataSetReady: Self = Self(3i32);
58 pub const RingIndicator: Self = Self(4i32);
59 }
60 impl ::core::marker::Copy for SerialPinChange {}
61 impl ::core::clone::Clone for SerialPinChange {
62 fn clone(&self) -> Self {
63 *self
64 }
65 }
66 #[repr(transparent)]
67 pub struct SerialStopBitCount(pub i32);
68 impl SerialStopBitCount {
69 pub const One: Self = Self(0i32);
70 pub const OnePointFive: Self = Self(1i32);
71 pub const Two: Self = Self(2i32);
72 }
73 impl ::core::marker::Copy for SerialStopBitCount {}
74 impl ::core::clone::Clone for SerialStopBitCount {
75 fn clone(&self) -> Self {
76 *self
77 }
78 }