Struct rkyv::std_impl::net::ArchivedSocketAddrV4 [−][src]
pub struct ArchivedSocketAddrV4 { /* fields omitted */ }
An archived SocketAddrV4
.
Implementations
impl ArchivedSocketAddrV4
[src]
impl ArchivedSocketAddrV4
[src]pub fn as_socket_addr_v4(&self) -> SocketAddrV4
[src]
Returns a SocketAddrV4
with the same value.
pub fn ip(&self) -> &ArchivedIpv4Addr
[src]
Returns the IP address associated with this socket address.
pub fn port(&self) -> u16
[src]
Returns the port number associated with this socket address.
Trait Implementations
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4 where
ArchivedIpv4Addr: CheckBytes<__C>,
u16: CheckBytes<__C>,
[src]
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4 where
ArchivedIpv4Addr: CheckBytes<__C>,
u16: CheckBytes<__C>,
[src]type Error = StructCheckError
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]
value: *const Self,
context: &mut __C
) -> Result<&'a Self, Self::Error>
impl Clone for ArchivedSocketAddrV4
[src]
impl Clone for ArchivedSocketAddrV4
[src]fn clone(&self) -> ArchivedSocketAddrV4
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ArchivedSocketAddrV4
[src]
impl Copy for ArchivedSocketAddrV4
[src]impl Default for ArchivedSocketAddrV4
[src]
impl Default for ArchivedSocketAddrV4
[src]fn default() -> ArchivedSocketAddrV4
[src]
impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
[src]
impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
[src]fn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV4, D::Error>
[src]
impl Eq for ArchivedSocketAddrV4
[src]
impl Eq for ArchivedSocketAddrV4
[src]impl Hash for ArchivedSocketAddrV4
[src]
impl Hash for ArchivedSocketAddrV4
[src]impl Ord for ArchivedSocketAddrV4
[src]
impl Ord for ArchivedSocketAddrV4
[src]impl PartialEq<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
[src]
impl PartialEq<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
[src]fn eq(&self, other: &ArchivedSocketAddrV4) -> bool
[src]
fn ne(&self, other: &ArchivedSocketAddrV4) -> bool
[src]
impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
[src]
impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
[src]impl PartialOrd<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
[src]
impl PartialOrd<ArchivedSocketAddrV4> for ArchivedSocketAddrV4
[src]fn partial_cmp(&self, other: &ArchivedSocketAddrV4) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4
[src]
impl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4
[src]fn partial_cmp(&self, other: &SocketAddrV4) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl StructuralEq for ArchivedSocketAddrV4
[src]
impl StructuralEq for ArchivedSocketAddrV4
[src]impl ToSocketAddrs for ArchivedSocketAddrV4
[src]
impl ToSocketAddrs for ArchivedSocketAddrV4
[src]type Iter = <SocketAddrV4 as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond to. Read more
fn to_socket_addrs(&self) -> Result<Self::Iter>
[src]
Auto Trait Implementations
impl RefUnwindSafe for ArchivedSocketAddrV4
impl RefUnwindSafe for ArchivedSocketAddrV4
impl Send for ArchivedSocketAddrV4
impl Send for ArchivedSocketAddrV4
impl Sync for ArchivedSocketAddrV4
impl Sync for ArchivedSocketAddrV4
impl Unpin for ArchivedSocketAddrV4
impl Unpin for ArchivedSocketAddrV4
impl UnwindSafe for ArchivedSocketAddrV4
impl UnwindSafe for ArchivedSocketAddrV4
Blanket Implementations
impl<T> ArchivePointee for T
[src]
impl<T> ArchivePointee for T
[src]type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
[src]
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata