Struct rkyv::std_impl::net::ArchivedIpv6Addr[][src]

#[repr(transparent)]
pub struct ArchivedIpv6Addr { /* fields omitted */ }

An archived Ipv6Addr.

Implementations

impl ArchivedIpv6Addr[src]

pub const fn as_ipv6(&self) -> Ipv6Addr[src]

Returns an Ipv6Addr with the same value.

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

Returns true if this is a loopback address (::1).

See Ipv6Addr::is_loopback() for more details.

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

Returns true if this is a multicast address (ff00::/8).

See Ipv6Addr::is_multicast() for more details.

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

Returns true for the special ‘unspecified’ address (::).

See Ipv6Addr::is_unspecified() for more details.

pub const fn octets(&self) -> [u8; 16][src]

Returns the sixteen eight-bit integers the IPv6 address consists of.

pub const fn segments(&self) -> [u16; 8][src]

Returns the eight 16-bit segments that make up this address.

pub const fn to_ipv4(&self) -> Option<Ipv4Addr>[src]

Converts this address to an IPv4 address. Returns None if this address is neither IPv4-compatible or IPv4-mapped.

Trait Implementations

impl<__C: ?Sized> CheckBytes<__C> for ArchivedIpv6Addr where
    [u16; 8]: CheckBytes<__C>, 
[src]

type Error = StructCheckError

The error that may result from checking the type.

impl Clone for ArchivedIpv6Addr[src]

impl Copy for ArchivedIpv6Addr[src]

impl Default for ArchivedIpv6Addr[src]

impl<D: Fallible + ?Sized> Deserialize<Ipv6Addr, D> for ArchivedIpv6Addr[src]

impl Eq for ArchivedIpv6Addr[src]

impl Hash for ArchivedIpv6Addr[src]

impl Ord for ArchivedIpv6Addr[src]

impl PartialEq<ArchivedIpv6Addr> for ArchivedIpv6Addr[src]

impl PartialEq<Ipv6Addr> for ArchivedIpv6Addr[src]

impl PartialOrd<ArchivedIpv6Addr> for ArchivedIpv6Addr[src]

impl PartialOrd<Ipv6Addr> for ArchivedIpv6Addr[src]

impl StructuralEq for ArchivedIpv6Addr[src]

impl StructuralPartialEq for ArchivedIpv6Addr[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> ArchivePointee for T[src]

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.

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> Pointee for T[src]

type Metadata = ()

The type for metadata in pointers and references to Self.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.