1 | //! Unix-specific networking functionality. |
2 | |
3 | #![allow (irrefutable_let_patterns)] |
4 | #![stable (feature = "unix_socket" , since = "1.10.0" )] |
5 | |
6 | mod addr; |
7 | #[doc (cfg(any(target_os = "android" , target_os = "linux" )))] |
8 | #[cfg (any(doc, target_os = "android" , target_os = "linux" ))] |
9 | mod ancillary; |
10 | mod datagram; |
11 | mod listener; |
12 | mod stream; |
13 | #[cfg (all(test, not(target_os = "emscripten" )))] |
14 | mod tests; |
15 | #[cfg (any( |
16 | target_os = "android" , |
17 | target_os = "linux" , |
18 | target_os = "dragonfly" , |
19 | target_os = "freebsd" , |
20 | target_os = "ios" , |
21 | target_os = "tvos" , |
22 | target_os = "watchos" , |
23 | target_os = "visionos" , |
24 | target_os = "macos" , |
25 | target_os = "netbsd" , |
26 | target_os = "openbsd" , |
27 | target_os = "nto" , |
28 | ))] |
29 | mod ucred; |
30 | |
31 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
32 | pub use self::addr::*; |
33 | #[cfg (any(doc, target_os = "android" , target_os = "linux" ))] |
34 | #[unstable (feature = "unix_socket_ancillary_data" , issue = "76915" )] |
35 | pub use self::ancillary::*; |
36 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
37 | pub use self::datagram::*; |
38 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
39 | pub use self::listener::*; |
40 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
41 | pub use self::stream::*; |
42 | #[cfg (any( |
43 | target_os = "android" , |
44 | target_os = "linux" , |
45 | target_os = "dragonfly" , |
46 | target_os = "freebsd" , |
47 | target_os = "ios" , |
48 | target_os = "tvos" , |
49 | target_os = "watchos" , |
50 | target_os = "visionos" , |
51 | target_os = "macos" , |
52 | target_os = "netbsd" , |
53 | target_os = "openbsd" , |
54 | target_os = "nto" , |
55 | ))] |
56 | #[unstable (feature = "peer_credentials_unix_socket" , issue = "42839" , reason = "unstable" )] |
57 | pub use self::ucred::*; |
58 | |