diff --git a/tonic/src/transport/server/mod.rs b/tonic/src/transport/server/mod.rs index 2ac31f14c..5a9c1c85a 100644 --- a/tonic/src/transport/server/mod.rs +++ b/tonic/src/transport/server/mod.rs @@ -645,8 +645,10 @@ impl Router { .await } - /// Consume this [`Server`] creating a future that will execute the server on - /// the provided incoming stream of `AsyncRead + AsyncWrite`. + /// Consume this [`Server`] creating a future that will execute the server + /// on the provided incoming stream of `AsyncRead + AsyncWrite`. + /// + /// This method discards any provided [`Server`] TCP configuration. /// /// [`Server`]: struct.Server.html pub async fn serve_with_incoming( @@ -674,11 +676,13 @@ impl Router { .await } - /// Consume this [`Server`] creating a future that will execute the server on - /// the provided incoming stream of `AsyncRead + AsyncWrite`. Similar to + /// Consume this [`Server`] creating a future that will execute the server + /// on the provided incoming stream of `AsyncRead + AsyncWrite`. Similar to /// `serve_with_shutdown` this method will also take a signal future to /// gracefully shutdown the server. /// + /// This method discards any provided [`Server`] TCP configuration. + /// /// [`Server`]: struct.Server.html pub async fn serve_with_incoming_shutdown( self,