Struct powerline::EtherAddr[][src]

#[repr(transparent)]pub struct EtherAddr(pub [u8; 6]);

Implementations

impl EtherAddr[src]

pub const SIZE: usize[src]

pub const NULL: EtherAddr[src]

pub const BROADCAST: EtherAddr[src]

pub const QUALCOMM_LOCALCAST: EtherAddr[src]

pub const IEEE1905_MULTICAST: EtherAddr[src]

pub fn from_slice(slice: &[u8]) -> EtherAddr[src]

pub fn as_bytes(&self) -> [u8; 6][src]

pub fn oui(&self) -> OUI[src]

pub fn padded(&self) -> [u8; 8][src]

pub fn is_unicast(&self) -> bool[src]

pub fn is_multicast(&self) -> bool[src]

pub fn is_broadcast(&self) -> bool[src]

Trait Implementations

impl Clone for EtherAddr[src]

impl Copy for EtherAddr[src]

impl Debug for EtherAddr[src]

impl Default for EtherAddr[src]

impl Deref for EtherAddr[src]

type Target = [u8; 6]

The resulting type after dereferencing.

impl Eq for EtherAddr[src]

impl FromStr for EtherAddr[src]

type Err = ()

The associated error which can be returned from parsing.

impl Hash for EtherAddr[src]

impl PartialEq<EtherAddr> for EtherAddr[src]

impl StructuralEq for EtherAddr[src]

impl StructuralPartialEq for EtherAddr[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.