Skip to main content

DataService

Trait DataService 

Source
pub trait DataService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn get_namespace_proof<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetNamespaceProofRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetNamespaceProofResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_incorrect_encoding_proof<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetIncorrectEncodingProofRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<IncorrectEncodingProofResponse>, 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 DataServiceServer.

Required Methods§

Source

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

Get namespace proof(s) - handles both single block and range queries

Source

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

Get incorrect encoding proof for a block

Implementors§

Source§

impl<S> DataService for DataServiceImpl<S>
where S: DataApi + Send + Sync + 'static,