Skip to main content

Resolved

Type Alias Resolved 

Source
pub type Resolved<'a> = Pin<Box<dyn Future<Output = Result<Vec<SocketAddr>, Error>> + Send + 'a>>;
Expand description

The future a Resolver returns.

Boxed, because a resolver is held as a trait object in configuration and async fn in a trait is not dyn-compatible. One allocation per dial, on a path that is already doing a DNS round trip.

Aliased Typeยง

#[repr(transparent)]
pub struct Resolved<'a> { /* private fields */ }