pub struct HickoryDnsResolver { /* private fields */ }Expand description
Hickory DNS implementation of the DnsResolver trait. Wraps hickory_resolver::TokioResolver for TXT record resolution.
Implementations§
Source§impl HickoryDnsResolver
impl HickoryDnsResolver
Sourcepub fn new(resolver: TokioResolver) -> Self
pub fn new(resolver: TokioResolver) -> Self
Creates a new HickoryDnsResolver with the given TokioResolver.
Sourcepub fn create_resolver(nameservers: &[IpAddr]) -> Self
pub fn create_resolver(nameservers: &[IpAddr]) -> Self
Creates a DNS resolver with custom or system nameservers. Uses custom nameservers if provided, otherwise system defaults.
Trait Implementations§
Source§impl Clone for HickoryDnsResolver
impl Clone for HickoryDnsResolver
Source§fn clone(&self) -> HickoryDnsResolver
fn clone(&self) -> HickoryDnsResolver
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl DnsResolver for HickoryDnsResolver
impl DnsResolver for HickoryDnsResolver
Source§fn resolve_txt<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ResolveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn resolve_txt<'life0, 'life1, 'async_trait>(
&'life0 self,
domain: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ResolveError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Resolves TXT records for a given domain name.
Returns a vector of strings representing the TXT record values.
Auto Trait Implementations§
impl Freeze for HickoryDnsResolver
impl !RefUnwindSafe for HickoryDnsResolver
impl Send for HickoryDnsResolver
impl Sync for HickoryDnsResolver
impl Unpin for HickoryDnsResolver
impl !UnwindSafe for HickoryDnsResolver
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more