PolarisServiceContractGrpc

Trait PolarisServiceContractGrpc 

Source
pub trait PolarisServiceContractGrpc:
    Send
    + Sync
    + 'static {
    // Required methods
    fn report_service_contract<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ServiceContract>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Response>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_service_contract<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ServiceContract>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Response>, 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 PolarisServiceContractGrpcServer.

Required Methods§

Source

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

上报服务契约

Source

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

查询服务契约

Implementors§