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

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

An archived Ipv4Addr.

Implementations

impl ArchivedIpv4Addr[src]

pub const fn as_ipv4(&self) -> Ipv4Addr[src]

Returns an Ipv4Addr with the same value.

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

Returns true if this is a broadcast address (255.255.255.255).

See Ipv4Addr::is_broadcast() for more details.

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

Returns true if this address is in a range designated for documentation.

See Ipv4Addr::is_documentation() for more details.

Returns true if the address is link-local (169.254.0.0/16).

See Ipv4Addr::is_link_local() for more details.

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

Returns true if this is a loopback address (127.0.0.0/8).

See Ipv4Addr::is_loopback() for more details.

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

Returns true if this is a multicast address (224.0.0.0/4).

See Ipv4Addr::is_multicast() for more details.

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

Returns true if this is a private address.

See Ipv4Addr::is_private() for more details.

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

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

See Ipv4Addr::is_unspecified() for more details.

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

Returns the four eight-bit integers that make up this address.

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

Converts this address to an IPv4-compatible IPv6 address.

See Ipv4Addr::to_ipv6_compatible() for more details.

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

Converts this address to an IPv4-mapped IPv6 address.

See Ipv4Addr::to_ipv6_mapped() for more details.

Trait Implementations

impl<__C: ?Sized> CheckBytes<__C> for ArchivedIpv4Addr where
    [u8; 4]: CheckBytes<__C>, 
[src]

type Error = StructCheckError

The error that may result from checking the type.

impl Clone for ArchivedIpv4Addr[src]

impl Copy for ArchivedIpv4Addr[src]

impl Default for ArchivedIpv4Addr[src]

impl<D: Fallible + ?Sized> Deserialize<Ipv4Addr, D> for ArchivedIpv4Addr[src]

impl Eq for ArchivedIpv4Addr[src]

impl Hash for ArchivedIpv4Addr[src]

impl Ord for ArchivedIpv4Addr[src]

impl PartialEq<ArchivedIpv4Addr> for ArchivedIpv4Addr[src]

impl PartialEq<Ipv4Addr> for ArchivedIpv4Addr[src]

impl PartialOrd<ArchivedIpv4Addr> for ArchivedIpv4Addr[src]

impl PartialOrd<Ipv4Addr> for ArchivedIpv4Addr[src]

impl StructuralEq for ArchivedIpv4Addr[src]

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