Skip to main content

FetchDnsResolver

Trait FetchDnsResolver 

Source
pub trait FetchDnsResolver:
    Debug
    + Send
    + Sync {
    // Required method
    fn resolve(
        &self,
        host: &str,
        cancellation: CancellationScope,
    ) -> FetchResolveFuture<'_>;
}
Expand description

DNS resolver port used so security tests can supply deterministic answers.

Required Methods§

Source

fn resolve( &self, host: &str, cancellation: CancellationScope, ) -> FetchResolveFuture<'_>

Resolves every A/AAAA answer for one validated host.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§