Enum net::wire::HardwareAddress
pub enum HardwareAddress {
Ethernet(Address),
}
Expand description
Representation of an hardware address, such as an Ethernet address or an IEEE802.15.4 address.
Variants§
Implementations§
§impl HardwareAddress
impl HardwareAddress
pub const fn as_bytes(&self) -> &[u8]
pub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
Query wether the address is an unicast address.
pub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Query wether the address is a broadcast address.
Trait Implementations§
§impl Clone for HardwareAddress
impl Clone for HardwareAddress
§fn clone(&self) -> HardwareAddress
fn clone(&self) -> HardwareAddress
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 HardwareAddress
impl Debug for HardwareAddress
§impl Display for HardwareAddress
impl Display for HardwareAddress
§impl From<Address> for HardwareAddress
impl From<Address> for HardwareAddress
§fn from(addr: Address) -> HardwareAddress
fn from(addr: Address) -> HardwareAddress
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<HardwareAddress> for HardwareAddress
impl PartialEq<HardwareAddress> for HardwareAddress
§fn eq(&self, other: &HardwareAddress) -> bool
fn eq(&self, other: &HardwareAddress) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for HardwareAddress
impl Eq for HardwareAddress
impl StructuralEq for HardwareAddress
impl StructuralPartialEq for HardwareAddress
Auto Trait Implementations§
impl RefUnwindSafe for HardwareAddress
impl Send for HardwareAddress
impl Sync for HardwareAddress
impl Unpin for HardwareAddress
impl UnwindSafe for HardwareAddress
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