Enum tokio_dns::Endpoint [−][src]
pub enum Endpoint<'a> { Host(&'a str, u16), 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
Host(&'a str, u16)
Endpoint is a host.
The &str
is the name and the u16
is the port.
SocketAddr(SocketAddr)
Endpoint is a SocketAddr
.
Trait Implementations
impl<'a> Clone for Endpoint<'a>
[src]
impl<'a> Clone for Endpoint<'a>
fn clone(&self) -> Endpoint<'a>
[src]
fn clone(&self) -> Endpoint<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<'a> Copy for Endpoint<'a>
[src]
impl<'a> Copy for Endpoint<'a>
impl<'a> Debug for Endpoint<'a>
[src]
impl<'a> Debug for Endpoint<'a>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<'a> Eq for Endpoint<'a>
[src]
impl<'a> Eq for Endpoint<'a>
impl<'a> PartialEq for Endpoint<'a>
[src]
impl<'a> PartialEq for Endpoint<'a>