Struct net_util::MacAddress
source · pub struct MacAddress {
pub(crate) addr: [u8; 6],
}
Expand description
An Ethernet MAC address.
Fields§
§addr: [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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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<'de> Deserialize<'de> for MacAddress
impl<'de> Deserialize<'de> for MacAddress
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for MacAddress
impl Display 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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for MacAddress
impl Serialize for MacAddress
impl Copy for MacAddress
impl Eq for MacAddress
impl StructuralPartialEq for MacAddress
Auto Trait Implementations§
impl RefUnwindSafe for MacAddress
impl Send for MacAddress
impl Sync for MacAddress
impl Unpin 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
§impl<T> FromArgValue for T
impl<T> FromArgValue for T
§fn from_arg_value(value: &str) -> Result<T, String>
fn from_arg_value(value: &str) -> Result<T, String>
Construct the type from a commandline value, returning an error string
on failure.