Struct std::net::SocketAddrV6
[−]
[src]
pub struct SocketAddrV6 { // some fields omitted }1.0.0
An IPv6 socket address.
Methods
impl SocketAddrV6
fn new(ip: Ipv6Addr, port: u16, flowinfo: u32, scope_id: u32) -> SocketAddrV6
Creates a new socket address from the ip/port/flowinfo/scope_id components.
fn ip(&self) -> &Ipv6Addr
Returns the IP address associated with this socket address.
fn set_ip(&mut self, new_ip: Ipv6Addr)
1.9.0
Change the IP address associated with this socket address.
fn port(&self) -> u16
Returns the port number associated with this socket address.
fn set_port(&mut self, new_port: u16)
1.9.0
Change the port number associated with this socket address.
fn flowinfo(&self) -> u32
Returns the flow information associated with this address,
corresponding to the sin6_flowinfo
field in C.
fn set_flowinfo(&mut self, new_flowinfo: u32)
1.9.0
Change the flow information associated with this socket address.
fn scope_id(&self) -> u32
Returns the scope ID associated with this address,
corresponding to the sin6_scope_id
field in C.
fn set_scope_id(&mut self, new_scope_id: u32)
1.9.0
Change the scope ID associated with this socket address.