Enum rkyv::std_impl::net::ArchivedSocketAddr [−][src]
#[repr(u8)] pub enum ArchivedSocketAddr { V4(ArchivedSocketAddrV4), V6(ArchivedSocketAddrV6), }
Expand description
An archived SocketAddr
.
Variants
An IPv4 socket address.
An IPv6 socket address.
Implementations
Returns a SocketAddr
with the same value.
Returns true
if the IP address in this ArchivedSocketAddr
is an
IPv4
address, and false
otherwise.
Returns true
if the IP address in this ArchivedSocketAddr
is an
IPv6
address, and false
otherwise.
Trait Implementations
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddr where
ArchivedSocketAddrV4: CheckBytes<__C>,
ArchivedSocketAddrV6: CheckBytes<__C>,
[src]
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddr where
ArchivedSocketAddrV4: CheckBytes<__C>,
ArchivedSocketAddrV6: CheckBytes<__C>,
[src]type Error = EnumCheckError<u8>
type Error = EnumCheckError<u8>
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]
unsafe fn check_bytes<'a>(
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
[src]Checks whether the given pointer points to a valid value within the given context. Read more
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
type Iter = <SocketAddr as ToSocketAddrs>::Iter
type Iter = <SocketAddr 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 ArchivedSocketAddr
impl Send for ArchivedSocketAddr
impl Sync for ArchivedSocketAddr
impl Unpin for ArchivedSocketAddr
impl UnwindSafe for ArchivedSocketAddr
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