Struct rkyv::net::ArchivedSocketAddrV6
source · [−]pub struct ArchivedSocketAddrV6 { /* private fields */ }
Expand description
An archived SocketAddrV6
.
Implementations
sourceimpl ArchivedSocketAddrV6
impl ArchivedSocketAddrV6
sourcepub fn as_socket_addr_v6(&self) -> SocketAddrV6
pub fn as_socket_addr_v6(&self) -> SocketAddrV6
Returns a SocketAddrV6
with the same value.
sourceimpl ArchivedSocketAddrV6
impl ArchivedSocketAddrV6
sourcepub const fn flowinfo(&self) -> u32
pub const fn flowinfo(&self) -> u32
Returns the flow information associated with this address.
See SocketAddrV6::flowinfo()
for more details.
sourcepub const fn ip(&self) -> &ArchivedIpv6Addr
pub const fn ip(&self) -> &ArchivedIpv6Addr
Returns the IP address associated with this socket address.
sourcepub const fn scope_id(&self) -> u32
pub const fn scope_id(&self) -> u32
Returns the scope ID associated with this address.
See SocketAddrV6::scope_id()
for more details.
Trait Implementations
sourceimpl Clone for ArchivedSocketAddrV6
impl Clone for ArchivedSocketAddrV6
sourcefn clone(&self) -> ArchivedSocketAddrV6
fn clone(&self) -> ArchivedSocketAddrV6
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 moresourceimpl Debug for ArchivedSocketAddrV6
impl Debug for ArchivedSocketAddrV6
sourceimpl Default for ArchivedSocketAddrV6
impl Default for ArchivedSocketAddrV6
sourcefn default() -> ArchivedSocketAddrV6
fn default() -> ArchivedSocketAddrV6
Returns the “default value” for a type. Read more
sourceimpl<D: Fallible + ?Sized> Deserialize<SocketAddrV6, D> for ArchivedSocketAddrV6
impl<D: Fallible + ?Sized> Deserialize<SocketAddrV6, D> for ArchivedSocketAddrV6
sourcefn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV6, D::Error>
fn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV6, D::Error>
Deserializes using the given deserializer
sourceimpl Hash for ArchivedSocketAddrV6
impl Hash for ArchivedSocketAddrV6
sourceimpl Ord for ArchivedSocketAddrV6
impl Ord for ArchivedSocketAddrV6
sourcefn cmp(&self, other: &ArchivedSocketAddrV6) -> Ordering
fn cmp(&self, other: &ArchivedSocketAddrV6) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ArchivedSocketAddrV6> for ArchivedSocketAddrV6
impl PartialEq<ArchivedSocketAddrV6> for ArchivedSocketAddrV6
sourcefn eq(&self, other: &ArchivedSocketAddrV6) -> bool
fn eq(&self, other: &ArchivedSocketAddrV6) -> bool
sourceimpl PartialEq<ArchivedSocketAddrV6> for SocketAddrV6
impl PartialEq<ArchivedSocketAddrV6> for SocketAddrV6
sourcefn eq(&self, other: &ArchivedSocketAddrV6) -> bool
fn eq(&self, other: &ArchivedSocketAddrV6) -> bool
sourceimpl PartialEq<SocketAddrV6> for ArchivedSocketAddrV6
impl PartialEq<SocketAddrV6> for ArchivedSocketAddrV6
sourcefn eq(&self, other: &SocketAddrV6) -> bool
fn eq(&self, other: &SocketAddrV6) -> bool
sourceimpl PartialOrd<ArchivedSocketAddrV6> for ArchivedSocketAddrV6
impl PartialOrd<ArchivedSocketAddrV6> for ArchivedSocketAddrV6
sourcefn partial_cmp(&self, other: &ArchivedSocketAddrV6) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedSocketAddrV6) -> Option<Ordering>
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 moresourceimpl PartialOrd<ArchivedSocketAddrV6> for SocketAddrV6
impl PartialOrd<ArchivedSocketAddrV6> for SocketAddrV6
sourcefn partial_cmp(&self, other: &ArchivedSocketAddrV6) -> Option<Ordering>
fn partial_cmp(&self, other: &ArchivedSocketAddrV6) -> Option<Ordering>
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 moresourceimpl PartialOrd<SocketAddrV6> for ArchivedSocketAddrV6
impl PartialOrd<SocketAddrV6> for ArchivedSocketAddrV6
sourcefn partial_cmp(&self, other: &SocketAddrV6) -> Option<Ordering>
fn partial_cmp(&self, other: &SocketAddrV6) -> Option<Ordering>
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 moresourceimpl ToSocketAddrs for ArchivedSocketAddrV6
impl ToSocketAddrs for ArchivedSocketAddrV6
type Iter = <SocketAddrV6 as ToSocketAddrs>::Iter
type Iter = <SocketAddrV6 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 moreimpl Copy for ArchivedSocketAddrV6
impl Eq for ArchivedSocketAddrV6
impl StructuralEq for ArchivedSocketAddrV6
impl StructuralPartialEq for ArchivedSocketAddrV6
Auto Trait Implementations
impl RefUnwindSafe for ArchivedSocketAddrV6
impl Send for ArchivedSocketAddrV6
impl Sync for ArchivedSocketAddrV6
impl Unpin for ArchivedSocketAddrV6
impl UnwindSafe for ArchivedSocketAddrV6
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(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more