Struct net::wire::RawHardwareAddress
pub struct RawHardwareAddress { /* private fields */ }
Expand description
Unparsed hardware address.
Used to make NDISC parsing agnostic of the hardware medium in use.
Implementations§
§impl RawHardwareAddress
impl RawHardwareAddress
pub fn from_bytes(addr: &[u8]) -> RawHardwareAddress
pub fn as_bytes(&self) -> &[u8]
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn parse(&self, medium: Medium) -> Result<HardwareAddress, Error>
Trait Implementations§
§impl Clone for RawHardwareAddress
impl Clone for RawHardwareAddress
§fn clone(&self) -> RawHardwareAddress
fn clone(&self) -> RawHardwareAddress
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for RawHardwareAddress
impl Debug for RawHardwareAddress
§impl Display for RawHardwareAddress
impl Display for RawHardwareAddress
§impl From<Address> for RawHardwareAddress
impl From<Address> for RawHardwareAddress
§fn from(addr: Address) -> RawHardwareAddress
fn from(addr: Address) -> RawHardwareAddress
Converts to this type from the input type.
§impl From<HardwareAddress> for RawHardwareAddress
impl From<HardwareAddress> for RawHardwareAddress
§fn from(addr: HardwareAddress) -> RawHardwareAddress
fn from(addr: HardwareAddress) -> RawHardwareAddress
Converts to this type from the input type.
§impl PartialEq<RawHardwareAddress> for RawHardwareAddress
impl PartialEq<RawHardwareAddress> for RawHardwareAddress
§fn eq(&self, other: &RawHardwareAddress) -> bool
fn eq(&self, other: &RawHardwareAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RawHardwareAddress
impl Eq for RawHardwareAddress
impl StructuralEq for RawHardwareAddress
impl StructuralPartialEq for RawHardwareAddress
Auto Trait Implementations§
impl RefUnwindSafe for RawHardwareAddress
impl Send for RawHardwareAddress
impl Sync for RawHardwareAddress
impl Unpin for RawHardwareAddress
impl UnwindSafe for RawHardwareAddress
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