Expand description
§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.
Modules§
- io
MultipartWritefor foreign writer types.- prelude
- A prelude for this crate.
- stream
MultipartWriters compatible withStream.- write
MultipartWritecombinators.
Traits§
- Fused
Multipart Write - A writer that tracks whether or not the underlying writer should no longer be polled.
- Multipart
Write MultipartWriteis aSink-like interface for asynchronously writing an object in parts.
Type Aliases§
- BoxMultipart
Write - An owned, dynamically typed
MultipartWritefor use in cases where it is not possible or desirable to statically type it. - Local
BoxMultipart Write BoxMultipartWritebut without theSendrequirement.