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.
1 parent 10a7543 commit 3bd2c6cCopy full SHA for 3bd2c6c
src/libstd/sys/unix/net_fd.rs
@@ -64,6 +64,11 @@ impl NetFileDesc {
64
Ok(ret as usize)
65
}
66
67
+ #[inline]
68
+ pub fn is_read_vectored(&self) -> bool {
69
+ true
70
+ }
71
+
72
pub fn read_to_end(&self, buf: &mut Vec<u8>) -> io::Result<usize> {
73
let mut me = self;
74
(&mut me).read_to_end(buf)
@@ -87,6 +92,11 @@ impl NetFileDesc {
87
92
88
93
89
94
95
96
+ pub fn is_write_vectored(&self) -> bool {
97
98
99
90
100
#[cfg(target_os = "linux")]
91
101
pub fn get_cloexec(&self) -> io::Result<bool> {
102
unsafe { Ok((cvt(netc::fcntl(self.fd, netc::F_GETFD))? & netc::FD_CLOEXEC) != 0) }
0 commit comments