Struct abstract_ns::ip_list::IpList [] [src]

pub struct IpList(_);

IpList is a wrapper type around Vec<IpAddr> which serves the same role as the Address but for resolving hostnames (or A records) instead of services (i.e. host:port pairs or SRV records)

Similarlty to Address this type can be cloned cheaply

Methods

impl IpList
[src]

[src]

Select one random address to connect to

This function selects a random address from the list of addresses or None if list is empty.

[src]

Iterate over IP addresses in the list

[src]

Create an Address object by attaching the specified to all addresses

[src]

Parse a list of strings and put it into an ip_list

This is mostly useful for unit tests

Trait Implementations

impl Debug for IpList
[src]

[src]

Formats the value using the given formatter.

impl Clone for IpList
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for IpList
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for IpList
[src]

impl<'a> IntoIterator for &'a IpList
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl From<Vec<IpAddr>> for IpList
[src]

[src]

Performs the conversion.

impl FromIterator<IpAddr> for IpList
[src]

[src]

Creates a value from an iterator. Read more