Update name

This commit is contained in:
Steven Fackler
2020-03-11 18:02:52 -07:00
parent 15262ec6be
commit 07443f17d4
42 changed files with 158 additions and 158 deletions

View File

@@ -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()
}

View File

@@ -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
}

View File

@@ -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> {

View File

@@ -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!();
}

View File

@@ -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<()> {

View File

@@ -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 {

View File

@@ -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
}