Skip to main content

Lookup

Trait Lookup 

Source
pub trait Lookup:
    Send
    + Sync
    + 'static {
    // Required method
    fn lookup(
        &self,
        host: &str,
    ) -> impl Future<Output = Result<Vec<IpAddr>>> + Send;
}
Expand description

Turns a host name into IP addresses.

Required Methods§

Source

fn lookup(&self, host: &str) -> impl Future<Output = Result<Vec<IpAddr>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§