multipart-write 0.1.0-beta.4

Sink-like interface for writing an object in parts
Documentation

Description

This crate contains the trait MultipartWrite, assorted implementations, and combinators.

A MultipartWrite is a similar interface to Sink, except that writing an item or completing the write both return values.

See a conceptual example of a MultipartWrite here.

Motivation

Sink is a useful API, but it is just that--a sink. The end of a stream. It's useful to have the backpressure mechanism that poll_ready/start_send enables while being able to act as a stream itself and produce items that can be forwarded for more processing.