You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// the sink is closed. Note that neither the original stream nor provided
1552
1550
/// sink will be output by this future. Pass the sink by `Pin<&mut S>`
1553
1551
/// (for example, via `forward(&mut sink)` inside an `async` fn/block) in
1554
-
/// order to preserve access to the `Sink`. If the stream produces an error,
1555
-
/// that error will be returned by this future without flushing/closing the sink.
1552
+
/// order to preserve access to the `Sink`.
1556
1553
#[cfg(feature = "sink")]
1557
1554
#[cfg_attr(docsrs, doc(cfg(feature = "sink")))]
1558
1555
fnforward<S>(self,sink:S) -> Forward<Self,S>
1559
1556
where
1560
-
S:Sink<Self::Ok,Error = Self::Error>,
1561
-
Self:TryStream + Sized,
1562
-
// Self: TryStream + Sized + Stream<Item = Result<<Self as TryStream>::Ok, <Self as TryStream>::Error>>,
1557
+
S:Sink<Self::Item>,
1558
+
Self:Sized,
1563
1559
{
1564
-
// TODO: type mismatch resolving `<Self as futures_core::Stream>::Item == std::result::Result<<Self as futures_core::TryStream>::Ok, <Self as futures_core::TryStream>::Error>`
0 commit comments