Skip to content

Commit 4c13791

Browse files
committed
Fix cloudabi
1 parent 5ca3b00 commit 4c13791

File tree

1 file changed

+9
-1
lines changed
  • src/libstd/sys/cloudabi/shims

1 file changed

+9
-1
lines changed

src/libstd/sys/cloudabi/shims/net.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use fmt;
2-
use io;
2+
use io::{self, IoVec, IoVecMut};
33
use net::{Ipv4Addr, Ipv6Addr, Shutdown, SocketAddr};
44
use time::Duration;
55
use sys::{unsupported, Void};
@@ -42,10 +42,18 @@ impl TcpStream {
4242
match self.0 {}
4343
}
4444

45+
pub fn read_vectored(&self, _: &mut [IoVecMut<'_>]) -> io::Result<usize> {
46+
match self.0 {}
47+
}
48+
4549
pub fn write(&self, _: &[u8]) -> io::Result<usize> {
4650
match self.0 {}
4751
}
4852

53+
pub fn write_vectored(&self, _: &[IoVec<'_>]) -> io::Result<usize> {
54+
match self.0 {}
55+
}
56+
4957
pub fn peer_addr(&self) -> io::Result<SocketAddr> {
5058
match self.0 {}
5159
}

0 commit comments

Comments
 (0)