logos.std.io.write
Module std · package logos-std
Traits
traitWrite
trait Write
A byte-oriented output sink.
write/flush follow the shared Read/Write convention: positive = byte
count, zero = sink refused further bytes (treat as error), negative = -errno.
Implemented by: FdWriter BufWriter TcpStream AsyncTcpStream ChunkedWriter Pipe
Types
structIoSlice
struct IoSlice
A borrowed (pointer, length) buffer slice for vectored I/O.
Fields
base: *const u8
Pointer to the first byte of the slice.
len: i64
Number of bytes in the slice.
Functions
fnio_slice
fn io_slice(ptr: *const u8, len: i64) -> IoSlice
Builds an IoSlice from a raw pointer and length.
fnwrite_all
fn write_all(w: &mut W, buf: *const u8, len: i64) -> i64
Writes all len bytes from buf, looping over partial writes.
Returns 0 on success, or the negative errno from the first failing write.