blob: 458c8cdc5333a75f5178436a632062eabdd8a0b9 [file] [log] [blame]
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An extension trait for `Sink`s that provides a variety of convenient combinator functions."><meta name="keywords" content="rust, rustlang, rust-lang, SinkExt"><title>SinkExt in futures::prelude::sink - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../../normalize.css"><link rel="stylesheet" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../../ayu.css" disabled><link rel="stylesheet" href="../../../dark.css" disabled><link rel="stylesheet" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../futures/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../futures/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">SinkExt</a></h2><div class="sidebar-elems"><section><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.buffer">buffer</a></li><li><a href="#method.close">close</a></li><li><a href="#method.fanout">fanout</a></li><li><a href="#method.feed">feed</a></li><li><a href="#method.flush">flush</a></li><li><a href="#method.left_sink">left_sink</a></li><li><a href="#method.poll_close_unpin">poll_close_unpin</a></li><li><a href="#method.poll_flush_unpin">poll_flush_unpin</a></li><li><a href="#method.poll_ready_unpin">poll_ready_unpin</a></li><li><a href="#method.right_sink">right_sink</a></li><li><a href="#method.send">send</a></li><li><a href="#method.send_all">send_all</a></li><li><a href="#method.sink_err_into">sink_err_into</a></li><li><a href="#method.sink_map_err">sink_map_err</a></li><li><a href="#method.start_send_unpin">start_send_unpin</a></li><li><a href="#method.with">with</a></li><li><a href="#method.with_flat_map">with_flat_map</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In futures::prelude::sink</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="../../index.html">futures</a>::<wbr><a href="../index.html">prelude</a>::<wbr><a href="index.html">sink</a>::<wbr><a class="trait" href="#">SinkExt</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../../src/futures_util/sink/mod.rs.html#65">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait SinkExt&lt;Item&gt;: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; {
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show 17 methods</span></summary> fn <a href="#method.with" class="fnname">with</a>&lt;U, Fut, F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.With.html" title="struct futures::sink::With">With</a>&lt;Self, Item, U, Fut, F&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(U) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Item, E&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.with_flat_map" class="fnname">with_flat_map</a>&lt;U, St, F&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.WithFlatMap.html" title="struct futures::sink::WithFlatMap">WithFlatMap</a>&lt;Self, Item, U, St, F&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(U) -&gt; St,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Item, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.sink_map_err" class="fnname">sink_map_err</a>&lt;E, F&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>) -&gt; E</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.sink_err_into" class="fnname">sink_err_into</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../sink/struct.SinkErrInto.html" title="struct futures::sink::SinkErrInto">SinkErrInto</a>&lt;Self, Item, E&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;E&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.buffer" class="fnname">buffer</a>(self, capacity: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../sink/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self, Item&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.close" class="fnname">close</a>(&amp;mut self) -&gt; <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.fanout" class="fnname">fanout</a>&lt;Si&gt;(self, other: Si) -&gt; <a class="struct" href="../../sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, Si&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Item: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.flush" class="fnname">flush</a>(&amp;mut self) -&gt; <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.send" class="fnname">send</a>(&amp;mut self, item: Item) -&gt; <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.feed" class="fnname">feed</a>(&amp;mut self, item: Item) -&gt; <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.send_all" class="fnname">send_all</a>&lt;St&gt;(&amp;'a mut self, stream: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>St) -&gt; <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'a, Self, St&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'_, Si, St&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, St, Ok, Error&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'_, Si, St&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Ok, Error = Error&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Ok, Error&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error&gt;;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.TryStream.html" title="trait futures::stream::TryStream">TryStream</a>&lt;Ok = Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt; + <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.left_sink" class="fnname">left_sink</a>&lt;Si2&gt;(self) -&gt; <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;Self, Si2&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A, B&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>&gt;,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Si2: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.right_sink" class="fnname">right_sink</a>&lt;Si1&gt;(self) -&gt; <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;Si1, Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A, B&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>&gt;,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>;</span></code></span></span></span></span><br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Si1: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;</span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.poll_ready_unpin" class="fnname">poll_ready_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.start_send_unpin" class="fnname">start_send_unpin</a>(&amp;mut self, item: Item) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.poll_flush_unpin" class="fnname">poll_flush_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
<span class="item-spacer"></span> fn <a href="#method.poll_close_unpin" class="fnname">poll_close_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span>,
{ ... }
</details>}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An extension trait for <code>Sink</code>s that provides a variety of convenient
combinator functions.</p>
</div></details><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#77-82">source</a><h4 class="code-header">fn <a href="#method.with" class="fnname">with</a>&lt;U, Fut, F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.With.html" title="struct futures::sink::With">With</a>&lt;Self, Item, U, Fut, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(U) -&gt; Fut,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Item, E&gt;&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Composes a function <em>in front of</em> the sink.</p>
<p>This adapter produces a new sink that passes each value through the
given function <code>f</code> before sending it to <code>self</code>.</p>
<p>To process each value, <code>f</code> produces a <em>future</em>, which is then polled to
completion before passing its result down to the underlying sink. If the
future produces an error, that error is returned by the new sink.</p>
<p>Note that this function consumes the given sink, returning a wrapped
version, much like <code>Iterator::map</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_flat_map" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#119-123">source</a><h4 class="code-header">fn <a href="#method.with_flat_map" class="fnname">with_flat_map</a>&lt;U, St, F&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.WithFlatMap.html" title="struct futures::sink::WithFlatMap">WithFlatMap</a>&lt;Self, Item, U, St, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(U) -&gt; St,<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Item, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;,</span></h4></section></summary><div class="docblock"><p>Composes a function <em>in front of</em> the sink.</p>
<p>This adapter produces a new sink that passes each value through the
given function <code>f</code> before sending it to <code>self</code>.</p>
<p>To process each value, <code>f</code> produces a <em>stream</em>, of which each value
is passed to the underlying sink. A new value will not be accepted until
the stream has been drained</p>
<p>Note that this function consumes the given sink, returning a wrapped
version, much like <code>Iterator::flat_map</code>.</p>
<h5 id="examples"><a href="#examples">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::channel::mpsc;
<span class="kw">use </span>futures::sink::SinkExt;
<span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>(tx, rx) = mpsc::channel(<span class="number">5</span>);
<span class="kw">let </span><span class="kw-2">mut </span>tx = tx.with_flat_map(|x| {
stream::iter(<span class="macro">vec!</span>[<span class="prelude-val">Ok</span>(<span class="number">42</span>); x])
});
tx.send(<span class="number">5</span>).<span class="kw">await</span>.unwrap();
drop(tx);
<span class="kw">let </span>received: Vec&lt;i32&gt; = rx.collect().<span class="kw">await</span>;
<span class="macro">assert_eq!</span>(received, <span class="macro">vec!</span>[<span class="number">42</span>, <span class="number">42</span>, <span class="number">42</span>, <span class="number">42</span>, <span class="number">42</span>]);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sink_map_err" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#143-146">source</a><h4 class="code-header">fn <a href="#method.sink_map_err" class="fnname">sink_map_err</a>&lt;E, F&gt;(self, f: F) -&gt; <a class="struct" href="../../sink/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>) -&gt; E,</span></h4></section></summary><div class="docblock"><p>Transforms the error returned by the sink.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sink_err_into" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#154-157">source</a><h4 class="code-header">fn <a href="#method.sink_err_into" class="fnname">sink_err_into</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../sink/struct.SinkErrInto.html" title="struct futures::sink::SinkErrInto">SinkErrInto</a>&lt;Self, Item, E&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;E&gt;,</span></h4></section></summary><div class="docblock"><p>Map this sink’s error to a different error type using the <code>Into</code> trait.</p>
<p>If wanting to map errors of a <code>Sink + Stream</code>, use <code>.sink_err_into().err_into()</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.buffer" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#175-177">source</a><h4 class="code-header">fn <a href="#method.buffer" class="fnname">buffer</a>(self, capacity: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../sink/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self, Item&gt;</h4></section></summary><div class="docblock"><p>Adds a fixed-size buffer to the current sink.</p>
<p>The resulting sink will buffer up to <code>capacity</code> items when the
underlying sink is unwilling to accept additional items. Calling <code>flush</code>
on the buffered sink will attempt to both empty the buffer and complete
processing on the underlying sink.</p>
<p>Note that this function consumes the given sink, returning a wrapped
version, much like <code>Iterator::map</code>.</p>
<p>This method is only available when the <code>std</code> or <code>alloc</code> feature of this
library is activated, and it is activated by default.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.close" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#183-185">source</a><h4 class="code-header">fn <a href="#method.close" class="fnname">close</a>(&amp;mut self) -&gt; <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Close.html" title="struct futures::sink::Close">Close</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>Close the sink.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fanout" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#194-198">source</a><h4 class="code-header">fn <a href="#method.fanout" class="fnname">fanout</a>&lt;Si&gt;(self, other: Si) -&gt; <a class="struct" href="../../sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, Si&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Item: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Fanout items to multiple sinks.</p>
<p>This adapter clones each incoming item and forwards it to both this as well as
the other sink at the same time.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.flush" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#207-209">source</a><h4 class="code-header">fn <a href="#method.flush" class="fnname">flush</a>(&amp;mut self) -&gt; <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>Flush the sink, processing all pending items.</p>
<p>This adapter is intended to be used when you want to stop sending to the sink
until all current requests are processed.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.send" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#220-222">source</a><h4 class="code-header">fn <a href="#method.send" class="fnname">send</a>(&amp;mut self, item: Item) -&gt; <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A future that completes after the given item has been fully processed
into the sink, including flushing.</p>
<p>Note that, <strong>because of the flushing requirement, it is usually better
to batch together items to send via <code>feed</code> or <code>send_all</code>,
rather than flushing between each item.</strong></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.feed" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#233-235">source</a><h4 class="code-header">fn <a href="#method.feed" class="fnname">feed</a>(&amp;mut self, item: Item) -&gt; <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Self, Item&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Si, Item&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, Item&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.Feed.html" title="struct futures::sink::Feed">Feed</a>&lt;'_, Si, Item&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, &lt;Si as <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt;&gt;::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A future that completes after the given item has been received
by the sink.</p>
<p>Unlike <code>send</code>, the returned future does not flush the sink.
It is the caller’s responsibility to ensure all pending items
are processed, which can be done via <code>flush</code> or <code>close</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.send_all" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#252-256">source</a><h4 class="code-header">fn <a href="#method.send_all" class="fnname">send_all</a>&lt;St&gt;(&amp;'a mut self, stream: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>St) -&gt; <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'a, Self, St&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'_, Si, St&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;Si, St, Ok, Error&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;'_, Si, St&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Ok, Error = Error&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Ok, Error&gt;&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error&gt;;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../stream/trait.TryStream.html" title="trait futures::stream::TryStream">TryStream</a>&lt;Ok = Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt; + <a class="trait" href="../../stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A future that completes after the given stream has been fully processed
into the sink, including flushing.</p>
<p>This future will drive the stream to keep producing items until it is
exhausted, sending each item to the sink. It will complete once both the
stream is exhausted, the sink has received all items, and the sink has
been flushed. Note that the sink is <strong>not</strong> closed. If the stream produces
an error, that error will be returned by this future without flushing the sink.</p>
<p>Doing <code>sink.send_all(stream)</code> is roughly equivalent to
<code>stream.forward(sink)</code>. The returned future will exhaust all items from
<code>stream</code> and send them to <code>self</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.left_sink" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#268-271">source</a><h4 class="code-header">fn <a href="#method.left_sink" class="fnname">left_sink</a>&lt;Si2&gt;(self) -&gt; <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;Self, Si2&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A, B&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>&gt;,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si2: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Wrap this sink in an <code>Either</code> sink, making it the left-hand variant
of that <code>Either</code>.</p>
<p>This can be used in combination with the <code>right_sink</code> method to write <code>if</code>
statements that evaluate to different streams in different branches.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.right_sink" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#281-284">source</a><h4 class="code-header">fn <a href="#method.right_sink" class="fnname">right_sink</a>&lt;Si1&gt;(self) -&gt; <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;Si1, Self&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;A, B&gt; <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="enum" href="../../future/enum.Either.html" title="enum futures::future::Either">Either</a>&lt;A, B&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&lt;Output = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>&gt;,</span></span><span class="where fmt-newline"> type <a href="../../future/trait.Future.html#associatedtype.Output" class="associatedtype">Output</a> = &lt;A as <a class="trait" href="../../future/trait.Future.html" title="trait futures::future::Future">Future</a>&gt;::<a class="associatedtype" href="../../future/trait.Future.html#associatedtype.Output" title="type futures::future::Future::Output">Output</a>;</span></code></span></span></span></span><span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Si1: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item, Error = Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;,</span></h4></section></summary><div class="docblock"><p>Wrap this stream in an <code>Either</code> stream, making it the right-hand variant
of that <code>Either</code>.</p>
<p>This can be used in combination with the <code>left_sink</code> method to write <code>if</code>
statements that evaluate to different streams in different branches.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_ready_unpin" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#302-304">source</a><h4 class="code-header">fn <a href="#method.poll_ready_unpin" class="fnname">poll_ready_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A convenience method for calling <a href="../../sink/trait.Sink.html#tymethod.poll_ready" title="Sink::poll_ready"><code>Sink::poll_ready</code></a> on <a href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="Unpin"><code>Unpin</code></a>
sink types.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.start_send_unpin" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#311-313">source</a><h4 class="code-header">fn <a href="#method.start_send_unpin" class="fnname">start_send_unpin</a>(&amp;mut self, item: Item) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A convenience method for calling <a href="../../sink/trait.Sink.html#tymethod.start_send" title="Sink::start_send"><code>Sink::start_send</code></a> on <a href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="Unpin"><code>Unpin</code></a>
sink types.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_flush_unpin" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#320-322">source</a><h4 class="code-header">fn <a href="#method.poll_flush_unpin" class="fnname">poll_flush_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A convenience method for calling <a href="../../sink/trait.Sink.html#tymethod.poll_flush" title="Sink::poll_flush"><code>Sink::poll_flush</code></a> on <a href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="Unpin"><code>Unpin</code></a>
sink types.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.poll_close_unpin" class="method has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#329-331">source</a><h4 class="code-header">fn <a href="#method.poll_close_unpin" class="fnname">poll_close_unpin</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;cx: &amp;mut <a class="struct" href="../../task/struct.Context.html" title="struct futures::task::Context">Context</a>&lt;'_&gt;<br>) -&gt; <a class="enum" href="../../task/enum.Poll.html" title="enum futures::task::Poll">Poll</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="associatedtype" href="../../sink/trait.Sink.html#associatedtype.Error" title="type futures::sink::Sink::Error">Error</a>&gt;&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</span></h4></section></summary><div class="docblock"><p>A convenience method for calling <a href="../../sink/trait.Sink.html#tymethod.poll_close" title="Sink::poll_close"><code>Sink::poll_close</code></a> on <a href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="Unpin"><code>Unpin</code></a>
sink types.</p>
</div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><section id="impl-SinkExt%3CItem%3E-for-T" class="impl has-srclink"><a class="srclink rightside" href="../../../src/futures_util/sink/mod.rs.html#61">source</a><a href="#impl-SinkExt%3CItem%3E-for-T" class="anchor"></a><h3 class="code-header">impl&lt;T, Item&gt; <a class="trait" href="../../sink/trait.SinkExt.html" title="trait futures::sink::SinkExt">SinkExt</a>&lt;Item&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;Item&gt; + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></div><script src="../../../implementors/futures_util/sink/trait.SinkExt.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="futures" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>