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<SockaddrIn> for sockaddr_in
impl From<SockaddrIn> for sockaddr_in
source§fn from(sin: SockaddrIn) -> sockaddr_in
fn from(sin: SockaddrIn) -> sockaddr_in
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 From<sockaddr_in> for SockaddrIn
impl From<sockaddr_in> for SockaddrIn
source§fn from(sin: sockaddr_in) -> SockaddrIn
fn from(sin: sockaddr_in) -> SockaddrIn
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
)