Enum tokio_dns::Endpoint[][src]

pub enum Endpoint<'a> {
    Host(&'a stru16),
    SocketAddr(SocketAddr),
}

An Endpoint is a way of identifying the target of a connection.

It can be a socket address or a host name which needs to be resolved into a list of IP addresses.

Variants

Endpoint is a host.

The &str is the name and the u16 is the port.

Endpoint is a SocketAddr.

Trait Implementations

impl<'a> Clone for Endpoint<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Copy for Endpoint<'a>
[src]

impl<'a> Debug for Endpoint<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Eq for Endpoint<'a>
[src]

impl<'a> PartialEq for Endpoint<'a>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl<'a> Send for Endpoint<'a>

impl<'a> Sync for Endpoint<'a>