Objects that wrap a byte-stream for writing.
trait Write {
/* Required methods */
fn gather_write(&mut self, buf: &[&[u8]]) -> Result<usize, Errno>
/* Provided methods */
fn write(&mut self, buf: &[u8]) -> Result<usize, Errno>
fn write_all(&mut self, buf: &[u8]) -> Result<usize, Errno>
fn write_str(&mut self, buf: &str) -> Result<usize, Errno>
}| Receiver | Name | Description |
|---|---|---|
&mut self | gather_write | Writes multiple buffers to the byte-stream. |
&mut self | write | Write a buffer to the byte stream. |
&mut self | write_all | Tries to write the complete buffer to the byte-stream. |
&mut self | write_str | Writes a string to the byte-stream. |