Enum asyncio::ip::IpAddr [] [src]

pub enum IpAddr {
    V4(IpAddrV4),
    V6(IpAddrV6),
}

Implements version-independent IP addresses.

Variants

Methods

impl IpAddr
[src]

Return true if this is unspecified address.

Return true if this is loopback address.

Return true if this is multicast address.

Returns bytes of &[u8; 4] or &[u8; 16].

Trait Implementations

impl Clone for IpAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Eq for IpAddr
[src]

impl PartialEq for IpAddr
[src]

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

This method tests for !=.

impl Ord for IpAddr
[src]

This method returns an Ordering between self and other. Read more

impl PartialOrd for IpAddr
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for IpAddr
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl AddAssign<i64> for IpAddr
[src]

The method for the += operator

impl SubAssign<i64> for IpAddr
[src]

The method for the -= operator

impl Display for IpAddr
[src]

Formats the value using the given formatter.

impl Debug for IpAddr
[src]

Formats the value using the given formatter.

impl<P: Protocol> IntoEndpoint<P> for IpAddr
[src]

impl<'a, P: Protocol> IntoEndpoint<P> for &'a IpAddr
[src]

impl FromStr for IpAddr
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more