pub trait Database:
Send
+ Sync
+ 'static {
// Required methods
fn get_block_reference<'life0, 'async_trait>(
&'life0 self,
request: Request<EmptyMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockReference>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_dynamic_properties<'life0, 'async_trait>(
&'life0 self,
request: Request<EmptyMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<DynamicProperties>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_now_block<'life0, 'async_trait>(
&'life0 self,
request: Request<EmptyMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<Block>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_block_by_num<'life0, 'async_trait>(
&'life0 self,
request: Request<NumberMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<Block>, 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 DatabaseServer.
Required Methods§
Sourcefn get_block_reference<'life0, 'async_trait>(
&'life0 self,
request: Request<EmptyMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockReference>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_block_reference<'life0, 'async_trait>(
&'life0 self,
request: Request<EmptyMessage>,
) -> Pin<Box<dyn Future<Output = Result<Response<BlockReference>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
for tapos