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 &ChildStdin
Available on crate feature std
only.
impl Write for &ChildStdin
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.