Struct rkyv::net::ArchivedIpv4Addr
source · [−]#[repr(transparent)]pub struct ArchivedIpv4Addr { /* private fields */ }
Expand description
An archived Ipv4Addr
.
Implementations
sourceimpl ArchivedIpv4Addr
impl ArchivedIpv4Addr
sourcepub const fn is_broadcast(&self) -> bool
pub const fn is_broadcast(&self) -> bool
Returns true
if this is a broadcast address (255.255.255.255).
See Ipv4Addr::is_broadcast()
for more details.
sourcepub const fn is_documentation(&self) -> bool
pub const fn is_documentation(&self) -> bool
Returns true
if this address is in a range designated for documentation.
See Ipv4Addr::is_documentation()
for more details.
sourcepub const fn is_link_local(&self) -> bool
pub const fn is_link_local(&self) -> bool
Returns true
if the address is link-local (169.254.0.0/16).
See Ipv4Addr::is_link_local()
for more details.
sourcepub const fn is_loopback(&self) -> bool
pub const fn is_loopback(&self) -> bool
Returns true
if this is a loopback address (127.0.0.0/8).
See Ipv4Addr::is_loopback()
for more details.
sourcepub const fn is_multicast(&self) -> bool
pub const fn is_multicast(&self) -> bool
Returns true
if this is a multicast address (224.0.0.0/4).
See Ipv4Addr::is_multicast()
for more details.
sourcepub const fn is_private(&self) -> bool
pub const fn is_private(&self) -> bool
Returns true
if this is a private address.
See Ipv4Addr::is_private()
for more details.
sourcepub const fn is_unspecified(&self) -> bool
pub const fn is_unspecified(&self) -> bool
Returns true
for the special ‘unspecified’ address (0.0.0.0).
See Ipv4Addr::is_unspecified()
for more details.
sourcepub const fn to_ipv6_compatible(&self) -> Ipv6Addr
pub const fn to_ipv6_compatible(&self) -> Ipv6Addr
Converts this address to an IPv4-compatible IPv6
address.
See Ipv4Addr::to_ipv6_compatible()
for more
details.
sourcepub const fn to_ipv6_mapped(&self) -> Ipv6Addr
pub const fn to_ipv6_mapped(&self) -> Ipv6Addr
Converts this address to an IPv4-mapped IPv6
address.
See Ipv4Addr::to_ipv6_mapped()
for more details.
Trait Implementations
sourceimpl Clone for ArchivedIpv4Addr
impl Clone for ArchivedIpv4Addr
sourcefn clone(&self) -> ArchivedIpv4Addr
fn clone(&self) -> ArchivedIpv4Addr
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ArchivedIpv4Addr
impl Debug for ArchivedIpv4Addr
sourceimpl Default for ArchivedIpv4Addr
impl Default for ArchivedIpv4Addr
sourcefn default() -> ArchivedIpv4Addr
fn default() -> ArchivedIpv4Addr
Returns the “default value” for a type. Read more
sourceimpl<D: Fallible + ?Sized> Deserialize<Ipv4Addr, D> for ArchivedIpv4Addr
impl<D: Fallible + ?Sized> Deserialize<Ipv4Addr, D> for ArchivedIpv4Addr
sourceimpl Hash for ArchivedIpv4Addr
impl Hash for ArchivedIpv4Addr
sourceimpl Ord for ArchivedIpv4Addr
impl Ord for ArchivedIpv4Addr
sourceimpl PartialEq<ArchivedIpv4Addr> for Ipv4Addr
impl PartialEq<ArchivedIpv4Addr> for Ipv4Addr
sourceimpl PartialEq<ArchivedIpv4Addr> for ArchivedIpv4Addr
impl PartialEq<ArchivedIpv4Addr> for ArchivedIpv4Addr
sourcefn eq(&self, other: &ArchivedIpv4Addr) -> bool
fn eq(&self, other: &ArchivedIpv4Addr) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArchivedIpv4Addr) -> bool
fn ne(&self, other: &ArchivedIpv4Addr) -> bool
This method tests for !=
.
sourceimpl PartialEq<Ipv4Addr> for ArchivedIpv4Addr
impl PartialEq<Ipv4Addr> for ArchivedIpv4Addr
sourceimpl PartialOrd<ArchivedIpv4Addr> for Ipv4Addr
impl PartialOrd<ArchivedIpv4Addr> for Ipv4Addr
sourcefn partial_cmp(&self, other: &ArchivedIpv4Addr) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedIpv4Addr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<ArchivedIpv4Addr> for ArchivedIpv4Addr
impl PartialOrd<ArchivedIpv4Addr> for ArchivedIpv4Addr
sourcefn partial_cmp(&self, other: &ArchivedIpv4Addr) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedIpv4Addr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<Ipv4Addr> for ArchivedIpv4Addr
impl PartialOrd<Ipv4Addr> for ArchivedIpv4Addr
sourcefn partial_cmp(&self, other: &Ipv4Addr) -> Option<Ordering>
fn partial_cmp(&self, other: &Ipv4Addr) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ArchivedIpv4Addr
impl Eq for ArchivedIpv4Addr
impl StructuralEq for ArchivedIpv4Addr
impl StructuralPartialEq for ArchivedIpv4Addr
Auto Trait Implementations
impl RefUnwindSafe for ArchivedIpv4Addr
impl Send for ArchivedIpv4Addr
impl Sync for ArchivedIpv4Addr
impl Unpin for ArchivedIpv4Addr
impl UnwindSafe for ArchivedIpv4Addr
Blanket Implementations
sourceimpl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
sourcefn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
fn pointer_metadata(_: &Self::ArchivedMetadata) -> <Self as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for F where
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more