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]
Trait Implementations
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 !=
.
impl Eq 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 Copy for MacAddr
[src]
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 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]
impl Debug for MacAddr
[src]
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