This commit is contained in:
Noah Kennedy
2023-10-20 12:11:27 -05:00
parent c03187281a
commit 8f0f23d8a2
+4 -1
View File
@@ -119,7 +119,10 @@ impl UnixListener {
/// These flags replace any epoll flags would normally set when registering the fd.
#[track_caller]
#[cfg(all(target_os = "linux", tokio_unstable))]
pub fn from_std_with_flags(listener: net::UnixListener, flags: u32) -> io::Result<UnixListener> {
pub fn from_std_with_flags(
listener: net::UnixListener,
flags: u32,
) -> io::Result<UnixListener> {
let io = mio::net::UnixListener::from_std(listener);
let io = PollEvented::new_raw(io, flags)?;
Ok(UnixListener { io })