pub enum HardwareAddr {
Mac(MacAddress),
Raw(Vec<u8>),
}Expand description
Hardware address (variable length).
Variants§
Mac(MacAddress)
Raw(Vec<u8>)
Implementations§
Trait Implementations§
Source§impl Clone for HardwareAddr
impl Clone for HardwareAddr
Source§fn clone(&self) -> HardwareAddr
fn clone(&self) -> HardwareAddr
Returns a duplicate 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 HardwareAddr
impl Debug for HardwareAddr
Source§impl Display for HardwareAddr
impl Display for HardwareAddr
Source§impl From<MacAddress> for HardwareAddr
impl From<MacAddress> for HardwareAddr
Source§fn from(mac: MacAddress) -> Self
fn from(mac: MacAddress) -> Self
Converts to this type from the input type.
Source§impl PartialEq for HardwareAddr
impl PartialEq for HardwareAddr
impl Eq for HardwareAddr
impl StructuralPartialEq for HardwareAddr
Auto Trait Implementations§
impl Freeze for HardwareAddr
impl RefUnwindSafe for HardwareAddr
impl Send for HardwareAddr
impl Sync for HardwareAddr
impl Unpin for HardwareAddr
impl UnsafeUnpin for HardwareAddr
impl UnwindSafe for HardwareAddr
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