Struct pnet_datalink::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 Display for MacAddr
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more
impl Clone for MacAddr
[src]
fn clone(&self) -> MacAddr
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy 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>
[src]
Parses a string s
to return a value of this type. Read more
impl Hash for MacAddr
[src]
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq<MacAddr> for MacAddr
[src]
fn eq(&self, __arg_0: &MacAddr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MacAddr) -> bool
[src]
This method tests for !=
.
impl Debug for MacAddr
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result<(), Error>
[src]
Formats the value using the given formatter. Read more