bytes-handoff 1.0.0

Incremental async byte ingestion and bounded owned write handoff.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Incremental byte ingestion and owned write handoff for async I/O boundaries.
//!
//! This crate is intentionally small: it does not replace `AsyncRead` or
//! `AsyncWrite`. It owns the byte lifecycle around those traits so callers can
//! peek at incomplete input, split complete prefixes into `Bytes`, preserve
//! tails across mode changes, and submit large owned writes without borrowing
//! memory across an async socket operation.

mod error;
mod read;
mod write;

pub use error::{BackpressureReason, BufferError, WriteBackpressure, WriteError};
pub use read::{HandoffBuffer, HandoffBufferConfig};
pub use write::{WriteCompletion, WriteHandoff, WriteHandoffConfig, WriteTicket};