#[repr(transparent)]pub struct EtherAddr(pub [u8; 6]);
Tuple Fields§
§0: [u8; 6]
Implementations§
Source§impl EtherAddr
impl EtherAddr
pub const SIZE: usize = 6usize
pub const NULL: EtherAddr
pub const BROADCAST: EtherAddr
pub const QUALCOMM_LOCALCAST: EtherAddr
pub const IEEE1905_MULTICAST: EtherAddr
pub fn from_slice(slice: &[u8]) -> EtherAddr
pub fn as_bytes(&self) -> [u8; 6]
pub fn oui(&self) -> OUI
pub fn padded(&self) -> [u8; 8]
pub fn is_unicast(&self) -> bool
pub fn is_multicast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Trait Implementations§
impl Copy for EtherAddr
impl Eq for EtherAddr
impl StructuralPartialEq for EtherAddr
Auto Trait Implementations§
impl Freeze for EtherAddr
impl RefUnwindSafe for EtherAddr
impl Send for EtherAddr
impl Sync for EtherAddr
impl Unpin for EtherAddr
impl UnwindSafe for EtherAddr
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