Module eos_rs::api::io

source ·
Expand description

Traits, structs and functions related to file handling and I/O.

You can opt-out of pulling in this module by disabling the io feature.

On the top-level this module re-exports acid_io.

EoS related file operations are in the sub-module file.

Modules

Structs

  • The BufReader<R> struct adds buffering to any reader.
  • Wraps a writer and buffers its output.
  • A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
  • A reader which is always at EOF.
  • The error type for I/O operations of the Read, Write, Seek, and associated traits.
  • An error returned by BufWriter::into_inner which combines an error that happened while writing out the buffer, and the buffered writer object which may be used to recover from the condition.
  • A buffer type used with Write::write_vectored.
  • A buffer type used with Read::read_vectored.
  • Wraps a writer and buffers output to it, flushing whenever a newline (0x0a, '\n') is detected.
  • An iterator over the lines of an instance of BufRead.
  • A reader which yields one byte over and over and over and over and over and…
  • A writer which will move data into the void.
  • An iterator over the contents of an instance of BufRead split on a particular byte.

Enums

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

Traits

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

Functions

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

Type Definitions