pub struct SockaddrIn6(/* private fields */);Expand description
An IPv6 socket address
Implementations§
Trait Implementations§
Source§impl AsRef<sockaddr_in6> for SockaddrIn6
Available on crate feature net only.
impl AsRef<sockaddr_in6> for SockaddrIn6
Available on crate feature
net only.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 duplicate 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
Available on crate feature net only.
impl Display for SockaddrIn6
Available on crate feature
net only.Source§impl From<SockaddrIn6> for SocketAddrV6
Available on crate feature net only.
impl From<SockaddrIn6> for SocketAddrV6
Available on crate feature
net only.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
Available on crate feature net only.
impl From<SockaddrIn6> for sockaddr_in6
Available on crate feature
net only.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
Available on crate feature net only.
impl From<SocketAddrV6> for SockaddrIn6
Available on crate feature
net only.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
Available on crate feature net only.
impl From<sockaddr_in6> for SockaddrIn6
Available on crate feature
net only.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
Available on crate feature net only.
impl FromStr for SockaddrIn6
Available on crate feature
net only.Source§impl Hash for SockaddrIn6
impl Hash for SockaddrIn6
Source§impl PartialEq for SockaddrIn6
impl PartialEq for SockaddrIn6
Source§impl SockaddrLike for SockaddrIn6
Available on crate feature net only.
impl SockaddrLike for SockaddrIn6
Available on crate feature
net only.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