Struct smoltcp::wire::Ipv4Address [] [src]

pub struct Ipv4Address(pub [u8; 4]);

A four-octet IPv4 address.

Methods

impl Address
[src]

[src]

Construct an IPv4 address from parts.

[src]

Construct an IPv4 address from a sequence of octets, in big-endian.

Panics

The function panics if data is not four octets long.

[src]

Return an IPv4 address as a sequence of octets, in big-endian.

[src]

Query whether the address is an unicast address.

[src]

Query whether the address is the broadcast address.

[src]

Query whether the address is a multicast address.

[src]

Query whether the address falls into the "unspecified" range.

Query whether the address falls into the "link-local" range.

[src]

Query whether the address falls into the "loopback" range.

Trait Implementations

impl FromStr for Ipv4Address
[src]

The associated error which can be returned from parsing.

[src]

Parse a string representation of an IPv4 address.

impl Debug for Address
[src]

[src]

Formats the value using the given formatter.

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

impl PartialOrd for Address
[src]

[src]

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

[src]

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

[src]

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

[src]

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

[src]

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

impl Ord for Address
[src]

[src]

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

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for Address
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for Address
[src]

impl Default for Address
[src]

[src]

Returns the "default value" for a type. Read more

impl Display for Address
[src]

[src]

Formats the value using the given formatter. Read more