sui_network::state_sync

Trait StateSync

Source
pub trait StateSync:
    Send
    + Sync
    + 'static {
    // Required methods
    fn push_checkpoint_summary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CertifiedCheckpointSummary>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_checkpoint_summary<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetCheckpointSummaryRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Option<CertifiedCheckpointSummary>>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_checkpoint_contents<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CheckpointContentsDigest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Option<FullCheckpointContents>>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_checkpoint_availability<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetCheckpointAvailabilityResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing RPC methods that should be implemented for use with StateSyncServer.

Required Methods§

Source

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

Source

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

Source

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

Source

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

Implementors§