Trait StreamService

Source
pub trait StreamService:
    Send
    + Sync
    + 'static {
    type StreamingControlStreamStream: Stream<Item = Result<StreamingControlStreamResponse, Status>> + Send + 'static;

    // Required methods
    fn streaming_control_stream<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Streaming<StreamingControlStreamRequest>>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamingControlStreamStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_min_uncommitted_sst_id<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetMinUncommittedSstIdRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetMinUncommittedSstIdResponse>, 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 StreamServiceServer.

Required Associated Types§

Source

type StreamingControlStreamStream: Stream<Item = Result<StreamingControlStreamResponse, Status>> + Send + 'static

Server streaming response type for the StreamingControlStream method.

Required Methods§

Source

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

Source

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

Implementors§