[][src]Struct posix_socket::Inet6SocketAddress

#[repr(C)]pub struct Inet6SocketAddress { /* fields omitted */ }

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]

impl Clone for Inet6SocketAddress[src]

impl<'_> From<&'_ Inet6SocketAddress> for SocketAddress[src]

impl<'_> From<&'_ Inet6SocketAddress> for SocketAddrV6[src]

impl<'_> From<&'_ SocketAddrV6> for Inet6SocketAddress[src]

impl From<Inet6SocketAddress> for SocketAddress[src]

impl From<Inet6SocketAddress> for SocketAddrV6[src]

impl From<SocketAddrV6> for Inet6SocketAddress[src]

impl SpecificSocketAddress for Inet6SocketAddress[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.