Trait ConsistentService
pub trait ConsistentService:
Send
+ Sync
+ 'static {
// Required methods
fn available_range<'life0, 'async_trait>(
&'life0 self,
request: Request<AvailableRangeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AvailableRangeResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn batch_get_balances<'life0, 'async_trait>(
&'life0 self,
request: Request<BatchGetBalancesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<BatchGetBalancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get_balance<'life0, 'async_trait>(
&'life0 self,
request: Request<GetBalanceRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<Balance>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_balances<'life0, 'async_trait>(
&'life0 self,
request: Request<ListBalancesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListBalancesResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_objects_by_type<'life0, 'async_trait>(
&'life0 self,
request: Request<ListObjectsByTypeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListObjectsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_owned_objects<'life0, 'async_trait>(
&'life0 self,
request: Request<ListOwnedObjectsRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ListObjectsResponse>, Status>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn service_config<'life0, 'async_trait>(
&'life0 self,
request: Request<ServiceConfigRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ServiceConfigResponse>, 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 ConsistentServiceServer.