Struct rkyv::net::ArchivedSocketAddrV4
source · [−]pub struct ArchivedSocketAddrV4 { /* private fields */ }
Expand description
An archived SocketAddrV4
.
Implementations
sourceimpl ArchivedSocketAddrV4
impl ArchivedSocketAddrV4
sourcepub fn as_socket_addr_v4(&self) -> SocketAddrV4
pub fn as_socket_addr_v4(&self) -> SocketAddrV4
Returns a SocketAddrV4
with the same value.
Trait Implementations
sourceimpl Clone for ArchivedSocketAddrV4
impl Clone for ArchivedSocketAddrV4
sourcefn clone(&self) -> ArchivedSocketAddrV4
fn clone(&self) -> ArchivedSocketAddrV4
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 ArchivedSocketAddrV4
impl Debug for ArchivedSocketAddrV4
sourceimpl Default for ArchivedSocketAddrV4
impl Default for ArchivedSocketAddrV4
sourcefn default() -> ArchivedSocketAddrV4
fn default() -> ArchivedSocketAddrV4
Returns the “default value” for a type. Read more
sourceimpl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
sourcefn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV4, D::Error>
fn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV4, D::Error>
Deserializes using the given deserializer
sourceimpl Hash for ArchivedSocketAddrV4
impl Hash for ArchivedSocketAddrV4
sourceimpl Ord for ArchivedSocketAddrV4
impl Ord for ArchivedSocketAddrV4
sourceimpl PartialEq<ArchivedSocketAddrV4> for SocketAddrV4
impl PartialEq<ArchivedSocketAddrV4> for SocketAddrV4
sourceimpl PartialEq<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
impl PartialEq<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
sourcefn eq(&self, other: &ArchivedSocketAddrV4) -> bool
fn eq(&self, other: &ArchivedSocketAddrV4) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ArchivedSocketAddrV4) -> bool
fn ne(&self, other: &ArchivedSocketAddrV4) -> bool
This method tests for !=
.
sourceimpl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
sourceimpl PartialOrd<ArchivedSocketAddrV4> for SocketAddrV4
impl PartialOrd<ArchivedSocketAddrV4> for SocketAddrV4
sourcefn partial_cmp(&self, other: &ArchivedSocketAddrV4) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedSocketAddrV4) -> 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<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
impl PartialOrd<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
sourcefn partial_cmp(&self, other: &ArchivedSocketAddrV4) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedSocketAddrV4) -> 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<SocketAddrV4> for ArchivedSocketAddrV4
impl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4
sourcefn partial_cmp(&self, other: &SocketAddrV4) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketAddrV4) -> 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 ToSocketAddrs for ArchivedSocketAddrV4
impl ToSocketAddrs for ArchivedSocketAddrV4
type Iter = <SocketAddrV4 as ToSocketAddrs>::Iter
type Iter = <SocketAddrV4 as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond to. Read more
sourcefn to_socket_addrs(&self) -> Result<Self::Iter>
fn to_socket_addrs(&self) -> Result<Self::Iter>
Converts this object to an iterator of resolved SocketAddr
s. Read more
impl Copy for ArchivedSocketAddrV4
impl Eq for ArchivedSocketAddrV4
impl StructuralEq for ArchivedSocketAddrV4
impl StructuralPartialEq for ArchivedSocketAddrV4
Auto Trait Implementations
impl RefUnwindSafe for ArchivedSocketAddrV4
impl Send for ArchivedSocketAddrV4
impl Sync for ArchivedSocketAddrV4
impl Unpin for ArchivedSocketAddrV4
impl UnwindSafe for ArchivedSocketAddrV4
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