#poll #buffer #methods

poll-buf-utils

Utilities for poll_* methods working on buffers

3 releases (breaking)

0.2.0 Jun 8, 2020
0.1.0 Jun 8, 2020
0.0.0 Jun 8, 2020

#24 in #poll

MIT/Apache

5KB
63 lines

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)) with n != 0, bytes were successfully transferred

  • otherwise, we assume that the call failed and no bytes were transferred at all

Dependencies

~245KB