Struct smoltcp::wire::EthernetAddress [] [src]

pub struct EthernetAddress(pub [u8; 6]);

A six-octet Ethernet II address.

Methods

impl Address
[src]

[src]

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

Panics

The function panics if data is not six octets long.

[src]

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

[src]

Query whether the address is an unicast address.

[src]

Query whether this address is the broadcast address.

[src]

Query whether the "multicast" bit in the OUI is set.

[src]

Query whether the "locally administered" bit in the OUI is set.

Trait Implementations

impl FromStr for EthernetAddress
[src]

The associated error which can be returned from parsing.

[src]

Parse a string representation of an Ethernet 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