Skip to content

Commit 3bd2c6c

Browse files
committed
Add missing functions.
1 parent 10a7543 commit 3bd2c6c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/libstd/sys/unix/net_fd.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ impl NetFileDesc {
6464
Ok(ret as usize)
6565
}
6666

67+
#[inline]
68+
pub fn is_read_vectored(&self) -> bool {
69+
true
70+
}
71+
6772
pub fn read_to_end(&self, buf: &mut Vec<u8>) -> io::Result<usize> {
6873
let mut me = self;
6974
(&mut me).read_to_end(buf)
@@ -87,6 +92,11 @@ impl NetFileDesc {
8792
Ok(ret as usize)
8893
}
8994

95+
#[inline]
96+
pub fn is_write_vectored(&self) -> bool {
97+
true
98+
}
99+
90100
#[cfg(target_os = "linux")]
91101
pub fn get_cloexec(&self) -> io::Result<bool> {
92102
unsafe { Ok((cvt(netc::fcntl(self.fd, netc::F_GETFD))? & netc::FD_CLOEXEC) != 0) }

0 commit comments

Comments
 (0)