Struct nix::sys::socket::SockaddrIn6
source · pub struct SockaddrIn6(/* private fields */);
Expand description
An IPv6 socket address
Implementations§
Trait Implementations§
source§impl AsRef<sockaddr_in6> for SockaddrIn6
impl AsRef<sockaddr_in6> for SockaddrIn6
source§fn as_ref(&self) -> &sockaddr_in6
fn as_ref(&self) -> &sockaddr_in6
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for SockaddrIn6
impl Clone for SockaddrIn6
source§fn clone(&self) -> SockaddrIn6
fn clone(&self) -> SockaddrIn6
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 SockaddrIn6
impl Debug for SockaddrIn6
source§impl Display for SockaddrIn6
impl Display for SockaddrIn6
source§impl From<SockaddrIn6> for SocketAddr
impl From<SockaddrIn6> for SocketAddr
source§fn from(addr: SockaddrIn6) -> Self
fn from(addr: SockaddrIn6) -> Self
Converts to this type from the input type.
source§impl From<SockaddrIn6> for SocketAddrV6
impl From<SockaddrIn6> for SocketAddrV6
source§fn from(addr: SockaddrIn6) -> Self
fn from(addr: SockaddrIn6) -> Self
Converts to this type from the input type.
source§impl From<SockaddrIn6> for sockaddr_in6
impl From<SockaddrIn6> for sockaddr_in6
source§fn from(sin6: SockaddrIn6) -> sockaddr_in6
fn from(sin6: SockaddrIn6) -> sockaddr_in6
Converts to this type from the input type.
source§impl From<SocketAddrV6> for SockaddrIn6
impl From<SocketAddrV6> for SockaddrIn6
source§fn from(addr: SocketAddrV6) -> Self
fn from(addr: SocketAddrV6) -> Self
Converts to this type from the input type.
source§impl From<sockaddr_in6> for SockaddrIn6
impl From<sockaddr_in6> for SockaddrIn6
source§fn from(sin6: sockaddr_in6) -> SockaddrIn6
fn from(sin6: sockaddr_in6) -> SockaddrIn6
Converts to this type from the input type.
source§impl FromStr for SockaddrIn6
impl FromStr for SockaddrIn6
source§impl Hash for SockaddrIn6
impl Hash for SockaddrIn6
source§impl PartialEq for SockaddrIn6
impl PartialEq for SockaddrIn6
source§impl SockaddrLike for SockaddrIn6
impl SockaddrLike for SockaddrIn6
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 SockaddrIn6
impl Eq for SockaddrIn6
impl StructuralPartialEq for SockaddrIn6
Auto Trait Implementations§
impl Freeze for SockaddrIn6
impl RefUnwindSafe for SockaddrIn6
impl Send for SockaddrIn6
impl Sync for SockaddrIn6
impl Unpin for SockaddrIn6
impl UnwindSafe for SockaddrIn6
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
)