Trait NameService

Source
pub trait NameService:
    Send
    + Sync
    + 'static {
    // Required methods
    fn lookup_name<'life0, 'async_trait>(
        &'life0 self,
        request: Request<LookupNameRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<LookupNameResponse>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn reverse_lookup_name<'life0, 'async_trait>(
        &'life0 self,
        request: Request<ReverseLookupNameRequest>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<ReverseLookupNameResponse>, 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 NameServiceServer.

Required Methods§

Source

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

Source

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

Implementors§