Struct rkyv::std_impl::net::ArchivedIpv4Addr [−][src]
#[repr(transparent)]pub struct ArchivedIpv4Addr { /* fields omitted */ }
An archived Ipv4Addr
.
Implementations
impl ArchivedIpv4Addr
[src]
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.
pub const fn is_link_local(&self) -> bool
[src]
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]
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.
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
[src]
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
impl Clone for ArchivedIpv4Addr
[src]
impl Clone for ArchivedIpv4Addr
[src]fn clone(&self) -> ArchivedIpv4Addr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArchivedIpv4Addr
[src]
impl Copy for ArchivedIpv4Addr
[src]impl Default for ArchivedIpv4Addr
[src]
impl Default for ArchivedIpv4Addr
[src]fn default() -> ArchivedIpv4Addr
[src]
impl<D: Fallible + ?Sized> Deserialize<Ipv4Addr, D> for ArchivedIpv4Addr
[src]
impl<D: Fallible + ?Sized> Deserialize<Ipv4Addr, D> for ArchivedIpv4Addr
[src]impl Eq for ArchivedIpv4Addr
[src]
impl Eq for ArchivedIpv4Addr
[src]impl Hash for ArchivedIpv4Addr
[src]
impl Hash for ArchivedIpv4Addr
[src]impl Ord for ArchivedIpv4Addr
[src]
impl Ord for ArchivedIpv4Addr
[src]impl PartialEq<ArchivedIpv4Addr> for ArchivedIpv4Addr
[src]
impl PartialEq<ArchivedIpv4Addr> for ArchivedIpv4Addr
[src]fn eq(&self, other: &ArchivedIpv4Addr) -> bool
[src]
fn ne(&self, other: &ArchivedIpv4Addr) -> bool
[src]
impl PartialEq<Ipv4Addr> for ArchivedIpv4Addr
[src]
impl PartialEq<Ipv4Addr> for ArchivedIpv4Addr
[src]impl PartialOrd<ArchivedIpv4Addr> for ArchivedIpv4Addr
[src]
impl PartialOrd<ArchivedIpv4Addr> for ArchivedIpv4Addr
[src]fn partial_cmp(&self, other: &ArchivedIpv4Addr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<Ipv4Addr> for ArchivedIpv4Addr
[src]
impl PartialOrd<Ipv4Addr> for ArchivedIpv4Addr
[src]impl StructuralEq for ArchivedIpv4Addr
[src]
impl StructuralEq for ArchivedIpv4Addr
[src]impl StructuralPartialEq for ArchivedIpv4Addr
[src]
impl StructuralPartialEq for ArchivedIpv4Addr
[src]Auto Trait Implementations
impl RefUnwindSafe for ArchivedIpv4Addr
impl RefUnwindSafe for ArchivedIpv4Addr
impl Send for ArchivedIpv4Addr
impl Send for ArchivedIpv4Addr
impl Sync for ArchivedIpv4Addr
impl Sync for ArchivedIpv4Addr
impl Unpin for ArchivedIpv4Addr
impl Unpin for ArchivedIpv4Addr
impl UnwindSafe for ArchivedIpv4Addr
impl UnwindSafe for ArchivedIpv4Addr
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata