Trait mz_persist_client::internal::service::proto_persist_pub_sub_server::ProtoPersistPubSub
source · pub trait ProtoPersistPubSub:
Send
+ Sync
+ 'static {
type PubSubStream: Stream<Item = Result<ProtoPubSubMessage, Status>> + Send + 'static;
// Required method
fn pub_sub<'life0, 'async_trait>(
&'life0 self,
request: Request<Streaming<ProtoPubSubMessage>>,
) -> Pin<Box<dyn Future<Output = Result<Response<Self::PubSubStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
Generated trait containing gRPC methods that should be implemented for use with ProtoPersistPubSubServer.
Required Associated Types§
sourcetype PubSubStream: Stream<Item = Result<ProtoPubSubMessage, Status>> + Send + 'static
type PubSubStream: Stream<Item = Result<ProtoPubSubMessage, Status>> + Send + 'static
Server streaming response type for the PubSub method.