Struct ns_env_config::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 Clone for IpList
[src]

[src]

impl Eq for IpList
[src]

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

[src]

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

[src]

impl PartialEq<IpList> 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 Debug for IpList
[src]

[src]

Formats the value using the given formatter.

impl FromIterator<IpAddr> for IpList
[src]

[src]