pub struct ArchivedSocketAddrV4 { /* private fields */ }
Expand description
An archived SocketAddrV4
.
Implementations§
Source§impl ArchivedSocketAddrV4
impl ArchivedSocketAddrV4
Sourcepub fn as_socket_addr_v4(&self) -> SocketAddrV4
pub fn as_socket_addr_v4(&self) -> SocketAddrV4
Returns a SocketAddrV4
with the same value.
Trait Implementations§
Source§impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4
impl<__C: ?Sized> CheckBytes<__C> for ArchivedSocketAddrV4
Source§type Error = StructCheckError
type Error = StructCheckError
The error that may result from checking the type.
Source§unsafe fn check_bytes<'__bytecheck>(
value: *const Self,
context: &mut __C,
) -> Result<&'__bytecheck Self, StructCheckError>
unsafe fn check_bytes<'__bytecheck>( value: *const Self, context: &mut __C, ) -> Result<&'__bytecheck Self, StructCheckError>
Checks whether the given pointer points to a valid value within the
given context. Read more
Source§impl Clone for ArchivedSocketAddrV4
impl Clone for ArchivedSocketAddrV4
Source§fn clone(&self) -> ArchivedSocketAddrV4
fn clone(&self) -> ArchivedSocketAddrV4
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ArchivedSocketAddrV4
impl Debug for ArchivedSocketAddrV4
Source§impl Default for ArchivedSocketAddrV4
impl Default for ArchivedSocketAddrV4
Source§fn default() -> ArchivedSocketAddrV4
fn default() -> ArchivedSocketAddrV4
Returns the “default value” for a type. Read more
Source§impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
impl<D: Fallible + ?Sized> Deserialize<SocketAddrV4, D> for ArchivedSocketAddrV4
Source§fn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV4, D::Error>
fn deserialize(&self, deserializer: &mut D) -> Result<SocketAddrV4, D::Error>
Deserializes using the given deserializer
Source§impl Hash for ArchivedSocketAddrV4
impl Hash for ArchivedSocketAddrV4
Source§impl Ord for ArchivedSocketAddrV4
impl Ord for ArchivedSocketAddrV4
Source§fn cmp(&self, other: &ArchivedSocketAddrV4) -> Ordering
fn cmp(&self, other: &ArchivedSocketAddrV4) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<ArchivedSocketAddrV4> for SocketAddrV4
impl PartialEq<ArchivedSocketAddrV4> for SocketAddrV4
Source§impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
impl PartialEq<SocketAddrV4> for ArchivedSocketAddrV4
Source§impl PartialEq for ArchivedSocketAddrV4
impl PartialEq for ArchivedSocketAddrV4
Source§impl PartialOrd<ArchivedSocketAddrV4> for SocketAddrV4
impl PartialOrd<ArchivedSocketAddrV4> for SocketAddrV4
Source§impl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4
impl PartialOrd<SocketAddrV4> for ArchivedSocketAddrV4
Source§impl PartialOrd for ArchivedSocketAddrV4
impl PartialOrd for ArchivedSocketAddrV4
Source§impl ToSocketAddrs for ArchivedSocketAddrV4
impl ToSocketAddrs for ArchivedSocketAddrV4
Source§type Iter = <SocketAddrV4 as ToSocketAddrs>::Iter
type Iter = <SocketAddrV4 as ToSocketAddrs>::Iter
Returned iterator over socket addresses which this type may correspond
to.
Source§fn 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 ArchivedSocketAddrV4
impl Eq for ArchivedSocketAddrV4
impl StructuralPartialEq for ArchivedSocketAddrV4
Auto Trait Implementations§
impl Freeze for ArchivedSocketAddrV4
impl RefUnwindSafe for ArchivedSocketAddrV4
impl Send for ArchivedSocketAddrV4
impl Sync for ArchivedSocketAddrV4
impl Unpin for ArchivedSocketAddrV4
impl UnwindSafe for ArchivedSocketAddrV4
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn 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.
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: *const T) -> Layout
fn layout_raw(_: *const T) -> Layout
Gets the layout of the type.