]>
git.proxmox.com Git - rustc.git/blob - 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")]
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
;
8 pub struct SerialError(pub i32);
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);
16 impl ::core
::marker
::Copy
for SerialError {}
17 impl ::core
::clone
::Clone
for SerialError
{
18 fn clone(&self) -> Self {
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);
30 impl ::core
::marker
::Copy
for SerialHandshake {}
31 impl ::core
::clone
::Clone
for SerialHandshake
{
32 fn clone(&self) -> Self {
37 pub struct SerialParity(pub i32);
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);
45 impl ::core
::marker
::Copy
for SerialParity {}
46 impl ::core
::clone
::Clone
for SerialParity
{
47 fn clone(&self) -> Self {
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);
60 impl ::core
::marker
::Copy
for SerialPinChange {}
61 impl ::core
::clone
::Clone
for SerialPinChange
{
62 fn clone(&self) -> Self {
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);
73 impl ::core
::marker
::Copy
for SerialStopBitCount {}
74 impl ::core
::clone
::Clone
for SerialStopBitCount
{
75 fn clone(&self) -> Self {