Trait CheckpointService

Source
pub trait CheckpointService:
    Send
    + Sync
    + 'static {
    type StreamCheckpointsStream: Stream<Item = Result<Checkpoint, Status>> + Send + 'static;

    // Required methods
    fn stream_checkpoints<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckpointStreamRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Self::StreamCheckpointsStream>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_epoch_first_checkpoint_sequence_number<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EpochRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<CheckpointSequenceNumberResponse>, 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 CheckpointServiceServer.

Required Associated Types§

Source

type StreamCheckpointsStream: Stream<Item = Result<Checkpoint, Status>> + Send + 'static

Server streaming response type for the StreamCheckpoints method.

Required Methods§

Source

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

Checkpoint operations

Source

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

Implementors§