pub trait MultipartStreamExt: Stream {
// Provided methods
fn feed_multipart_write<Wr, F>(
self,
writer: Wr,
f: F,
) -> FeedMultipartWrite<Self, Wr, F>
where Wr: FusedMultipartWrite<Self::Item>,
F: FnMut(Wr::Ret) -> bool,
Self: Sized { ... }
fn write_complete<Wr>(self, writer: Wr) -> WriteComplete<Self, Wr> ⓘ
where Wr: MultipartWrite<Self::Item>,
Self: Sized { ... }
}Expand description
Extension trait for combining streams with MultipartWriters.
Provided Methods§
Sourcefn feed_multipart_write<Wr, F>(
self,
writer: Wr,
f: F,
) -> FeedMultipartWrite<Self, Wr, F>
fn feed_multipart_write<Wr, F>( self, writer: Wr, f: F, ) -> FeedMultipartWrite<Self, Wr, F>
This adapter transforms the stream into a new stream whose item type is
the output of the multipart writer writing parts until the closure F
indicates the writer should be completed.
Sourcefn write_complete<Wr>(self, writer: Wr) -> WriteComplete<Self, Wr> ⓘ
fn write_complete<Wr>(self, writer: Wr) -> WriteComplete<Self, Wr> ⓘ
Collects a stream by writing to a MultipartWrite, returning the
result of completing the write as a future.