[−][src]Struct posix_socket::Inet6SocketAddress
IPv6 socket address.
This includes an IPv6 address and a 16-bit port number.
Implementations
impl Inet6SocketAddress
[src]
pub fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> Self
[src]
Create an IPv6 socket address.
pub fn from_raw(inner: sockaddr_in6) -> Self
[src]
Create an IPv6 socket address from a libc::sockaddr_in6
.
pub fn into_raw(self) -> sockaddr_in6
[src]
Convert the [SocketAddress
] into raw libc
parts.
pub fn ip(&self) -> Ipv6Addr
[src]
Get the IP address associated with the socket address.
pub fn set_ip(&mut self, ip: Ipv6Addr)
[src]
Set the IP address associated with the socket address.
pub fn port(&self) -> u16
[src]
Get the port number associated with the socket address.
pub fn set_port(&mut self, port: u16)
[src]
Set the port number associated with the socket address.
pub fn set_flowinfo(&mut self, flowinfo: u32)
[src]
Set the flow information associated with the socket address.
pub fn set_scope_id(&mut self, scope_id: u32)
[src]
Set the scope ID associated with the socket address.
Trait Implementations
impl AsSocketAddress for Inet6SocketAddress
[src]
fn as_sockaddr(&self) -> *const sockaddr
[src]
fn as_sockaddr_mut(address: &mut MaybeUninit<Self>) -> *mut sockaddr
[src]
fn len(&self) -> socklen_t
[src]
fn finalize(address: MaybeUninit<Self>, len: socklen_t) -> Result<Self>
[src]
fn max_len() -> socklen_t
[src]
fn family(&self) -> sa_family_t
[src]
impl Clone for Inet6SocketAddress
[src]
fn clone(&self) -> Inet6SocketAddress
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'_> From<&'_ Inet6SocketAddress> for SocketAddress
[src]
fn from(other: &Inet6SocketAddress) -> Self
[src]
impl<'_> From<&'_ Inet6SocketAddress> for SocketAddrV6
[src]
fn from(other: &Inet6SocketAddress) -> Self
[src]
impl<'_> From<&'_ SocketAddrV6> for Inet6SocketAddress
[src]
fn from(other: &SocketAddrV6) -> Self
[src]
impl From<Inet6SocketAddress> for SocketAddress
[src]
fn from(other: Inet6SocketAddress) -> Self
[src]
impl From<Inet6SocketAddress> for SocketAddrV6
[src]
fn from(other: Inet6SocketAddress) -> Self
[src]
impl From<SocketAddrV6> for Inet6SocketAddress
[src]
fn from(other: SocketAddrV6) -> Self
[src]
impl SpecificSocketAddress for Inet6SocketAddress
[src]
fn static_family() -> sa_family_t
[src]
Auto Trait Implementations
impl RefUnwindSafe for Inet6SocketAddress
impl Send for Inet6SocketAddress
impl Sync for Inet6SocketAddress
impl Unpin for Inet6SocketAddress
impl UnwindSafe for Inet6SocketAddress
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,