doc(transport): improve connect_with_connector doc (#432)
Co-authored-by: Lucio Franco <[email protected]>
This commit is contained in:
co-authored by
Lucio Franco
parent
37f6733f85
commit
bec4936daf
@@ -234,6 +234,10 @@ impl Endpoint {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Connect with a custom connector.
|
/// 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<C>(&self, connector: C) -> Result<Channel, Error>
|
pub async fn connect_with_connector<C>(&self, connector: C) -> Result<Channel, Error>
|
||||||
where
|
where
|
||||||
C: MakeConnection<Uri> + Send + 'static,
|
C: MakeConnection<Uri> + Send + 'static,
|
||||||
|
|||||||
Reference in New Issue
Block a user