| Crates.io | multipart-write |
| lib.rs | multipart-write |
| version | 0.1.0-rc5 |
| created_at | 2025-10-19 08:13:33.885005+00 |
| updated_at | 2025-11-22 05:43:32.851229+00 |
| description | Sink-like interface for writing an object in parts |
| homepage | |
| repository | https://github.com/quasi-coherent/multipart-write |
| max_upload_size | |
| id | 1890191 |
| size | 123,468 |
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.
Here is a conceptual example of a MultipartWrite.
Sink is a useful API, but it is just that: a sink, the end of a stream.
It's valuable to have the backpressure mechanism that poll_ready combined with start_send enables,
and it's nice to have the flexibility that the shape of Sink provides in what kinds of values you can
send with it.
The idea for MultipartWrite is to:
Sink when the use case would need a value returned by sending to it or closing it.