Fix connect with connector lazy
This commit is contained in:
@@ -336,10 +336,12 @@ impl Endpoint {
|
|||||||
|
|
||||||
/// Connect with a custom connector lazily.
|
/// Connect with a custom connector lazily.
|
||||||
///
|
///
|
||||||
/// This allows you to build a [Channel](struct.Channel.html) that uses a non-HTTP transport.
|
/// This allows you to build a [Channel](struct.Channel.html) that uses a non-HTTP transport
|
||||||
|
/// connec to it lazily.
|
||||||
|
///
|
||||||
/// See the `uds` example for an example on how to use this function to build channel that
|
/// See the `uds` example for an example on how to use this function to build channel that
|
||||||
/// uses a Unix socket transport.
|
/// uses a Unix socket transport.
|
||||||
pub async fn connect_with_connector_lazy<C>(&self, connector: C) -> Result<Channel, Error>
|
pub fn connect_with_connector_lazy<C>(&self, connector: C) -> Result<Channel, Error>
|
||||||
where
|
where
|
||||||
C: MakeConnection<Uri> + Send + 'static,
|
C: MakeConnection<Uri> + Send + 'static,
|
||||||
C::Connection: Unpin + Send + 'static,
|
C::Connection: Unpin + Send + 'static,
|
||||||
|
|||||||
Reference in New Issue
Block a user