diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-09-23 17:14:51 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-09-29 10:24:54 +0200 |
| commit | 97333f8c9a0f774cc8d0025bbc51848e1f60427d (patch) | |
| tree | 8fe2a48d16ac84930947e2055aafdb27240847bc /library/std/src/net/mod.rs | |
| parent | af1b14bb9b1b3d301c1e8e0a989d814deaf054c9 (diff) | |
| download | rust-97333f8c9a0f774cc8d0025bbc51848e1f60427d.tar.gz rust-97333f8c9a0f774cc8d0025bbc51848e1f60427d.zip | |
std: implement `hostname`
Diffstat (limited to 'library/std/src/net/mod.rs')
| -rw-r--r-- | library/std/src/net/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/library/std/src/net/mod.rs b/library/std/src/net/mod.rs index 40f1a93e39d..3e4447eb33f 100644 --- a/library/std/src/net/mod.rs +++ b/library/std/src/net/mod.rs @@ -1,7 +1,8 @@ //! Networking primitives for TCP/UDP communication. //! //! This module provides networking functionality for the Transmission Control and User -//! Datagram Protocols, as well as types for IP and socket addresses. +//! Datagram Protocols, as well as types for IP and socket addresses and functions related +//! to network properties. //! //! # Organization //! @@ -24,6 +25,8 @@ #[stable(feature = "rust1", since = "1.0.0")] pub use core::net::AddrParseError; +#[unstable(feature = "gethostname", issue = "135142")] +pub use self::hostname::hostname; #[stable(feature = "rust1", since = "1.0.0")] pub use self::ip_addr::{IpAddr, Ipv4Addr, Ipv6Addr, Ipv6MulticastScope}; #[stable(feature = "rust1", since = "1.0.0")] @@ -35,6 +38,7 @@ pub use self::tcp::{Incoming, TcpListener, TcpStream}; #[stable(feature = "rust1", since = "1.0.0")] pub use self::udp::UdpSocket; +mod hostname; mod ip_addr; mod socket_addr; mod tcp; |
