Trait method lrs::fmt::Write::write

Write a buffer to the byte stream.

Syntax

fn write(&mut self, buf: &[u8]) -> Result<usize, Errno>

Arguments

NameDescription
buf

The buffer to be written.

Return value

Returns the total number of bytes written.

Remarks

The default implementation calls gather_write with a single buffer.

See also