pub trait Write {
// Required methods
fn write(&mut self, buf: &[u8]) -> Result<usize>;
fn flush(&mut self) -> Result<()>;
// Provided method
fn write_all(&mut self, buf: &[u8]) -> Result<()> { ... }
}Expand description
A generic trait describing an output stream. See std::io::Write for more info.
Required Methods§
Provided Methods§
Implementations on Foreign Types§
Source§impl Write for &UnixStream
Available on crate feature std only.
impl Write for &UnixStream
Available on crate feature
std only.Source§impl Write for &ChildStdin
Available on crate feature std only.
impl Write for &ChildStdin
Available on crate feature
std only.Source§impl Write for UnixStream
Available on crate feature std only.
impl Write for UnixStream
Available on crate feature
std only.Source§impl Write for ChildStdin
Available on crate feature std only.
impl Write for ChildStdin
Available on crate feature
std only.Source§impl<W> Write for LineWriter<W>
Available on crate feature std only.
impl<W> Write for LineWriter<W>
Available on crate feature
std only.