Expand description
This is an utility library for resumable byte transfers between buffers
supported by the bytes crate and byte-streams which support the
futures_io AsyncRead and/or
AsyncWrite traits.
This crate assumes the following behavoirs about AsyncRead/AsyncWrite implementations: If the poll_* method call results in:
-
Poll::Ready(Ok(n))withn != 0, bytes were successfully transferred -
otherwise, we assume that the call failed and no bytes were transferred at all
Structs§
Functions§
- poll_
read - This function tries to read at most
delta_limitbytes frominputtooutput. - poll_
write