RaftClientService

Trait RaftClientService 

Source
pub trait RaftClientService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn handle_client_write<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ClientWriteRequest>,
    ) -> 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;
}
Expand description

Generated trait containing gRPC methods that should be implemented for use with RaftClientServiceServer.

Required Methods§

Source

fn handle_client_write<'life0, 'async_trait>( &'life0 self, request: Request<ClientWriteRequest>, ) -> Pin<Box<dyn Future<Output = Result<Response<ClientResponse>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

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,

Implementors§

Source§

impl<T> RaftClientService for Node<T>
where T: TypeConfig,