vexide_core

Module io

source
Expand description

Serial input and output functionality.

This module aims to provide a very similar API to the Rust standard library’s std::io module.

Macros§

  • Prints and returns the value of a given expression for quick and dirty debugging.
  • Prints a message to the standard output.
  • Prints a message to the standard output and appends a newline.

Structs§

  • An iterator over u8 values of a reader.
  • Adaptor to chain together two readers.
  • A Cursor wraps an in-memory buffer and provides it with a Seek implementation.
  • The error type for I/O operations of the Read, Write, Seek, and associated traits.
  • A handle to the serial input stream of this program.
  • A locked serial input stream. Only one of these can exist at a time and reads occur without waiting.
  • A handle to the serial output stream of this program.
  • A locked serial output stream. Only one of these can exist at a time and writes occur without waiting.
  • Reader adaptor which limits the bytes read from an underlying reader.

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.
  • 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§

  • Constructs a handle to the serial input stream.
  • Constructs a handle to the serial output stream

Type Aliases§