Struct netsim_embed::MacAddr [−]
Expand description
A MAC address.
Tuple Fields
0: u8
1: u8
2: u8
3: u8
4: u8
5: u8
Implementations
impl MacAddr
impl MacAddr
pub fn is_universal(&self) -> bool
pub fn is_universal(&self) -> bool
Returns true if the MacAddr is a universally administered addresses (UAA).
Returns true if the MacAddr is a locally administered addresses (LAA).
pub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
Returns true if the MacAddr is a unicast address.
pub fn is_multicast(&self) -> bool
pub fn is_multicast(&self) -> bool
Returns true if the MacAddr is a multicast address.
pub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Returns true if the MacAddr is a broadcast address.
Trait Implementations
impl PartialOrd<MacAddr> for MacAddr
impl PartialOrd<MacAddr> for MacAddr
pub fn partial_cmp(&self, other: &MacAddr) -> Option<Ordering>
pub fn partial_cmp(&self, other: &MacAddr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl PrimitiveValues for MacAddr
impl PrimitiveValues for MacAddr
impl StructuralEq for MacAddr
impl StructuralPartialEq for MacAddr
Auto Trait Implementations
impl RefUnwindSafe for MacAddr
impl UnwindSafe for MacAddr
Blanket Implementations
Mutably borrows from an owned value. Read more