pub trait StoreService:
Send
+ Sync
+ 'static {
// Required methods
fn get_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_state<'life0, 'async_trait>(
&'life0 self,
request: Request<()>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetStateResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMetadataRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetMetadataResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Expand description
Generated trait containing gRPC methods that should be implemented for use with StoreServiceServer.
Required Methods§
Sourcefn get_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_block<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBlockRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetBlockResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
GetBlock returns a block by height or hash
Sourcefn get_state<'life0, 'async_trait>(
&'life0 self,
request: Request<()>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetStateResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_state<'life0, 'async_trait>(
&'life0 self,
request: Request<()>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetStateResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
GetState returns the current state
Sourcefn get_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMetadataRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetMetadataResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn get_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<GetMetadataRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<GetMetadataResponse>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
GetMetadata returns metadata for a specific key