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§

source

type PubSubStream: Stream<Item = Result<ProtoPubSubMessage, Status>> + Send + 'static

Server streaming response type for the PubSub method.

Required Methods§

source

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,

Implementors§