Enum rkyv::std_impl::net::ArchivedIpAddr[][src]

#[repr(u8)]
pub enum ArchivedIpAddr {
    V4(ArchivedIpv4Addr),
    V6(ArchivedIpv6Addr),
}

An archived IpAddr.

Variants

An IPv4 address.

An IPv6 address.

Implementations

impl ArchivedIpAddr[src]

pub const fn as_ipaddr(&self) -> IpAddr[src]

Returns an IpAddr with the same value.

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

Returns true if this address is an IPv4 address, and false otherwise.

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

Returns true if this address is an IPv6 address, and false otherwise.

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

Returns true if this is a loopback address.

See IpAddr::is_loopback() for more details.

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

Returns true if this is a multicast address.

See IpAddr::is_multicast() for more details.

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

Returns true for the special ‘unspecified’ address.

See IpAddr::is_unspecified() for more details.

Trait Implementations

impl<__C: ?Sized> CheckBytes<__C> for ArchivedIpAddr where
    ArchivedIpv4Addr: CheckBytes<__C>,
    ArchivedIpv6Addr: CheckBytes<__C>, 
[src]

type Error = EnumCheckError<u8>

The error that may result from checking the type.

impl Clone for ArchivedIpAddr[src]

impl Copy for ArchivedIpAddr[src]

impl Eq for ArchivedIpAddr[src]

impl Hash for ArchivedIpAddr[src]

impl Ord for ArchivedIpAddr[src]

impl PartialEq<ArchivedIpAddr> for ArchivedIpAddr[src]

impl PartialEq<IpAddr> for ArchivedIpAddr[src]

impl PartialOrd<ArchivedIpAddr> for ArchivedIpAddr[src]

impl PartialOrd<IpAddr> for ArchivedIpAddr[src]

impl StructuralEq for ArchivedIpAddr[src]

impl StructuralPartialEq for ArchivedIpAddr[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.