Crate acid_io

Source
Expand description

A pared-down version of std::io usable in no_std contexts.

Modules§

prelude
The I/O Prelude.

Structs§

Cursor
A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
Empty
A reader which is always at EOF.
Error
The error type for I/O operations of the Read, Write, Seek, and associated traits.
IoSlice
A buffer type used with Write::write_vectored.
IoSliceMut
A buffer type used with Read::read_vectored.
Repeat
A reader which yields one byte over and over and over and over and over and…
Sink
A writer which will move data into the void.

Enums§

ErrorKind
A list specifying general categories of I/O error.
SeekFrom
Enumeration of possible methods to seek within an I/O object.

Traits§

BufRead
A BufRead is a type of Reader which has an internal buffer, allowing it to perform extra ways of reading.
ErrorTrait
A trait providing a subset of std::error::Error’s functionality.
Read
The Read trait allows for reading bytes from a source.
Seek
The Seek trait provides a cursor which can be moved within a stream of bytes.
Write
A trait for objects which are byte-oriented sinks.

Functions§

copy
Copies the entire contents of a reader into a writer.
empty
Constructs a new handle to an empty reader.
repeat
Creates an instance of a reader that infinitely repeats one byte.
sink
Creates an instance of a writer which will successfully consume all data.

Type Aliases§

Result
A specialized Result type for I/O operations.