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:
parent
d1206f950f
commit
5b84b9a8d8
2 changed files with 21 additions and 10 deletions
|
@ -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)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue