[−][src]Struct jnet::mac::Addr
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?
pub fn into_link_local_address(self) -> Addr
[src]
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]
fn clone(&self) -> Addr
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Hash for Addr
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
[src]
type Output = T
Should always be Self