Trait tokio_dns::ToEndpoint [] [src]

pub trait ToEndpoint<'a> {
    fn to_endpoint(self) -> Result<Endpoint<'a>>;
}

A trait for objects that can be converted into an Endpoint.

This trait is implemented for the following types:

This trait is similar to the ToSocketAddrs trait, except that it does not perform host name resolution.

Required Methods

fn to_endpoint(self) -> Result<Endpoint<'a>>

Create an endpoint from this object.

Implementors