Skip to main content

HappyEyeballAddressResolverExt

Trait HappyEyeballAddressResolverExt 

pub trait HappyEyeballAddressResolverExt: HappyEyeballAddressResolverExtSeal {
    // Required method
    fn happy_eyeballs_resolver(
        &self,
        host: impl Into<Host>,
    ) -> HappyEyeballAddressResolver<'_, Self>;
}
Available on crate feature dns only.
Expand description

Extension trait to easily stream IP lookups using the Happy Eyeball algorithm

Required Methods§

fn happy_eyeballs_resolver( &self, host: impl Into<Host>, ) -> HappyEyeballAddressResolver<'_, Self>

Build a happy eyeballs address resolver using a reference to the current address resolver.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§