pub trait Database: Send + Sync + 'static {
    fn has<'life0, 'async_trait>(
        &'life0 self,
        request: Request<HasRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<HasResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn put<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PutRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<PutResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<DeleteResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn compact<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CompactRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CompactResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn close<'life0, 'async_trait>(
        &'life0 self,
        request: Request<CloseRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<CloseResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn health_check<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Empty>
    ) -> Pin<Box<dyn Future<Output = Result<Response<HealthCheckResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn write_batch<'life0, 'async_trait>(
        &'life0 self,
        request: Request<WriteBatchRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<WriteBatchResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn new_iterator_with_start_and_prefix<'life0, 'async_trait>(
        &'life0 self,
        request: Request<NewIteratorWithStartAndPrefixRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<NewIteratorWithStartAndPrefixResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn iterator_next<'life0, 'async_trait>(
        &'life0 self,
        request: Request<IteratorNextRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<IteratorNextResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn iterator_error<'life0, 'async_trait>(
        &'life0 self,
        request: Request<IteratorErrorRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<IteratorErrorResponse>, Status>> + Send + 'async_trait>>
    where
        Self: 'async_trait,
        'life0: 'async_trait
; fn iterator_release<'life0, 'async_trait>(
        &'life0 self,
        request: Request<IteratorReleaseRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<IteratorReleaseResponse>, 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§

Implementors§