pub struct CLIENT_MAC_ADDR { /* 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 CLIENT_MAC_ADDR
impl Deref for CLIENT_MAC_ADDR
impl LazyStatic for CLIENT_MAC_ADDR
Auto Trait Implementations§
impl Freeze for CLIENT_MAC_ADDR
impl RefUnwindSafe for CLIENT_MAC_ADDR
impl Send for CLIENT_MAC_ADDR
impl Sync for CLIENT_MAC_ADDR
impl Unpin for CLIENT_MAC_ADDR
impl UnwindSafe for CLIENT_MAC_ADDR
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