Enum smoltcp::wire::HardwareAddress
source · [−]pub enum HardwareAddress {
Ethernet(EthernetAddress),
}Expand description
Representation of an hardware address, such as an Ethernet address or an IEEE802.15.4 address.
Variants
Ethernet(EthernetAddress)
Implementations
sourceimpl HardwareAddress
impl HardwareAddress
pub fn as_bytes(&self) -> &[u8]
sourcepub fn is_unicast(&self) -> bool
pub fn is_unicast(&self) -> bool
Query wether the address is an unicast address.
sourcepub fn is_broadcast(&self) -> bool
pub fn is_broadcast(&self) -> bool
Query wether the address is a broadcast address.
Trait Implementations
sourceimpl Clone for HardwareAddress
impl Clone for HardwareAddress
sourcefn clone(&self) -> HardwareAddress
fn clone(&self) -> HardwareAddress
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for HardwareAddress
impl Debug for HardwareAddress
sourceimpl Display for HardwareAddress
impl Display for HardwareAddress
sourceimpl From<Address> for HardwareAddress
impl From<Address> for HardwareAddress
sourcefn from(addr: EthernetAddress) -> Self
fn from(addr: EthernetAddress) -> Self
Converts to this type from the input type.
sourceimpl From<HardwareAddress> for RawHardwareAddress
impl From<HardwareAddress> for RawHardwareAddress
sourcefn from(addr: HardwareAddress) -> Self
fn from(addr: HardwareAddress) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<HardwareAddress> for HardwareAddress
impl PartialEq<HardwareAddress> for HardwareAddress
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &HardwareAddress) -> bool
fn ne(&self, other: &HardwareAddress) -> bool
This method tests for !=.
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more