Stabilize unix_socket_creation
This commit is contained in:
parent
7f44b3a118
commit
a84e77bebf
1 changed files with 1 additions and 3 deletions
|
|
@ -140,7 +140,6 @@ impl SocketAddr {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(unix_socket_creation)]
|
||||
/// use std::os::unix::net::SocketAddr;
|
||||
/// use std::path::Path;
|
||||
///
|
||||
|
|
@ -154,12 +153,11 @@ impl SocketAddr {
|
|||
/// Creating a `SocketAddr` with a NULL byte results in an error.
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(unix_socket_creation)]
|
||||
/// use std::os::unix::net::SocketAddr;
|
||||
///
|
||||
/// assert!(SocketAddr::from_pathname("/path/with/\0/bytes").is_err());
|
||||
/// ```
|
||||
#[unstable(feature = "unix_socket_creation", issue = "93423")]
|
||||
#[stable(feature = "unix_socket_creation", since = "1.61.0")]
|
||||
pub fn from_pathname<P>(path: P) -> io::Result<SocketAddr>
|
||||
where
|
||||
P: AsRef<Path>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue