Struct rkyv::std_impl::net::ArchivedIpv6Addr [−][src]
#[repr(transparent)]pub struct ArchivedIpv6Addr { /* fields omitted */ }
An archived Ipv6Addr
.
Implementations
impl ArchivedIpv6Addr
[src]
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]
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.
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 ArchivedIpv6Addr
[src]
impl Clone for ArchivedIpv6Addr
[src]fn clone(&self) -> ArchivedIpv6Addr
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArchivedIpv6Addr
[src]
impl Copy for ArchivedIpv6Addr
[src]impl Default for ArchivedIpv6Addr
[src]
impl Default for ArchivedIpv6Addr
[src]fn default() -> ArchivedIpv6Addr
[src]
impl<D: Fallible + ?Sized> Deserialize<Ipv6Addr, D> for ArchivedIpv6Addr
[src]
impl<D: Fallible + ?Sized> Deserialize<Ipv6Addr, D> for ArchivedIpv6Addr
[src]impl Eq for ArchivedIpv6Addr
[src]
impl Eq for ArchivedIpv6Addr
[src]impl Hash for ArchivedIpv6Addr
[src]
impl Hash for ArchivedIpv6Addr
[src]impl Ord for ArchivedIpv6Addr
[src]
impl Ord for ArchivedIpv6Addr
[src]impl PartialEq<ArchivedIpv6Addr> for ArchivedIpv6Addr
[src]
impl PartialEq<ArchivedIpv6Addr> for ArchivedIpv6Addr
[src]fn eq(&self, other: &ArchivedIpv6Addr) -> bool
[src]
fn ne(&self, other: &ArchivedIpv6Addr) -> bool
[src]
impl PartialEq<Ipv6Addr> for ArchivedIpv6Addr
[src]
impl PartialEq<Ipv6Addr> for ArchivedIpv6Addr
[src]impl PartialOrd<ArchivedIpv6Addr> for ArchivedIpv6Addr
[src]
impl PartialOrd<ArchivedIpv6Addr> for ArchivedIpv6Addr
[src]fn partial_cmp(&self, other: &ArchivedIpv6Addr) -> 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<Ipv6Addr> for ArchivedIpv6Addr
[src]
impl PartialOrd<Ipv6Addr> for ArchivedIpv6Addr
[src]impl StructuralEq for ArchivedIpv6Addr
[src]
impl StructuralEq for ArchivedIpv6Addr
[src]impl StructuralPartialEq for ArchivedIpv6Addr
[src]
impl StructuralPartialEq for ArchivedIpv6Addr
[src]Auto Trait Implementations
impl RefUnwindSafe for ArchivedIpv6Addr
impl RefUnwindSafe for ArchivedIpv6Addr
impl Send for ArchivedIpv6Addr
impl Send for ArchivedIpv6Addr
impl Sync for ArchivedIpv6Addr
impl Sync for ArchivedIpv6Addr
impl Unpin for ArchivedIpv6Addr
impl Unpin for ArchivedIpv6Addr
impl UnwindSafe for ArchivedIpv6Addr
impl UnwindSafe for ArchivedIpv6Addr
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