| 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 = "netbsd" , |
| 21 | target_os = "openbsd" , |
| 22 | target_os = "nto" , |
| 23 | target_vendor = "apple" , |
| 24 | target_os = "cygwin" |
| 25 | ))] |
| 26 | mod ucred; |
| 27 | |
| 28 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
| 29 | pub use self::addr::*; |
| 30 | #[cfg (any(doc, target_os = "android" , target_os = "linux" ))] |
| 31 | #[unstable (feature = "unix_socket_ancillary_data" , issue = "76915" )] |
| 32 | pub use self::ancillary::*; |
| 33 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
| 34 | pub use self::datagram::*; |
| 35 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
| 36 | pub use self::listener::*; |
| 37 | #[stable (feature = "unix_socket" , since = "1.10.0" )] |
| 38 | pub use self::stream::*; |
| 39 | #[cfg (any( |
| 40 | target_os = "android" , |
| 41 | target_os = "linux" , |
| 42 | target_os = "dragonfly" , |
| 43 | target_os = "freebsd" , |
| 44 | target_os = "netbsd" , |
| 45 | target_os = "openbsd" , |
| 46 | target_os = "nto" , |
| 47 | target_vendor = "apple" , |
| 48 | target_os = "cygwin" , |
| 49 | ))] |
| 50 | #[unstable (feature = "peer_credentials_unix_socket" , issue = "42839" , reason = "unstable" )] |
| 51 | pub use self::ucred::*; |
| 52 | |