TapService

Trait TapService 

Source
pub trait TapService:
    Send
    + Sync
    + 'static {
    type SubscribeRunStream: Stream<Item = Result<SubscribeRunResponse, Status>> + Send + 'static;

    // Required methods
    fn subscribe_run<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<SubscribeRunRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeRunStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn query_events<'life0, 'async_trait>(
        &'life0 self,
        request: Request<QueryEventsRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<QueryEventsResponse>, 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 TapServiceServer.

Required Associated Types§

Source

type SubscribeRunStream: Stream<Item = Result<SubscribeRunResponse, Status>> + Send + 'static

Server streaming response type for the SubscribeRun method.

Required Methods§

Source

fn subscribe_run<'life0, 'async_trait>( &'life0 self, request: Request<Streaming<SubscribeRunRequest>>, ) -> Pin<Box<dyn Future<Output = Result<Response<Self::SubscribeRunStream>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn query_events<'life0, 'async_trait>( &'life0 self, request: Request<QueryEventsRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<QueryEventsResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§