From bec4936dafad7a85e33858b43993b6c073a26dba Mon Sep 17 00:00:00 2001 From: Ximo Guanter Date: Thu, 20 Aug 2020 22:14:35 +0200 Subject: [PATCH] doc(transport): improve connect_with_connector doc (#432) Co-authored-by: Lucio Franco --- tonic/src/transport/channel/endpoint.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tonic/src/transport/channel/endpoint.rs b/tonic/src/transport/channel/endpoint.rs index c2bcf16..da0d2c2 100644 --- a/tonic/src/transport/channel/endpoint.rs +++ b/tonic/src/transport/channel/endpoint.rs @@ -234,6 +234,10 @@ impl Endpoint { } /// Connect with a custom connector. + /// + /// This allows you to build a [Channel](struct.Channel.html) that uses a non-HTTP transport. + /// See the `uds` example for an example on how to use this function to build channel that + /// uses a Unix socket transport. pub async fn connect_with_connector(&self, connector: C) -> Result where C: MakeConnection + Send + 'static,