AliasReader

Trait AliasReader 

Source
pub trait AliasReader:
    Send
    + Sync
    + 'static {
    // Required methods
    fn lookup<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Alias>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Id>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn primary_alias<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Id>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<Alias>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn aliases<'life0, 'async_trait>(
        &'life0 self,
        request: Request<Id>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<AliasList>, 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 AliasReaderServer.

Required Methods§

Source

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

Source

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

Source

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

Implementors§