File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -970,19 +970,15 @@ pub trait StreamExt: Stream {
970970 }
971971
972972 /// A future that completes after the given stream has been fully processed
973- /// into the sink, including flushing .
973+ /// into the sink and the sink has been flushed and closed .
974974 ///
975975 /// This future will drive the stream to keep producing items until it is
976- /// exhausted, sending each item to the sink. It will complete once both the
977- /// stream is exhausted and the sink has received and flushed all items.
978- /// Note that the sink is **not** closed.
979- ///
980- /// Note that this combinator is only usable with `Unpin` sinks.
981- /// Sinks that are not `Unpin` will need to be pinned in order to be used
982- /// with `forward`.
976+ /// exhausted, sending each item to the sink. It will complete once the
977+ /// stream is exhausted, the sink has received and flushed all items, and
978+ /// the sink is closed.
983979 fn forward < S > ( self , sink : S ) -> Forward < Self , S >
984980 where
985- S : Sink + Unpin ,
981+ S : Sink ,
986982 Self : Stream < Item = Result < S :: SinkItem , S :: SinkError > > + Sized ,
987983 {
988984 Forward :: new ( self , sink)
You can’t perform that action at this time.
0 commit comments