Skip to main content

bytes_handoff/
lib.rs

1//! Incremental byte ingestion and owned write handoff for async I/O boundaries.
2//!
3//! This crate is intentionally small: it does not replace `AsyncRead` or
4//! `AsyncWrite`. It owns the byte lifecycle around those traits so callers can
5//! peek at incomplete input, split complete prefixes into `Bytes`, preserve
6//! tails across mode changes, and submit large owned writes without borrowing
7//! memory across an async socket operation.
8
9mod error;
10mod read;
11mod write;
12
13pub use error::{BackpressureReason, BufferError, WriteBackpressure, WriteError};
14pub use read::{HandoffBuffer, HandoffBufferConfig};
15pub use write::{WriteCompletion, WriteHandoff, WriteHandoffConfig, WriteTicket};