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> PartialEq for Endpoint<'a>
[src]
fn eq(&self, __arg_0: &Endpoint<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Endpoint<'a>) -> bool
This method tests for !=
.
impl<'a> Eq for Endpoint<'a>
[src]
impl<'a> Debug for Endpoint<'a>
[src]
impl<'a> Copy for Endpoint<'a>
[src]
impl<'a> Clone for 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
Performs copy-assignment from source
. Read more