diff --git a/tonic/src/transport/channel/endpoint.rs b/tonic/src/transport/channel/endpoint.rs index c2bcf16db..da0d2c291 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,