diff options
| author | Steven Fackler <sfackler@gmail.com> | 2019-04-27 08:34:08 -0700 |
|---|---|---|
| committer | Steven Fackler <sfackler@gmail.com> | 2019-04-27 08:34:08 -0700 |
| commit | bd177f3ea31e47b94dd400239a9badfe2bd47355 (patch) | |
| tree | d6bc8669ce10dbb427760147938821f464fd606a /src/libstd/sys/unix/net.rs | |
| parent | d4a32d504a5aa49b951bfc70602a9615cb772acf (diff) | |
| download | rust-bd177f3ea31e47b94dd400239a9badfe2bd47355.tar.gz rust-bd177f3ea31e47b94dd400239a9badfe2bd47355.zip | |
Stabilized vectored IO
This renames `std::io::IoVec` to `std::io::IoSlice` and `std::io::IoVecMut` to `std::io::IoSliceMut`, and stabilizes `std::io::IoSlice`, `std::io::IoSliceMut`, `std::io::Read::read_vectored`, and `std::io::Write::write_vectored`. Closes #58452
Diffstat (limited to 'src/libstd/sys/unix/net.rs')
| -rw-r--r-- | src/libstd/sys/unix/net.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstd/sys/unix/net.rs b/src/libstd/sys/unix/net.rs index 7712a41ded4..75750b5c4e5 100644 --- a/src/libstd/sys/unix/net.rs +++ b/src/libstd/sys/unix/net.rs @@ -1,5 +1,5 @@ use crate::ffi::CStr; -use crate::io::{self, IoVec, IoVecMut}; +use crate::io::{self, IoSlice, IoSliceMut}; use crate::mem; use crate::net::{SocketAddr, Shutdown}; use crate::str; @@ -244,7 +244,7 @@ impl Socket { self.recv_with_flags(buf, MSG_PEEK) } - pub fn read_vectored(&self, bufs: &mut [IoVecMut<'_>]) -> io::Result<usize> { + pub fn read_vectored(&self, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { self.0.read_vectored(bufs) } @@ -276,7 +276,7 @@ impl Socket { self.0.write(buf) } - pub fn write_vectored(&self, bufs: &[IoVec<'_>]) -> io::Result<usize> { + pub fn write_vectored(&self, bufs: &[IoSlice<'_>]) -> io::Result<usize> { self.0.write_vectored(bufs) } |
