std/os/unix/net/
mod.rs

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