pub struct SockaddrIn(/* private fields */);
Expand description
An IPv4 socket address
Implementations§
Trait Implementations§
Source§impl AsRef<sockaddr_in> for SockaddrIn
impl AsRef<sockaddr_in> for SockaddrIn
Source§fn as_ref(&self) -> &sockaddr_in
fn as_ref(&self) -> &sockaddr_in
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for SockaddrIn
impl Clone for SockaddrIn
Source§fn clone(&self) -> SockaddrIn
fn clone(&self) -> SockaddrIn
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 SockaddrIn
impl Debug for SockaddrIn
Source§impl Display for SockaddrIn
impl Display for SockaddrIn
Source§impl From<SockaddrIn> for SocketAddrV4
impl From<SockaddrIn> for SocketAddrV4
Source§fn from(addr: SockaddrIn) -> Self
fn from(addr: SockaddrIn) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV4> for SockaddrIn
impl From<SocketAddrV4> for SockaddrIn
Source§fn from(addr: SocketAddrV4) -> Self
fn from(addr: SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl FromStr for SockaddrIn
impl FromStr for SockaddrIn
Source§impl Hash for SockaddrIn
impl Hash for SockaddrIn
Source§impl PartialEq for SockaddrIn
impl PartialEq for SockaddrIn
Source§impl SockaddrLike for SockaddrIn
impl SockaddrLike for SockaddrIn
Source§unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
unsafe fn from_raw(
addr: *const sockaddr,
len: Option<socklen_t>,
) -> Option<Self>where
Self: Sized,
Unsafe constructor from a variable length source Read more
Source§fn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
impl Copy for SockaddrIn
impl Eq for SockaddrIn
impl StructuralPartialEq for SockaddrIn
Auto Trait Implementations§
impl Freeze for SockaddrIn
impl RefUnwindSafe for SockaddrIn
impl Send for SockaddrIn
impl Sync for SockaddrIn
impl Unpin for SockaddrIn
impl UnwindSafe for SockaddrIn
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)