Crate async_io_utilities

Source
Expand description

An asynchronous IO utilities crate powered by tokio.

§Features

TODO

Read more.

Structs§

AsyncAppendReader
A wrapper around an AsyncRead implementation that allows appending bytes from a buffer during reads.
AsyncDelimiterReader
A wrapper around an AsyncRead implementation that allows matching of a multi-byte delimiter.
AsyncOffsetWriter
A wrapper around an AsyncWrite implementation which tracks the current byte offset.
AsyncPrependReader
A wrapper around an AsyncRead implementation that allows prepending bytes from a buffer during reads.

Constants§

SUGGESTED_BUFFER_SIZE
A suggested buffer size for IO operations; equal to 16Kb.

Functions§

copy
A buffered alternative to tokio::io::copy for high-throughput use cases.
read_bytes
Read and return a dynamic length vector of bytes from a reader which impls AsyncRead.
read_string
Read and return a dynamic length string from a reader which impls AsyncRead.