Expand description
Serves a crate::subnet::rpc::database::Database
over over RPC.
Fields§
§inner: Arc<RwLock<Box<dyn Database + Send + Sync>>>
Implementations§
Trait Implementations§
source§impl Database for Server
impl Database for Server
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,
Auto Trait Implementations§
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl !UnwindSafe for Server
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request