Struct netsim::wire::MacAddr[][src]

pub struct MacAddr { /* fields omitted */ }

An ethernet hardware MAC address.

Methods

impl MacAddr
[src]

BROADCAST: MacAddr = MacAddr{bytes: [255, 255, 255, 255, 255, 255],}

The broadcast ethernet address.

Create a MacAddr from the given 6-byte buffer.

Important traits for &'a [u8]

Get the address as a slice of bytes.

Generate a random MAC address.

Checks weather this is the broadcast address.

Trait Implementations

impl Clone for MacAddr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MacAddr
[src]

impl PartialEq for MacAddr
[src]

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

This method tests for !=.

impl Debug for MacAddr
[src]

Formats the value using the given formatter. Read more

impl Display for MacAddr
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MacAddr

impl Sync for MacAddr