pub trait ClientConnect<T>: Sized + Client<T>where
T: Send + Clone,{
fn connect<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: 'async_trait;
fn get_client<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Result<T, Status>> + Send + 'async_trait, Global>>
where
'life0: 'async_trait,
Self: Sync + 'async_trait,
{ ... }
}
Expand description
Generic gRPC Client trait to let the Client<T>
trait know that T
has a connect
function