dns_resolver

Trait Resolver

source
pub trait Resolver:
    Send
    + Sync
    + 'static {
    // Required methods
    fn resolve_ip<'life0, 'life1, 'async_trait>(
        &'life0 self,
        host: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<IpAddr>, DnsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn resolve_mx<'life0, 'life1, 'async_trait>(
        &'life0 self,
        host: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Name>, DnsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn resolve_ptr<'life0, 'async_trait>(
        &'life0 self,
        ip: IpAddr,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Name>, DnsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn resolve<'life0, 'async_trait>(
        &'life0 self,
        name: Name,
        rrtype: RecordType,
    ) -> Pin<Box<dyn Future<Output = Result<Answer, DnsError>> + 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, DnsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}

Required Methods§

source

fn resolve_ip<'life0, 'life1, 'async_trait>( &'life0 self, host: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<IpAddr>, DnsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn resolve_mx<'life0, 'life1, 'async_trait>( &'life0 self, host: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Name>, DnsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn resolve_ptr<'life0, 'async_trait>( &'life0 self, ip: IpAddr, ) -> Pin<Box<dyn Future<Output = Result<Vec<Name>, DnsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

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

Implementors§