Crate layered_io

source ·
Expand description

I/O traits extending std::io::Read and std::io::Write.

Structs§

Enums§

  • For interactivity, it’s desirable to avoid buffering data which is complete enough to be actionable. Activity allows writers to notify the API at points when the data provided is actionable and buffers should be flushed to the reader.
  • What is known about a stream in the future.

Traits§

  • A trait to help with buffering on top of ReadLayered and WriteLayered.
  • A trait which simply combines ReadLayered, WriteLayered, and HalfDuplex.
  • An extension of Read, with read_with_status and read_vectored_with_status which return status information and zero is not special-cased. It also allows streams to specify a minimum_buffer_size.
  • An extension of std::io::Write, but adds a close function to allow the stream to be closed and any outstanding errors to be reported, without requiring a sync_all.

Functions§