1
Fork 0

Constify methods of std::net::SocketAddr, SocketAddrV4 and SocketAddrV6

The following methods are made unstable const under the `const_socketaddr` feature:

`SocketAddr`
 - `ip`
 - `port`
 - `is_ipv4`
 - `is_ipv6`

`SocketAddrV4`
 - `ip`
 - `port`

`SocketAddrV6`
 - `ip`
 - `port`
 - `flowinfo`
 - `scope_id`
This commit is contained in:
Christiaan Dirkx 2021-02-24 18:18:26 +01:00
parent d1206f950f
commit 5b84b9a8d8
2 changed files with 21 additions and 10 deletions

View file

@ -247,6 +247,7 @@
#![feature(const_ip)]
#![feature(const_ipv6)]
#![feature(const_raw_ptr_deref)]
#![feature(const_socketaddr)]
#![feature(const_ipv4)]
#![feature(container_error_extra)]
#![feature(core_intrinsics)]