Module io

Source
Expand description

I/O functionality.

Extends: std::{io}


§Vendored

This is adapted work from no_std_io.

Structs§

Iostd, or non-std and io
🌐 I/O-related operations.
IoBufReader
?std Adds buffering to any reader.
IoBufWriter
?std Wraps a writer and buffers its output.
IoBytes
?std An iterator over u8 values of a reader.
IoChain
?std Adapter to chain together two readers.
IoCursor
?std Wraps an in-memory buffer and provides it with an IoSeek implementation.
IoEmptystd
std Ignores any data written via IoWrite, and read via IoRead.
IoError
🚩+ ?std Error type for IoRead, IoWrite, IoSeek operations.
IoLineWriter
?std Like BufWriter, but flushing whenever a newline (0x0a, ' ') is detected.
IoLinesstd
std An iterator over the lines of an instance of IoBufRead.
IoRepeatstd
std A reader which yields one byte over and over and over and over and over and…
IoSinkstd
std A writer which will move data into the void.
IoSlicestd
std A buffer type used with IoWrite::write_vectored.
IoSliceMutstd
std A buffer type used with IoRead::read_vectored.
IoSplitstd
std An iterator over the contents of an instance of BufRead split on a particular byte.
IoTake
?std Reader adapter which limits the bytes read from an underlying reader.
Stderrstd
std A handle to the standard error stream of a process.
StderrLockstd
std A locked reference to the Stderr handle.
Stdinstd
std A handle to the standard input stream of a process.
StdinLockstd
std A locked reference to the Stdin handle.
Stdoutstd
std A handle to the global standard output stream of the current process.
StdoutLockstd
std A locked reference to the Stdout handle.

Enums§

IoErrorKind
🚩+ ?std A list specifying general categories of I/O error.

Traits§

IoBufRead
?std A type of Reader which has an internal buffer.
IoRead
?std Allows for reading bytes from a source.
IoSeek
?std Provides a cursor which can be moved within a stream of bytes.
IoWrite
?std A trait for objects which are byte-oriented sinks.

Type Aliases§

IoResult
⚖️ ?std A specialized Result type for I/O operations.