Struct uefi::proto::device_path::messaging::MacAddress
source · #[repr(C, packed(1))]pub struct MacAddress { /* private fields */ }
Expand description
MAC address messaging device path node.
Implementations§
source§impl MacAddress
impl MacAddress
sourcepub fn mac_address(&self) -> [u8; 32]
pub fn mac_address(&self) -> [u8; 32]
MAC address for a network interface, padded with zeros.
sourcepub fn interface_type(&self) -> u8
pub fn interface_type(&self) -> u8
Network interface type. See https://www.iana.org/assignments/smi-numbers/smi-numbers.xhtml#smi-numbers-5
Trait Implementations§
source§impl Debug for MacAddress
impl Debug for MacAddress
source§impl TryFrom<&DevicePathNode> for &MacAddress
impl TryFrom<&DevicePathNode> for &MacAddress
§type Error = NodeConversionError
type Error = NodeConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for MacAddress
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