pub trait TeaclaveStorage: Send + Sync + 'static {
    fn get<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn put<'life0, 'async_trait>(
        &'life0 self,
        request: Request<PutRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn delete<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DeleteRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn enqueue<'life0, 'async_trait>(
        &'life0 self,
        request: Request<EnqueueRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn dequeue<'life0, 'async_trait>(
        &'life0 self,
        request: Request<DequeueRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<DequeueResponse>, Status>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; fn get_keys_by_prefix<'life0, 'async_trait>(
        &'life0 self,
        request: Request<GetKeysByPrefixRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetKeysByPrefixResponse>, 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 TeaclaveStorageServer.

Required Methods

Implementors