Trait reth_dns_discovery::resolver::Resolver

source ·
pub trait Resolver:
    Send
    + Sync
    + Unpin
    + 'static {
    // Required method
    fn lookup_txt(
        &self,
        query: &str,
    ) -> impl Future<Output = Option<String>> + Send;
}
Expand description

A type that can lookup DNS entries

Required Methods§

source

fn lookup_txt(&self, query: &str) -> impl Future<Output = Option<String>> + Send

Performs a textual lookup and returns the first text

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<P: ConnectionProvider> Resolver for AsyncResolver<P>

source§

async fn lookup_txt(&self, query: &str) -> Option<String>

Implementors§