docs(server): set doc_cfg attributes for tcp feature gated Server methods (#2401)
				
					
				
			This commit is contained in:
		| @@ -52,7 +52,9 @@ impl<I> Server<I, ()> { | ||||
|     } | ||||
| } | ||||
|  | ||||
| #[cfg(feature = "tcp")] | ||||
| cfg_feature! { | ||||
|     #![all(feature = "tcp")] | ||||
|  | ||||
|     impl Server<AddrIncoming, ()> { | ||||
|         /// Binds to the provided address, and returns a [`Builder`](Builder). | ||||
|         /// | ||||
| @@ -77,14 +79,18 @@ impl Server<AddrIncoming, ()> { | ||||
|             AddrIncoming::from_std(listener).map(Server::builder) | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| cfg_feature! { | ||||
|     #![all(feature = "tcp")] | ||||
|  | ||||
| #[cfg(feature = "tcp")] | ||||
|     impl<S, E> Server<AddrIncoming, S, E> { | ||||
|         /// Returns the local address that this server is bound to. | ||||
|         pub fn local_addr(&self) -> SocketAddr { | ||||
|             self.spawn_all.local_addr() | ||||
|         } | ||||
|     } | ||||
| } | ||||
|  | ||||
| impl<I, IO, IE, S, E, B> Server<I, S, E> | ||||
| where | ||||
|   | ||||
		Reference in New Issue
	
	Block a user