#[repr(transparent)]pub struct SockaddrIn6(_);
Available on crate feature
socket
only.Expand description
An IPv6 socket address
Implementations
sourceimpl SockaddrIn6
impl SockaddrIn6
Trait Implementations
sourceimpl AsRef<sockaddr_in6> for SockaddrIn6
impl AsRef<sockaddr_in6> for SockaddrIn6
sourcefn as_ref(&self) -> &sockaddr_in6
fn as_ref(&self) -> &sockaddr_in6
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for SockaddrIn6
impl Clone for SockaddrIn6
sourcefn clone(&self) -> SockaddrIn6
fn clone(&self) -> SockaddrIn6
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SockaddrIn6
impl Debug for SockaddrIn6
sourceimpl Display for SockaddrIn6
impl Display for SockaddrIn6
sourceimpl From<SocketAddrV6> for SockaddrIn6
impl From<SocketAddrV6> for SockaddrIn6
sourcefn from(addr: SocketAddrV6) -> Self
fn from(addr: SocketAddrV6) -> Self
Converts to this type from the input type.
sourceimpl FromStr for SockaddrIn6
impl FromStr for SockaddrIn6
sourceimpl Hash for SockaddrIn6
impl Hash for SockaddrIn6
sourceimpl PartialEq<SockaddrIn6> for SockaddrIn6
impl PartialEq<SockaddrIn6> for SockaddrIn6
sourcefn eq(&self, other: &SockaddrIn6) -> bool
fn eq(&self, other: &SockaddrIn6) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SockaddrIn6) -> bool
fn ne(&self, other: &SockaddrIn6) -> bool
This method tests for !=
.
sourceimpl SockaddrLike for SockaddrIn6
impl SockaddrLike for SockaddrIn6
sourceunsafe 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
sourcefn as_ptr(&self) -> *const sockaddr
fn as_ptr(&self) -> *const sockaddr
Returns a raw pointer to the inner structure. Useful for FFI.
sourcefn family(&self) -> Option<AddressFamily>
fn family(&self) -> Option<AddressFamily>
Return the address family of this socket Read more
impl Copy for SockaddrIn6
impl Eq for SockaddrIn6
impl StructuralEq for SockaddrIn6
impl StructuralPartialEq for SockaddrIn6
Auto Trait Implementations
impl RefUnwindSafe for SockaddrIn6
impl Send for SockaddrIn6
impl Sync for SockaddrIn6
impl Unpin for SockaddrIn6
impl UnwindSafe for SockaddrIn6
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more