Trait lrs::fmt::Write

Objects that wrap a byte-stream for writing.

Syntax

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

Methods

ReceiverNameDescription
&mut selfgather_write

Writes multiple buffers to the byte-stream.

&mut selfwrite

Write a buffer to the byte stream.

&mut selfwrite_all

Tries to write the complete buffer to the byte-stream.

&mut selfwrite_str

Writes a string to the byte-stream.