We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
AsRawFd
AddrStream
1 parent 4216b2d commit b5d5e21Copy full SHA for b5d5e21
src/server/tcp.rs
@@ -184,6 +184,8 @@ mod addr_stream {
184
use bytes::{Buf, BufMut};
185
use std::io;
186
use std::net::SocketAddr;
187
+ #[cfg(unix)]
188
+ use std::os::unix::io::{AsRawFd, RawFd};
189
use tokio::io::{AsyncRead, AsyncWrite};
190
use tokio::net::TcpStream;
191
@@ -288,4 +290,11 @@ mod addr_stream {
288
290
Pin::new(&mut self.inner).poll_shutdown(cx)
289
291
}
292
293
+
294
295
+ impl AsRawFd for AddrStream {
296
+ fn as_raw_fd(&self) -> RawFd {
297
+ self.inner.as_raw_fd()
298
+ }
299
300
0 commit comments