Trait dns_resolver::Resolver

source ·
pub trait Resolver: Send + Sync + 'static {
    // Required method
    fn resolve<'life0, 'async_trait>(
        &'life0 self,
        name: Name,
        rrtype: RecordType,
    ) -> Pin<Box<dyn Future<Output = Result<Answer>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided method
    fn resolve_txt<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Answer>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

source

fn resolve<'life0, 'async_trait>( &'life0 self, name: Name, rrtype: RecordType, ) -> Pin<Box<dyn Future<Output = Result<Answer>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

source

fn resolve_txt<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Answer>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§