MultipartStreamExt

Trait MultipartStreamExt 

Source
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§

Source

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,

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.

Source

fn write_complete<Wr>(self, writer: Wr) -> WriteComplete<Self, Wr>
where Wr: MultipartWrite<Self::Item>, Self: Sized,

Collects a stream by writing to a MultipartWrite, returning the result of completing the write as a future.

Implementors§