pub struct InetV4SocketAddr {
pub sin_port: u16,
pub sin_addr: Ipv4Addr,
/* private fields */
}Expand description
An IpV4 socket address, converted from SocketAddr
Fields§
§sin_port: u16§sin_addr: Ipv4AddrImplementations§
Trait Implementations§
Source§impl Clone for InetV4SocketAddr
impl Clone for InetV4SocketAddr
Source§fn clone(&self) -> InetV4SocketAddr
fn clone(&self) -> InetV4SocketAddr
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InetV4SocketAddr
impl Debug for InetV4SocketAddr
Source§impl PartialEq for InetV4SocketAddr
impl PartialEq for InetV4SocketAddr
Source§fn eq(&self, other: &InetV4SocketAddr) -> bool
fn eq(&self, other: &InetV4SocketAddr) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl ToSocketAddr for InetV4SocketAddr
impl ToSocketAddr for InetV4SocketAddr
const DOMAIN: SockDomain = SockDomain::INETV4
Source§const FAMILY: u32 = _
const FAMILY: u32 = _
The family of the socket address, corresponding to a
SockDomain.Source§fn as_generic(&self) -> &SocketAddr
fn as_generic(&self) -> &SocketAddr
Converts this address to a generic SocketAddr.
Source§fn as_generic_mut(&mut self) -> &mut SocketAddr
fn as_generic_mut(&mut self) -> &mut SocketAddr
Converts this address to a generic SocketAddr.
Source§fn as_non_null(&mut self) -> NonNull<SocketAddr>
fn as_non_null(&mut self) -> NonNull<SocketAddr>
Converts this address to a generic NonNull pointer to SocketAddr.
impl Copy for InetV4SocketAddr
impl Eq for InetV4SocketAddr
impl StructuralPartialEq for InetV4SocketAddr
Auto Trait Implementations§
impl Freeze for InetV4SocketAddr
impl RefUnwindSafe for InetV4SocketAddr
impl Send for InetV4SocketAddr
impl Sync for InetV4SocketAddr
impl Unpin for InetV4SocketAddr
impl UnsafeUnpin for InetV4SocketAddr
impl UnwindSafe for InetV4SocketAddr
Blanket Implementations§
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