Struct rkyv::std_impl::net::ArchivedSocketAddrV4[][src]

pub struct ArchivedSocketAddrV4 { /* fields omitted */ }

An archived SocketAddrV4.

Implementations

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]

type Error = StructCheckError

The error that may result from checking the type.

impl Clone for ArchivedSocketAddrV4[src]

impl Copy for ArchivedSocketAddrV4[src]

impl Default for ArchivedSocketAddrV4[src]

impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4[src]

impl Eq for ArchivedSocketAddrV4[src]

impl Hash for ArchivedSocketAddrV4[src]

impl Ord for ArchivedSocketAddrV4[src]

impl PartialEq<ArchivedSocketAddrV4> for ArchivedSocketAddrV4[src]

impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4[src]

impl PartialOrd<ArchivedSocketAddrV4> for ArchivedSocketAddrV4[src]

impl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4[src]

impl StructuralEq for ArchivedSocketAddrV4[src]

impl StructuralPartialEq 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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> ArchivePointee for T[src]

type ArchivedMetadata = ()

The archived version of the pointer metadata for this type.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointee for T[src]

type Metadata = ()

The type for metadata in pointers and references to Self.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.