pub trait SubscriptionService:
Send
+ Sync
+ 'static {
// Provided method
fn subscribe_checkpoints<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCheckpointsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BoxStream<SubscribeCheckpointsResponse>>, 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 SubscriptionServiceServer.
Provided Methods§
Sourcefn subscribe_checkpoints<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCheckpointsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BoxStream<SubscribeCheckpointsResponse>>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn subscribe_checkpoints<'life0, 'async_trait>(
&'life0 self,
request: Request<SubscribeCheckpointsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BoxStream<SubscribeCheckpointsResponse>>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Subscribe to the stream of checkpoints.
This API provides a subscription to the checkpoint stream for the Sui blockchain. When a subscription is initialized the stream will begin with the latest executed checkpoint as seen by the server. Responses are guaranteed to return checkpoints in-order and without gaps. This enables clients to know exactly the last checkpoint they have processed and in the event the subscription terminates (either by the client/server or by the connection breaking), clients will be able to reinitialize a subscription and then leverage other APIs in order to request data for the checkpoints they missed.