Trait mz_dataflow_types::client::grpc::BidiProtoClient
source · [−]pub trait BidiProtoClient {
type ProtoCommand;
type ProtoResponse;
fn connect<'async_trait>(
addr: String
) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where
Self: Sized,
Self: 'async_trait;
fn create_stream<'life0, 'async_trait>(
&'life0 mut self,
rx: UnboundedReceiver<Self::ProtoCommand>
) -> Pin<Box<dyn Future<Output = Result<Streaming<Self::ProtoResponse>, Error>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: 'async_trait;
}
Expand description
Encapsulates the core functionality of a prost client for a bidirectional stream.
The implementations for this trait MUST be identical minus the types