@@ -47,7 +47,7 @@ impl Pool {
4747
4848 /// Add a specific [`net::SocketAddr`] to the pool.
4949 ///
50- /// # AmbientAuthority
50+ /// # Ambient Authority
5151 ///
5252 /// This function allows ambient access to any IP address.
5353 pub fn insert_socket_addr (
@@ -96,7 +96,7 @@ impl Pool {
9696
9797 /// Add a range of network addresses with a specific port to the pool.
9898 ///
99- /// # AmbientAuthority
99+ /// # Ambient Authority
100100 ///
101101 /// This function allows ambient access to any IP address.
102102 pub fn insert_ip_net (
@@ -112,6 +112,7 @@ impl Pool {
112112 /// address.
113113 ///
114114 /// This corresponds to [`std::net::TcpListener::bind`].
115+ #[ doc( alias = "bind" ) ]
115116 #[ inline]
116117 pub fn bind_tcp_listener < A : ToSocketAddrs > ( & self , addr : A ) -> io:: Result < TcpListener > {
117118 let addrs = addr. to_socket_addrs ( ) ?;
@@ -134,6 +135,7 @@ impl Pool {
134135 /// Opens a TCP connection to a remote host.
135136 ///
136137 /// This corresponds to [`std::net::TcpStream::connect`].
138+ #[ doc( alias = "connect" ) ]
137139 #[ inline]
138140 pub fn connect_tcp_stream < A : ToSocketAddrs > ( & self , addr : A ) -> io:: Result < TcpStream > {
139141 let addrs = addr. to_socket_addrs ( ) ?;
@@ -156,6 +158,7 @@ impl Pool {
156158 /// Opens a TCP connection to a remote host with a timeout.
157159 ///
158160 /// This corresponds to [`std::net::TcpStream::connect_timeout`].
161+ #[ doc( alias = "connect" ) ]
159162 #[ inline]
160163 pub fn connect_timeout_tcp_stream (
161164 & self ,
@@ -170,6 +173,7 @@ impl Pool {
170173 /// Creates a UDP socket from the given address.
171174 ///
172175 /// This corresponds to [`std::net::UdpSocket::bind`].
176+ #[ doc( alias = "bind" ) ]
173177 #[ inline]
174178 pub fn bind_udp_socket < A : ToSocketAddrs > ( & self , addr : A ) -> io:: Result < UdpSocket > {
175179 let addrs = addr. to_socket_addrs ( ) ?;
@@ -192,6 +196,7 @@ impl Pool {
192196 /// number of bytes written.
193197 ///
194198 /// This corresponds to [`std::net::UdpSocket::send_to`].
199+ #[ doc( alias = "send_to" ) ]
195200 #[ inline]
196201 pub fn send_to_udp_socket_addr < A : ToSocketAddrs > (
197202 & self ,
@@ -212,6 +217,7 @@ impl Pool {
212217 /// only receive data from the specified address.
213218 ///
214219 /// This corresponds to [`std::net::UdpSocket::connect`].
220+ #[ doc( alias = "connect" ) ]
215221 #[ inline]
216222 pub fn connect_udp_socket < A : ToSocketAddrs > (
217223 & self ,
0 commit comments