]> git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Networking/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Networking / mod.rs
1 #[cfg(feature = "Networking_BackgroundTransfer")]
2 pub mod BackgroundTransfer;
3 #[cfg(feature = "Networking_Connectivity")]
4 pub mod Connectivity;
5 #[cfg(feature = "Networking_NetworkOperators")]
6 pub mod NetworkOperators;
7 #[cfg(feature = "Networking_Proximity")]
8 pub mod Proximity;
9 #[cfg(feature = "Networking_PushNotifications")]
10 pub mod PushNotifications;
11 #[cfg(feature = "Networking_ServiceDiscovery")]
12 pub mod ServiceDiscovery;
13 #[cfg(feature = "Networking_Sockets")]
14 pub mod Sockets;
15 #[cfg(feature = "Networking_Vpn")]
16 pub mod Vpn;
17 #[cfg(feature = "Networking_XboxLive")]
18 pub mod XboxLive;
19 #[doc = "*Required features: `\"Networking\"`*"]
20 #[repr(transparent)]
21 pub struct DomainNameType(pub i32);
22 impl DomainNameType {
23 pub const Suffix: Self = Self(0i32);
24 pub const FullyQualified: Self = Self(1i32);
25 }
26 impl ::core::marker::Copy for DomainNameType {}
27 impl ::core::clone::Clone for DomainNameType {
28 fn clone(&self) -> Self {
29 *self
30 }
31 }
32 pub type EndpointPair = *mut ::core::ffi::c_void;
33 pub type HostName = *mut ::core::ffi::c_void;
34 #[doc = "*Required features: `\"Networking\"`*"]
35 #[repr(transparent)]
36 pub struct HostNameSortOptions(pub u32);
37 impl HostNameSortOptions {
38 pub const None: Self = Self(0u32);
39 pub const OptimizeForLongConnections: Self = Self(2u32);
40 }
41 impl ::core::marker::Copy for HostNameSortOptions {}
42 impl ::core::clone::Clone for HostNameSortOptions {
43 fn clone(&self) -> Self {
44 *self
45 }
46 }
47 #[doc = "*Required features: `\"Networking\"`*"]
48 #[repr(transparent)]
49 pub struct HostNameType(pub i32);
50 impl HostNameType {
51 pub const DomainName: Self = Self(0i32);
52 pub const Ipv4: Self = Self(1i32);
53 pub const Ipv6: Self = Self(2i32);
54 pub const Bluetooth: Self = Self(3i32);
55 }
56 impl ::core::marker::Copy for HostNameType {}
57 impl ::core::clone::Clone for HostNameType {
58 fn clone(&self) -> Self {
59 *self
60 }
61 }