Struct powerline::EtherAddr [−][src]
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]
fn clone(&self) -> EtherAddr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for EtherAddr
[src]
impl Debug for EtherAddr
[src]
impl Default for EtherAddr
[src]
impl Deref for EtherAddr
[src]
impl Eq for EtherAddr
[src]
impl FromStr for EtherAddr
[src]
type Err = ()
The associated error which can be returned from parsing.
fn from_str(input: &str) -> Result<Self, Self::Err>
[src]
impl Hash for EtherAddr
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,