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 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<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 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
)