Struct rkyv::net::ArchivedSocketAddrV4 [−][src]
pub struct ArchivedSocketAddrV4 { /* fields omitted */ }
Expand description
An archived SocketAddrV4
.
Implementations
Returns a SocketAddrV4
with the same value.
Trait Implementations
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4 where
ArchivedIpv4Addr: CheckBytes<__C>,
Archived<u16>: CheckBytes<__C>,
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4 where
ArchivedIpv4Addr: CheckBytes<__C>,
Archived<u16>: CheckBytes<__C>,
type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C
) -> Result<&'__bytecheck Self, Self::Error>
Checks whether the given pointer points to a valid value within the given context. Read more
Returns the “default value” for a type. Read more
Deserializes using the given deserializer
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
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
Converts this object to an iterator of resolved SocketAddr
s. Read more
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
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more