Trait bitcoin_io::Write
source · 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.