Struct pnet::util::MacAddr [] [src]

pub struct MacAddr(pub u8, pub u8, pub u8, pub u8, pub u8, pub u8);

A MAC address

Methods

impl MacAddr
[src]

fn new(a: u8, b: u8, c: u8, d: u8, e: u8, f: u8) -> MacAddr

Construct a new MacAddr

Trait Implementations

impl PrimitiveValues for MacAddr
[src]

type T = (u8, u8, u8, u8, u8, u8)

A tuple of types, to represent the current value

fn to_primitive_values(&self) -> (u8, u8, u8, u8, u8, u8)

Convert a value to primitive types representing it

impl Display for MacAddr
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Debug for MacAddr
[src]

fn fmt(&self, fmt: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for MacAddr
[src]

type Err = ParseMacAddrErr

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<MacAddr, ParseMacAddrErr>

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

Derived Implementations

impl Hash for MacAddr
[src]

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

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

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0

Feeds a slice of this type into the state provided.

impl Copy for MacAddr
[src]

impl Clone for MacAddr
[src]

fn clone(&self) -> MacAddr

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Eq for MacAddr
[src]

impl PartialEq for MacAddr
[src]

fn eq(&self, __arg_0: &MacAddr) -> bool

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

fn ne(&self, __arg_0: &MacAddr) -> bool

This method tests for !=.