Crate asyncio_utils

Source

Structs§

LimitReader
Pure implementation for LimitReader to restrict number of bytes can be read Useful when you want to read stream but want to end early no matter what
LimitSeekerReader
An AsyncRead + AsyncSeek wrapper It supports limit the bytes can be read. Typically used when you want to read a specific segments from a file
UndoReader
Undo reader supports unread(&u8) Useful when you are doing serialization/deserialization where you need to put data back (undo the read) You can use UndoReader as if it is a normal AsyncRead Additionally, UndoReader supports a limit as well. It would stop reading after limit is reached (EOF) Example:

Enums§

ObserverDecision

Traits§

EhRead
Enhanced Reader for std::io::Read It provides convenient methods for exact reading without throwing error It allow you to send it to writer
StreamObserver
Observe a stream’s operation when user code is not involved. For example: When you call EhRead.stream_to function, and you may want to calculate the checksum (SHA1, SHA256 or MD5 along the way, you can observe the stream copy using the observer)