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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more