pub struct MacAddress {
pub bytes: [u8; 6],
}Expand description
A struct representing a 48-bit MAC address.
Fields§
§bytes: [u8; 6]Implementations§
Trait Implementations§
Source§impl Clone for MacAddress
impl Clone for MacAddress
Source§fn clone(&self) -> MacAddress
fn clone(&self) -> MacAddress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MacAddress
Source§impl Debug for MacAddress
impl Debug for MacAddress
Source§impl Default for MacAddress
impl Default for MacAddress
Source§fn default() -> MacAddress
fn default() -> MacAddress
Returns the “default value” for a type. Read more
Source§impl Display for MacAddress
impl Display for MacAddress
impl Eq for MacAddress
Source§impl From<MacAddress> for [u8; 6]
impl From<MacAddress> for [u8; 6]
Source§fn from(value: MacAddress) -> Self
fn from(value: MacAddress) -> Self
Converts to this type from the input type.
Source§impl From<MacAddress> for u64
impl From<MacAddress> for u64
Source§fn from(val: MacAddress) -> Self
fn from(val: MacAddress) -> Self
Converts to this type from the input type.
Source§impl From<u64> for MacAddress
impl From<u64> for MacAddress
Source§impl FromStr for MacAddress
impl FromStr for MacAddress
Source§impl PartialEq for MacAddress
impl PartialEq for MacAddress
Source§fn eq(&self, other: &MacAddress) -> bool
fn eq(&self, other: &MacAddress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MacAddress
Auto Trait Implementations§
impl Freeze for MacAddress
impl RefUnwindSafe for MacAddress
impl Send for MacAddress
impl Sync for MacAddress
impl Unpin for MacAddress
impl UnsafeUnpin for MacAddress
impl UnwindSafe for MacAddress
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more