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§
Sourcefn 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_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
Sourcefn 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,
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