Enum rkyv::std_impl::net::ArchivedIpAddr [−][src]
#[repr(u8)] pub enum ArchivedIpAddr { V4(ArchivedIpv4Addr), V6(ArchivedIpv6Addr), }
An archived IpAddr
.
Variants
V4(ArchivedIpv4Addr)
An IPv4 address.
V6(ArchivedIpv6Addr)
An IPv6 address.
Implementations
impl ArchivedIpAddr
[src]
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]
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.
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 ArchivedIpAddr
[src]
impl Clone for ArchivedIpAddr
[src]fn clone(&self) -> ArchivedIpAddr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArchivedIpAddr
[src]
impl Copy for ArchivedIpAddr
[src]impl Eq for ArchivedIpAddr
[src]
impl Eq for ArchivedIpAddr
[src]impl Hash for ArchivedIpAddr
[src]
impl Hash for ArchivedIpAddr
[src]impl Ord for ArchivedIpAddr
[src]
impl Ord for ArchivedIpAddr
[src]impl PartialEq<ArchivedIpAddr> for ArchivedIpAddr
[src]
impl PartialEq<ArchivedIpAddr> for ArchivedIpAddr
[src]fn eq(&self, other: &ArchivedIpAddr) -> bool
[src]
fn ne(&self, other: &ArchivedIpAddr) -> bool
[src]
impl PartialEq<IpAddr> for ArchivedIpAddr
[src]
impl PartialEq<IpAddr> for ArchivedIpAddr
[src]impl PartialOrd<ArchivedIpAddr> for ArchivedIpAddr
[src]
impl PartialOrd<ArchivedIpAddr> for ArchivedIpAddr
[src]fn partial_cmp(&self, other: &ArchivedIpAddr) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PartialOrd<IpAddr> for ArchivedIpAddr
[src]
impl PartialOrd<IpAddr> for ArchivedIpAddr
[src]impl StructuralEq for ArchivedIpAddr
[src]
impl StructuralEq for ArchivedIpAddr
[src]impl StructuralPartialEq for ArchivedIpAddr
[src]
impl StructuralPartialEq for ArchivedIpAddr
[src]Auto Trait Implementations
impl RefUnwindSafe for ArchivedIpAddr
impl RefUnwindSafe for ArchivedIpAddr
impl Send for ArchivedIpAddr
impl Send for ArchivedIpAddr
impl Sync for ArchivedIpAddr
impl Sync for ArchivedIpAddr
impl Unpin for ArchivedIpAddr
impl Unpin for ArchivedIpAddr
impl UnwindSafe for ArchivedIpAddr
impl UnwindSafe for ArchivedIpAddr
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