[][src]Struct jnet::mac::Addr

pub struct Addr(pub [u8; 6]);

MAC address

Methods

impl Addr[src]

pub const BROADCAST: Self[src]

Broadcast address

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

Is this a unicast address?

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

Is this the broadcast address?

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

Is this a multicast address?

NOTE Addr::BROADCAST.is_multicast() returns false

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

Is this an IPv4 multicast address?

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

Is this an IPv6 multicast address?

Converts this MAC address into a link-local IPv6 address using the EUI-64 format (see RFC2464)

Trait Implementations

impl PartialEq<Addr> for Addr[src]

impl Eq for Addr[src]

impl Debug for Addr[src]

impl Display for Addr[src]

impl Copy for Addr[src]

impl Clone for Addr[src]

impl Hash for Addr[src]

Auto Trait Implementations

impl Unpin for Addr

impl Send for Addr

impl Sync for Addr

Blanket Implementations

impl<T> From<T> for 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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

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

type Output = T

Should always be Self