pub struct MacAddr<const B: bool>(/* private fields */);
Expand description
A MAC address.
B
represents whether this address is a unicast address, or if it may be unicast
or multicast.
If B
is false
, this is a unicast address. If B
is true
this is address
may represent either a unicast or a multicast address.
Implementations§
Trait Implementations§
Source§impl<'de, const B: bool> Deserialize<'de> for MacAddr<B>
impl<'de, const B: bool> Deserialize<'de> for MacAddr<B>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<const B: bool> Copy for MacAddr<B>
impl<const B: bool> Eq for MacAddr<B>
impl<const B: bool> StructuralPartialEq for MacAddr<B>
Auto Trait Implementations§
impl<const B: bool> Freeze for MacAddr<B>
impl<const B: bool> RefUnwindSafe for MacAddr<B>
impl<const B: bool> Send for MacAddr<B>
impl<const B: bool> Sync for MacAddr<B>
impl<const B: bool> Unpin for MacAddr<B>
impl<const B: bool> UnwindSafe for MacAddr<B>
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