pub struct ETH_DST_MAC { /* private fields */ }
Methods from Deref<Target = MacAddr>§
pub fn len(&self) -> usize
Sourcepub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
A MAC address is a unicast address if the least significant bit of the first octet is 0. See “individual/group bit” in https://standards.ieee.org/content/dam/ieee-standards/standards/web/documents/tutorials/macgrp.pdf
Sourcepub fn is_multicast(&self) -> bool
pub fn is_multicast(&self) -> bool
IEEE Std 802.3-2015, 3.2.3: The least significant bit of the first octet of a MAC address denotes multicast.
pub fn as_slice(&self) -> &[u8] ⓘ
Trait Implementations§
Source§impl Deref for ETH_DST_MAC
impl Deref for ETH_DST_MAC
impl LazyStatic for ETH_DST_MAC
Auto Trait Implementations§
impl Freeze for ETH_DST_MAC
impl RefUnwindSafe for ETH_DST_MAC
impl Send for ETH_DST_MAC
impl Sync for ETH_DST_MAC
impl Unpin for ETH_DST_MAC
impl UnwindSafe for ETH_DST_MAC
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