Update name
This commit is contained in:
parent
15262ec6be
commit
07443f17d4
42 changed files with 158 additions and 158 deletions
|
@ -660,8 +660,8 @@ impl Read for File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -680,8 +680,8 @@ impl Write for File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.inner.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.inner.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -705,8 +705,8 @@ impl Read for &File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -725,8 +725,8 @@ impl Write for &File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.inner.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.inner.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
|
|
@ -292,8 +292,8 @@ impl<R: Read> Read for BufReader<R> {
|
|||
Ok(nread)
|
||||
}
|
||||
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
// we can't skip unconditionally because of the large buffer case in read.
|
||||
|
@ -684,8 +684,8 @@ impl<W: Write> Write for BufWriter<W> {
|
|||
}
|
||||
}
|
||||
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.get_ref().can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.get_ref().is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
|
|
@ -266,7 +266,7 @@ where
|
|||
Ok(nread)
|
||||
}
|
||||
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -377,7 +377,7 @@ impl Write for Cursor<&mut [u8]> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -398,7 +398,7 @@ impl Write for Cursor<&mut Vec<u8>> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -419,7 +419,7 @@ impl Write for Cursor<Vec<u8>> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -442,7 +442,7 @@ impl Write for Cursor<Box<[u8]>> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@ impl<R: Read + ?Sized> Read for &mut R {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
(**self).can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
(**self).is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -58,8 +58,8 @@ impl<W: Write + ?Sized> Write for &mut W {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
(**self).can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
(**self).is_write_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -120,8 +120,8 @@ impl<R: Read + ?Sized> Read for Box<R> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
(**self).can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
(**self).is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -157,8 +157,8 @@ impl<W: Write + ?Sized> Write for Box<W> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
(**self).can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
(**self).is_write_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -261,7 +261,7 @@ impl Read for &[u8] {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ impl Write for &mut [u8] {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -382,7 +382,7 @@ impl Write for Vec<u8> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -588,8 +588,8 @@ pub trait Read {
|
|||
/// and coalesce writes into a single buffer for higher performance.
|
||||
///
|
||||
/// The default implementation returns `false`.
|
||||
#[unstable(feature = "can_vector", issue = "none")]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
#[unstable(feature = "can_vector", issue = "69941")]
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
@ -1325,8 +1325,8 @@ pub trait Write {
|
|||
/// and coalesce writes into a single buffer for higher performance.
|
||||
///
|
||||
/// The default implementation returns `false`.
|
||||
#[unstable(feature = "can_vector", issue = "none")]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
#[unstable(feature = "can_vector", issue = "69941")]
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
|
|
@ -88,8 +88,8 @@ impl Read for StdinRaw {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -107,8 +107,8 @@ impl Write for StdoutRaw {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -125,8 +125,8 @@ impl Write for StderrRaw {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -156,9 +156,9 @@ impl<W: io::Write> io::Write for Maybe<W> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
match self {
|
||||
Maybe::Real(w) => w.can_write_vectored(),
|
||||
Maybe::Real(w) => w.is_write_vectored(),
|
||||
Maybe::Fake => true,
|
||||
}
|
||||
}
|
||||
|
@ -187,9 +187,9 @@ impl<R: io::Read> io::Read for Maybe<R> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
match self {
|
||||
Maybe::Real(w) => w.can_read_vectored(),
|
||||
Maybe::Real(w) => w.is_read_vectored(),
|
||||
Maybe::Fake => true,
|
||||
}
|
||||
}
|
||||
|
@ -383,8 +383,8 @@ impl Read for Stdin {
|
|||
self.lock().read_vectored(bufs)
|
||||
}
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.lock().can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.lock().is_read_vectored()
|
||||
}
|
||||
#[inline]
|
||||
unsafe fn initializer(&self) -> Initializer {
|
||||
|
@ -412,8 +412,8 @@ impl Read for StdinLock<'_> {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -584,8 +584,8 @@ impl Write for Stdout {
|
|||
self.lock().write_vectored(bufs)
|
||||
}
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.lock().can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.lock().is_write_vectored()
|
||||
}
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
self.lock().flush()
|
||||
|
@ -606,8 +606,8 @@ impl Write for StdoutLock<'_> {
|
|||
self.inner.borrow_mut().write_vectored(bufs)
|
||||
}
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.inner.borrow_mut().can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.inner.borrow_mut().is_write_vectored()
|
||||
}
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
self.inner.borrow_mut().flush()
|
||||
|
@ -758,8 +758,8 @@ impl Write for Stderr {
|
|||
self.lock().write_vectored(bufs)
|
||||
}
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.lock().can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.lock().is_write_vectored()
|
||||
}
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
self.lock().flush()
|
||||
|
@ -780,8 +780,8 @@ impl Write for StderrLock<'_> {
|
|||
self.inner.borrow_mut().write_vectored(bufs)
|
||||
}
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.inner.borrow_mut().can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.inner.borrow_mut().is_write_vectored()
|
||||
}
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
self.inner.borrow_mut().flush()
|
||||
|
|
|
@ -180,7 +180,7 @@ impl Read for Repeat {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -241,7 +241,7 @@ impl Write for Sink {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -577,8 +577,8 @@ impl Read for TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -597,8 +597,8 @@ impl Write for TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -616,8 +616,8 @@ impl Read for &TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -636,8 +636,8 @@ impl Write for &TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
|
|
@ -245,8 +245,8 @@ impl Write for ChildStdin {
|
|||
self.inner.write_vectored(bufs)
|
||||
}
|
||||
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
self.inner.can_write_vectored()
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.inner.is_write_vectored()
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -305,8 +305,8 @@ impl Read for ChildStdout {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
@ -366,8 +366,8 @@ impl Read for ChildStderr {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
@ -214,7 +214,7 @@ impl File {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ impl TcpStream {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -302,7 +302,7 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,7 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ impl Stdin {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
@ -57,7 +57,7 @@ impl Stdout {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -96,7 +96,7 @@ impl Stderr {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ impl File {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ impl File {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.inner.inner.can_read_vectored()
|
||||
}
|
||||
|
||||
|
@ -163,8 +163,8 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.inner.inner.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.inner.inner.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn peer_addr(&self) -> io::Result<SocketAddr> {
|
||||
|
|
|
@ -12,7 +12,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -656,8 +656,8 @@ impl io::Write for UnixStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
io::Write::can_write_vectored(&&*self)
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
io::Write::is_write_vectored(&&*self)
|
||||
}
|
||||
|
||||
fn flush(&mut self) -> io::Result<()> {
|
||||
|
@ -676,7 +676,7 @@ impl<'a> io::Write for &'a UnixStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
}
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -122,7 +122,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -829,8 +829,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize> {
|
||||
|
@ -846,8 +846,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> {
|
||||
|
|
|
@ -55,7 +55,7 @@ pub mod net {
|
|||
unimpl!();
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
unimpl!();
|
||||
}
|
||||
|
||||
|
@ -79,7 +79,7 @@ pub mod net {
|
|||
unimpl!();
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
unimpl!();
|
||||
}
|
||||
|
||||
|
@ -179,7 +179,7 @@ pub mod net {
|
|||
unimpl!();
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
unimpl!();
|
||||
}
|
||||
|
||||
|
@ -191,7 +191,7 @@ pub mod net {
|
|||
unimpl!();
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
unimpl!();
|
||||
}
|
||||
|
||||
|
|
|
@ -227,8 +227,8 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
fn recv_from_with_flags(
|
||||
|
@ -269,8 +269,8 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn set_timeout(&self, dur: Option<Duration>, kind: libc::c_int) -> io::Result<()> {
|
||||
|
|
|
@ -65,8 +65,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn write(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
|
@ -78,8 +78,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn fd(&self) -> &FileDesc {
|
||||
|
|
|
@ -22,7 +22,7 @@ impl io::Read for Stdin {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
}
|
||||
|
@ -43,7 +43,7 @@ impl io::Write for Stdout {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ impl io::Write for Stderr {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_write_vectored(&self) -> bool {
|
||||
fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
fn can_read_vectored(&self) -> bool {
|
||||
fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ impl FileDesc {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -352,8 +352,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize> {
|
||||
|
@ -369,8 +369,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> {
|
||||
|
|
|
@ -164,8 +164,8 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
fn recv_from_with_flags(
|
||||
|
@ -206,8 +206,8 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn set_timeout(&self, dur: Option<Duration>, kind: libc::c_int) -> io::Result<()> {
|
||||
|
|
|
@ -30,8 +30,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.0.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.0.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn write(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
|
@ -43,8 +43,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.0.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.0.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn fd(&self) -> &FileDesc {
|
||||
|
|
|
@ -400,7 +400,7 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -413,7 +413,7 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ impl TcpStream {
|
|||
unsupported()
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
unsupported()
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ impl TcpStream {
|
|||
unsupported()
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
unsupported()
|
||||
}
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ impl AnonPipe {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@ impl Stdin {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ impl Stdout {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ impl Stderr {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -202,7 +202,7 @@ impl File {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -214,7 +214,7 @@ impl File {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ impl TcpStream {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
@ -56,7 +56,7 @@ impl TcpStream {
|
|||
match self.0 {}
|
||||
}
|
||||
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
match self.0 {}
|
||||
}
|
||||
|
||||
|
|
|
@ -410,8 +410,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.handle.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.handle.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn read_at(&self, buf: &mut [u8], offset: u64) -> io::Result<usize> {
|
||||
|
@ -427,8 +427,8 @@ impl File {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.handle.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.handle.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn write_at(&self, buf: &[u8], offset: u64) -> io::Result<usize> {
|
||||
|
|
|
@ -93,7 +93,7 @@ impl RawHandle {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
@ -177,7 +177,7 @@ impl RawHandle {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
|
|
|
@ -267,7 +267,7 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
@ -330,7 +330,7 @@ impl Socket {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
true
|
||||
}
|
||||
|
||||
|
|
|
@ -183,8 +183,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn write(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
|
@ -196,8 +196,8 @@ impl AnonPipe {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.inner.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.inner.is_write_vectored()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -266,8 +266,8 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_read_vectored(&self) -> bool {
|
||||
self.inner.can_read_vectored()
|
||||
pub fn is_read_vectored(&self) -> bool {
|
||||
self.inner.is_read_vectored()
|
||||
}
|
||||
|
||||
pub fn write(&self, buf: &[u8]) -> io::Result<usize> {
|
||||
|
@ -283,8 +283,8 @@ impl TcpStream {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn can_write_vectored(&self) -> bool {
|
||||
self.inner.can_write_vectored()
|
||||
pub fn is_write_vectored(&self) -> bool {
|
||||
self.inner.is_write_vectored()
|
||||
}
|
||||
|
||||
pub fn peer_addr(&self) -> io::Result<SocketAddr> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue