Skip to main content

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