pub trait RpcService:
Send
+ Sync
+ 'static {
// Required methods
fn request_vote<'life0, 'async_trait>(
&'life0 self,
request: Request<VoteRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<VoteResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn append_entries<'life0, 'async_trait>(
&'life0 self,
request: Request<AppendEntriesRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<AppendEntriesResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn update_cluster_conf<'life0, 'async_trait>(
&'life0 self,
request: Request<ClusteMembershipChangeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClusterConfUpdateResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_client_propose<'life0, 'async_trait>(
&'life0 self,
request: Request<ClientProposeRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn handle_client_read<'life0, 'async_trait>(
&'life0 self,
request: Request<ClientReadRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_cluster_metadata<'life0, 'async_trait>(
&'life0 self,
request: Request<MetadataRequest>,
) -> Pin<Box<dyn Future<Output = Result<Response<ClusterMembership>, 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 RpcServiceServer.