[][src]Struct jnet::ipv6::Addr

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

IPv6 address

Methods

impl Addr[src]

pub const UNSPECIFIED: Self[src]

Unspecified address

pub const LOOPBACK: Self[src]

Loopback address

pub const ALL_NODES: Self[src]

All link-local nodes multicast address

pub const ALL_ROUTERS: Self[src]

All link-local routers multicast address

Is this a link local address?

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

Is this the loopback address?

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

Is this a multicast address?

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

Is this a solicited node multicast address?

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

Is this the unspecified address?

pub fn into_solicited_node(self) -> Self[src]

Turns this unicast or anycast address into a solicited node multicast address

Panics

This function panics if self is a multicast address

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