mentat/tokio/prelude/trait.Sink.html
2018-08-22 17:04:13 +00:00

707 lines
No EOL
342 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="API documentation for the Rust `Sink` trait in crate `tokio`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Sink">
<title>tokio::prelude::Sink - Rust</title>
<link rel="stylesheet" type="text/css" href="../../normalize.css">
<link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../../dark.css">
<link rel="stylesheet" type="text/css" href="../../main.css" id="themeStyle">
<script src="../../storage.js"></script>
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Trait Sink</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.SinkItem">SinkItem</a><a href="#associatedtype.SinkError">SinkError</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.start_send">start_send</a><a href="#tymethod.poll_complete">poll_complete</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.close">close</a><a href="#method.wait">wait</a><a href="#method.with">with</a><a href="#method.with_flat_map">with_flat_map</a><a href="#method.sink_map_err">sink_map_err</a><a href="#method.sink_from_err">sink_from_err</a><a href="#method.buffer">buffer</a><a href="#method.fanout">fanout</a><a href="#method.flush">flush</a><a href="#method.send">send</a><a href="#method.send_all">send_all</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Sink">UnboundedSender&lt;T&gt;</a><a href="#impl-Sink">SinkMapErr&lt;S, F&gt;</a><a href="#impl-Sink">SinkFromErr&lt;S, E&gt;</a><a href="#impl-Sink">WithFlatMap&lt;S, U, F, St&gt;</a><a href="#impl-Sink">&amp;&#39;a UnboundedSender&lt;T&gt;</a><a href="#impl-Sink">&amp;&#39;a UnboundedSender&lt;T&gt;</a><a href="#impl-Sink">Buffer&lt;S&gt;</a><a href="#impl-Sink">&amp;&#39;a mut S</a><a href="#impl-Sink">With&lt;S, U, F, Fut&gt;</a><a href="#impl-Sink">Sender&lt;T&gt;</a><a href="#impl-Sink">Sender&lt;T&gt;</a><a href="#impl-Sink">Box&lt;S&gt;</a><a href="#impl-Sink">Fanout&lt;A, B&gt;</a><a href="#impl-Sink">Vec&lt;T&gt;</a><a href="#impl-Sink">UnboundedSender&lt;T&gt;</a><a href="#impl-Sink">FramedRead&lt;T, D&gt;</a><a href="#impl-Sink">FramedWrite&lt;T, E&gt;</a><a href="#impl-Sink">Framed&lt;T, U&gt;</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>tokio</a>::<wbr><a href='index.html'>prelude</a></p><script>window.sidebarCurrent = {name: 'Sink', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Trait <a href='../index.html'>tokio</a>::<wbr><a href='index.html'>prelude</a>::<wbr><a class="trait" href=''>Sink</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../../src/futures/sink/mod.rs.html#117-471' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait Sink {
type <a href='#associatedtype.SinkItem' class="type">SinkItem</a>;
type <a href='#associatedtype.SinkError' class="type">SinkError</a>;
fn <a href='#tymethod.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;;
fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&gt;<br>&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</span>,
{ ... }
<div class='item-spacer'></div> fn <a href='#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&gt;<br>&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</span>,
{ ... }
<div class='item-spacer'></div> fn <a href='#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt;<br>&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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E</span>,
{ ... }
<div class='item-spacer'></div> fn <a href='#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</span>,
{ ... }
<div class='item-spacer'></div> fn <a href='#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
<div class='item-spacer'></div> fn <a href='#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;</span>,
{ ... }
}</pre><div class='docblock'><p>A <code>Sink</code> is a value into which other values can be sent, asynchronously.</p>
<p>Basic examples of sinks include the sending side of:</p>
<ul>
<li>Channels</li>
<li>Sockets</li>
<li>Pipes</li>
</ul>
<p>In addition to such &quot;primitive&quot; sinks, it's typical to layer additional
functionality, such as buffering, on top of an existing sink.</p>
<p>Sending to a sink is &quot;asynchronous&quot; in the sense that the value may not be
sent in its entirety immediately. Instead, values are sent in a two-phase
way: first by initiating a send, and then by polling for completion. This
two-phase setup is analogous to buffered writing in synchronous code, where
writes often succeed immediately, but internally are buffered and are
<em>actually</em> written only upon flushing.</p>
<p>In addition, the <code>Sink</code> may be <em>full</em>, in which case it is not even possible
to start the sending process.</p>
<p>As with <code>Future</code> and <code>Stream</code>, the <code>Sink</code> trait is built from a few core
required methods, and a host of default methods for working in a
higher-level way. The <code>Sink::send_all</code> combinator is of particular
importance: you can use it to send an entire stream to a sink, which is
the simplest way to ultimately consume a sink.</p>
<p>You can find more information/tutorials about streams <a href="https://tokio.rs/docs/getting-started/streams-and-sinks/">online at
https://tokio.rs</a></p>
</div>
<h2 id='associated-types' class='small-section-header'>
Associated Types<a href='#associated-types' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='associatedtype.SinkItem' class='method'><span id='SinkItem.t' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a></code></span></h3><div class='docblock'><p>The type of value that the sink accepts.</p>
</div><h3 id='associatedtype.SinkError' class='method'><span id='SinkError.t' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a></code></span></h3><div class='docblock'><p>The type of value produced by the sink when an error occurs.</p>
</div></div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.start_send' class='method'><span id='start_send.v' class='invisible'><code>fn <a href='#tymethod.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span></h3><div class='docblock'><p>Begin the process of sending a value to the sink.</p>
<p>As the name suggests, this method only <em>begins</em> the process of sending
the item. If the sink employs buffering, the item isn't fully processed
until the buffer is fully flushed. Since sinks are designed to work with
asynchronous I/O, the process of actually writing out the data to an
underlying object takes place asynchronously. <strong>You <em>must</em> use
<code>poll_complete</code> in order to drive completion of a send</strong>. In particular,
<code>start_send</code> does not begin the flushing process</p>
<h1 id="return-value" class="section-header"><a href="#return-value">Return value</a></h1>
<p>This method returns <code>AsyncSink::Ready</code> if the sink was able to start
sending <code>item</code>. In that case, you <em>must</em> ensure that you call
<code>poll_complete</code> to process the sent item to completion. Note, however,
that several calls to <code>start_send</code> can be made prior to calling
<code>poll_complete</code>, which will work on completing all pending items.</p>
<p>The method returns <code>AsyncSink::NotReady</code> if the sink was unable to begin
sending, usually due to being full. The sink must have attempted to
complete processing any outstanding requests (equivalent to
<code>poll_complete</code>) before yielding this result. The current task will be
automatically scheduled for notification when the sink may be ready to
receive new values.</p>
<h1 id="errors" class="section-header"><a href="#errors">Errors</a></h1>
<p>If the sink encounters an error other than being temporarily full, it
uses the <code>Err</code> variant to signal that error. In most cases, such errors
mean that the sink will permanently be unable to receive items.</p>
<h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
<p>This method may panic in a few situations, depending on the specific
sink:</p>
<ul>
<li>It is called outside of the context of a task.</li>
<li>A previous call to <code>start_send</code> or <code>poll_complete</code> yielded an error.</li>
</ul>
</div><h3 id='tymethod.poll_complete' class='method'><span id='poll_complete.v' class='invisible'><code>fn <a href='#tymethod.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span></h3><div class='docblock'><p>Flush all output from this sink, if necessary.</p>
<p>Some sinks may buffer intermediate data as an optimization to improve
throughput. In other words, if a sink has a corresponding receiver then
a successful <code>start_send</code> above may not guarantee that the value is
actually ready to be received by the receiver. This function is intended
to be used to ensure that values do indeed make their way to the
receiver.</p>
<p>This function will attempt to process any pending requests on behalf of
the sink and drive it to completion.</p>
<h1 id="return-value-1" class="section-header"><a href="#return-value-1">Return value</a></h1>
<p>Returns <code>Ok(Async::Ready(()))</code> when no buffered items remain. If this
value is returned then it is guaranteed that all previous values sent
via <code>start_send</code> will be guaranteed to be available to a listening
receiver.</p>
<p>Returns <code>Ok(Async::NotReady)</code> if there is more work left to do, in which
case the current task is scheduled to wake up when more progress may be
possible.</p>
<h1 id="errors-1" class="section-header"><a href="#errors-1">Errors</a></h1>
<p>Returns <code>Err</code> if the sink encounters an error while processing one of
its pending requests. Due to the buffered nature of requests, it is not
generally possible to correlate the error with a particular request. As
with <code>start_send</code>, these errors are generally &quot;fatal&quot; for continued use
of the sink.</p>
<h1 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h1>
<p>This method may panic in a few situations, depending on the specific sink:</p>
<ul>
<li>It is called outside of the context of a task.</li>
<li>A previous call to <code>start_send</code> or <code>poll_complete</code> yielded an error.</li>
</ul>
<h1 id="compatibility-nodes" class="section-header"><a href="#compatibility-nodes">Compatibility nodes</a></h1>
<p>The name of this method may be slightly misleading as the original
intention was to have this method be more general than just flushing
requests. Over time though it was decided to trim back the ambitions of
this method to what it's always done, just flushing.</p>
<p>In the 0.2 release series of futures this method will be renamed to
<code>poll_flush</code>. For 0.1, however, the breaking change is not happening
yet.</p>
</div></div>
<h2 id='provided-methods' class='small-section-header'>
Provided Methods<a href='#provided-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='method.close' class='method'><span id='close.v' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span></h3><div class='docblock'><p>A method to indicate that no more values will ever be pushed into this
sink.</p>
<p>This method is used to indicate that a sink will no longer even be given
another value by the caller. That is, the <code>start_send</code> method above will
be called no longer (nor <code>poll_complete</code>). This method is intended to
model &quot;graceful shutdown&quot; in various protocols where the intent to shut
down is followed by a little more blocking work.</p>
<p>Callers of this function should work it it in a similar fashion to
<code>poll_complete</code>. Once called it may return <code>NotReady</code> which indicates
that more external work needs to happen to make progress. The current
task will be scheduled to receive a notification in such an event,
however.</p>
<p>Note that this function will imply <code>poll_complete</code> above. That is, if a
sink has buffered data, then it'll be flushed out during a <code>close</code>
operation. It is not necessary to have <code>poll_complete</code> return <code>Ready</code>
before a <code>close</code> is called. Once a <code>close</code> is called, though,
<code>poll_complete</code> cannot be called.</p>
<h1 id="return-value-2" class="section-header"><a href="#return-value-2">Return value</a></h1>
<p>This function, like <code>poll_complete</code>, returns a <code>Poll</code>. The value is
<code>Ready</code> once the close operation has completed. At that point it should
be safe to drop the sink and deallocate associated resources.</p>
<p>If the value returned is <code>NotReady</code> then the sink is not yet closed and
work needs to be done to close it. The work has been scheduled and the
current task will receive a notification when it's next ready to call
this method again.</p>
<p>Finally, this function may also return an error.</p>
<h1 id="errors-2" class="section-header"><a href="#errors-2">Errors</a></h1>
<p>This function will return an <code>Err</code> if any operation along the way during
the close operation fails. An error typically is fatal for a sink and is
unable to be recovered from, but in specific situations this may not
always be true.</p>
<p>Note that it's also typically an error to call <code>start_send</code> or
<code>poll_complete</code> after the <code>close</code> function is called. This method will
<em>initiate</em> a close, and continuing to send values after that (or attempt
to flush) may result in strange behavior, panics, errors, etc. Once this
method is called, it must be the only method called on this <code>Sink</code>.</p>
<h1 id="panics-2" class="section-header"><a href="#panics-2">Panics</a></h1>
<p>This method may panic or cause panics if:</p>
<ul>
<li>It is called outside the context of a future's task</li>
<li>It is called and then <code>start_send</code> or <code>poll_complete</code> is called</li>
</ul>
<h1 id="compatibility-notes" class="section-header"><a href="#compatibility-notes">Compatibility notes</a></h1>
<p>Note that this function is currently by default a provided function,
defaulted to calling <code>poll_complete</code> above. This function was added
in the 0.1 series of the crate as a backwards-compatible addition. It
is intended that in the 0.2 series the method will no longer be a
default method.</p>
<p>It is highly recommended to consider this method a required method and
to implement it whenever you implement <code>Sink</code> locally. It is especially
crucial to be sure to close inner sinks, if applicable.</p>
</div><h3 id='method.wait' class='method'><span id='wait.v' class='invisible'><code>fn <a href='#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span></h3><div class='docblock'><p>Creates a new object which will produce a synchronous sink.</p>
<p>The sink returned does <strong>not</strong> implement the <code>Sink</code> trait, and instead
only has two methods: <code>send</code> and <code>flush</code>. These two methods correspond
to <code>start_send</code> and <code>poll_complete</code> above except are executed in a
blocking fashion.</p>
</div><h3 id='method.with' class='method'><span id='with.v' class='invisible'><code>fn <a href='#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></h3><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><h3 id='method.with_flat_map' class='method'><span id='with_flat_map.v' class='invisible'><code>fn <a href='#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></h3><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>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<hr />
<p>Using this function with an iterator through use of the <code>stream::iter_ok()</code>
function</p>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">stream</span>;
<span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">sync</span>::<span class="ident">mpsc</span>;
<span class="kw">let</span> (<span class="ident">tx</span>, <span class="ident">rx</span>) <span class="op">=</span> <span class="ident">mpsc</span>::<span class="ident">channel</span>::<span class="op">&lt;</span><span class="ident">i32</span><span class="op">&gt;</span>(<span class="number">5</span>);
<span class="kw">let</span> <span class="ident">tx</span> <span class="op">=</span> <span class="ident">tx</span>.<span class="ident">with_flat_map</span>(<span class="op">|</span><span class="ident">x</span><span class="op">|</span> {
<span class="ident">stream</span>::<span class="ident">iter_ok</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="number">42</span>; <span class="ident">x</span>].<span class="ident">into_iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">y</span><span class="op">|</span> <span class="ident">y</span>))
});
<span class="ident">tx</span>.<span class="ident">send</span>(<span class="number">5</span>).<span class="ident">wait</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">rx</span>.<span class="ident">collect</span>().<span class="ident">wait</span>(), <span class="prelude-val">Ok</span>(<span class="macro">vec</span><span class="macro">!</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>]))</pre>
</div><h3 id='method.sink_map_err' class='method'><span id='sink_map_err.v' class='invisible'><code>fn <a href='#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span></h3><div class='docblock'><p>Transforms the error returned by the sink.</p>
</div><h3 id='method.sink_from_err' class='method'><span id='sink_from_err.v' class='invisible'><code>fn <a href='#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></h3><div class='docblock'><p>Map this sink's error to any error implementing <code>From</code> for this sink's
<code>Error</code>, returning a new sink.</p>
<p>If wanting to map errors of a <code>Sink + Stream</code>, use <code>.sink_from_err().from_err()</code>.</p>
</div><h3 id='method.buffer' class='method'><span id='buffer.v' class='invisible'><code>fn <a href='#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span></h3><div class='docblock'><p>Adds a fixed-size buffer to the current sink.</p>
<p>The resulting sink will buffer up to <code>amt</code> items when the underlying
sink is unwilling to accept additional items. Calling <code>poll_complete</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>use_std</code> feature of this
library is activated, and it is activated by default.</p>
</div><h3 id='method.fanout' class='method'><span id='fanout.v' class='invisible'><code>fn <a href='#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span></h3><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><h3 id='method.flush' class='method'><span id='flush.v' class='invisible'><code>fn <a href='#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span></h3><div class='docblock'><p>A future that completes when the sink has finished processing all
pending requests.</p>
<p>The sink itself is returned after flushing is complete; this adapter is
intended to be used when you want to stop sending to the sink until
all current requests are processed.</p>
</div><h3 id='method.send' class='method'><span id='send.v' class='invisible'><code>fn <a href='#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span></h3><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>send_all</code>, rather than flushing
between each item.</strong></p>
<p>On completion, the sink is returned.</p>
</div><h3 id='method.send_all' class='method'><span id='send_all.v' class='invisible'><code>fn <a href='#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span></h3><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, the sink has been
flushed, and the sink has been closed.</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>, closing <code>self</code> when all items have been
received.</p>
<p>On completion, the pair <code>(sink, source)</code> is returned.</p>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-Sink' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sync/mpsc/struct.UnboundedSender.html" title="struct futures::sync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;</code><a href='#impl-Sink' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#682-697' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-1' class="type"><span id='SinkItem.t-1' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-1' class="type"><span id='SinkError.t-1' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send' class="method"><span id='start_send.v-1' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#686-688' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete' class="method"><span id='poll_complete.v-1' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#690-692' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-1' class="method"><span id='close.v-1' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#694-696' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-1' class="method"><span id='wait.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-1' class="method"><span id='with.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-1' class="method"><span id='with_flat_map.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-1' class="method"><span id='sink_map_err.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-1' class="method"><span id='sink_from_err.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-1' class="method"><span id='buffer.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-1' class="method"><span id='fanout.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-1' class="method"><span id='flush.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-1' class="method"><span id='send.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-1' class="method"><span id='send_all.v-1' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-1' class='impl'><span class='in-band'><code>impl&lt;S, F, E&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, 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>(&lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span></code><a href='#impl-Sink-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/map_err.rs.html#37-55' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-2' class="type"><span id='SinkItem.t-2' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-2' class="type"><span id='SinkError.t-2' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = E</code></span></h4>
<h4 id='method.start_send-1' class="method"><span id='start_send.v-2' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/map_err.rs.html#44-46' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-1' class="method"><span id='poll_complete.v-2' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/map_err.rs.html#48-50' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-2' class="method"><span id='close.v-2' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/map_err.rs.html#52-54' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-2' class="method"><span id='wait.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-2' class="method"><span id='with.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-2' class="method"><span id='with_flat_map.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-2' class="method"><span id='sink_map_err.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-2' class="method"><span id='sink_from_err.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-2' class="method"><span id='buffer.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-2' class="method"><span id='fanout.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-2' class="method"><span id='flush.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-2' class="method"><span id='send.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-2' class="method"><span id='send_all.v-2' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-2' class='impl'><span class='in-band'><code>impl&lt;S, E&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; <span class="where fmt-newline">where<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;&lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span></code><a href='#impl-Sink-2' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/from_err.rs.html#44-62' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-3' class="type"><span id='SinkItem.t-3' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-3' class="type"><span id='SinkError.t-3' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = E</code></span></h4>
<h4 id='method.start_send-2' class="method"><span id='start_send.v-3' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/from_err.rs.html#51-53' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-2' class="method"><span id='poll_complete.v-3' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/from_err.rs.html#55-57' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-3' class="method"><span id='close.v-3' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/from_err.rs.html#59-61' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-3' class="method"><span id='wait.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-3' class="method"><span id='with.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-3' class="method"><span id='with_flat_map.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-3' class="method"><span id='sink_map_err.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-3' class="method"><span id='sink_from_err.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-3' class="method"><span id='buffer.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-3' class="method"><span id='fanout.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-3' class="method"><span id='flush.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-3' class="method"><span id='send.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-3' class="method"><span id='send_all.v-3' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-3' class='impl'><span class='in-band'><code>impl&lt;S, U, F, St&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&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;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;St: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code><a href='#impl-Sink-3' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with_flat_map.rs.html#96-126' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-4' class="type"><span id='SinkItem.t-4' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = U</code></span></h4>
<h4 id='associatedtype.SinkError-4' class="type"><span id='SinkError.t-4' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-3' class="method"><span id='start_send.v-4' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;i: &lt;<a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with_flat_map.rs.html#104-112' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-3' class="method"><span id='poll_complete.v-4' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with_flat_map.rs.html#113-118' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-4' class="method"><span id='close.v-4' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with_flat_map.rs.html#119-125' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-4' class="method"><span id='wait.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-4' class="method"><span id='with.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-4' class="method"><span id='with_flat_map.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-4' class="method"><span id='sink_map_err.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-4' class="method"><span id='sink_from_err.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-4' class="method"><span id='buffer.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-4' class="method"><span id='fanout.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-4' class="method"><span id='flush.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-4' class="method"><span id='send.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-4' class="method"><span id='send_all.v-4' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-4' class='impl'><span class='in-band'><code>impl&lt;'a, T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for &amp;'a <a class="struct" href="../../futures/sync/mpsc/struct.UnboundedSender.html" title="struct futures::sync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;</code><a href='#impl-Sink-4' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#699-715' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-5' class="type"><span id='SinkItem.t-5' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-5' class="type"><span id='SinkError.t-5' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send-4' class="method"><span id='start_send.v-5' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#703-706' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-4' class="method"><span id='poll_complete.v-5' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#708-710' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-5' class="method"><span id='close.v-5' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#712-714' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-5' class="method"><span id='wait.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-5' class="method"><span id='with.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-5' class="method"><span id='with_flat_map.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-5' class="method"><span id='sink_map_err.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-5' class="method"><span id='sink_from_err.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-5' class="method"><span id='buffer.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-5' class="method"><span id='fanout.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-5' class="method"><span id='flush.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-5' class="method"><span id='send.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-5' class="method"><span id='send_all.v-5' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-5' class='impl'><span class='in-band'><code>impl&lt;'a, T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for &amp;'a <a class="struct" href="../../futures/unsync/mpsc/struct.UnboundedSender.html" title="struct futures::unsync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;</code><a href='#impl-Sink-5' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#229-244' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-6' class="type"><span id='SinkItem.t-6' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-6' class="type"><span id='SinkError.t-6' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send-5' class="method"><span id='start_send.v-6' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#233-235' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-5' class="method"><span id='poll_complete.v-6' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#237-239' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-6' class="method"><span id='close.v-6' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#241-243' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-6' class="method"><span id='wait.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-6' class="method"><span id='with.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-6' class="method"><span id='with_flat_map.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-6' class="method"><span id='sink_map_err.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-6' class="method"><span id='sink_from_err.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-6' class="method"><span id='buffer.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-6' class="method"><span id='fanout.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-6' class="method"><span id='flush.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-6' class="method"><span id='send.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-6' class="method"><span id='send_all.v-6' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-6' class='impl'><span class='in-band'><code>impl&lt;S&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span></code><a href='#impl-Sink-6' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/buffer.rs.html#70-108' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-7' class="type"><span id='SinkItem.t-7' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-7' class="type"><span id='SinkError.t-7' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-6' class="method"><span id='start_send.v-7' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/buffer.rs.html#74-85' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-6' class="method"><span id='poll_complete.v-7' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/buffer.rs.html#87-95' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-7' class="method"><span id='close.v-7' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/buffer.rs.html#97-107' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-7' class="method"><span id='wait.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-7' class="method"><span id='with.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-7' class="method"><span id='with_flat_map.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-7' class="method"><span id='sink_map_err.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-7' class="method"><span id='sink_from_err.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-7' class="method"><span id='buffer.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-7' class="method"><span id='fanout.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-7' class="method"><span id='flush.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-7' class="method"><span id='send.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-7' class="method"><span id='send_all.v-7' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-7' class='impl'><span class='in-band'><code>impl&lt;'a, S&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Sink-7' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#473-489' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-8' class="type"><span id='SinkItem.t-8' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-8' class="type"><span id='SinkError.t-8' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-7' class="method"><span id='start_send.v-8' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#477-480' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-7' class="method"><span id='poll_complete.v-8' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#482-484' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-8' class="method"><span id='close.v-8' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#486-488' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-8' class="method"><span id='wait.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-8' class="method"><span id='with.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-8' class="method"><span id='with_flat_map.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-8' class="method"><span id='sink_map_err.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-8' class="method"><span id='sink_from_err.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-8' class="method"><span id='buffer.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-8' class="method"><span id='fanout.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-8' class="method"><span id='flush.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-8' class="method"><span id='send.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-8' class="method"><span id='send_all.v-8' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-8' class='impl'><span class='in-band'><code>impl&lt;S, U, F, Fut&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;S, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code><a href='#impl-Sink-8' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with.rs.html#124-153' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-9' class="type"><span id='SinkItem.t-9' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = U</code></span></h4>
<h4 id='associatedtype.SinkError-9' class="type"><span id='SinkError.t-9' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a></code></span></h4>
<h4 id='method.start_send-8' class="method"><span id='start_send.v-9' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;S, U, F, Fut&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;S, U, F, Fut&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with.rs.html#133-139' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-8' class="method"><span id='poll_complete.v-9' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with.rs.html#141-147' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-9' class="method"><span id='close.v-9' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/with.rs.html#149-152' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-9' class="method"><span id='wait.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-9' class="method"><span id='with.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-9' class="method"><span id='with_flat_map.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-9' class="method"><span id='sink_map_err.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-9' class="method"><span id='sink_from_err.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-9' class="method"><span id='buffer.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-9' class="method"><span id='fanout.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-9' class="method"><span id='flush.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-9' class="method"><span id='send.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-9' class="method"><span id='send_all.v-9' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-9' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/unsync/mpsc/struct.Sender.html" title="struct futures::unsync::mpsc::Sender">Sender</a>&lt;T&gt;</code><a href='#impl-Sink-9' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#90-105' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-10' class="type"><span id='SinkItem.t-10' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-10' class="type"><span id='SinkError.t-10' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send-9' class="method"><span id='start_send.v-10' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#94-96' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-9' class="method"><span id='poll_complete.v-10' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#98-100' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-10' class="method"><span id='close.v-10' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#102-104' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-10' class="method"><span id='wait.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-10' class="method"><span id='with.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-10' class="method"><span id='with_flat_map.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-10' class="method"><span id='sink_map_err.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-10' class="method"><span id='sink_from_err.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-10' class="method"><span id='buffer.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-10' class="method"><span id='fanout.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-10' class="method"><span id='flush.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-10' class="method"><span id='send.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-10' class="method"><span id='send_all.v-10' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-10' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sync/mpsc/struct.Sender.html" title="struct futures::sync::mpsc::Sender">Sender</a>&lt;T&gt;</code><a href='#impl-Sink-10' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#634-658' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-11' class="type"><span id='SinkItem.t-11' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-11' class="type"><span id='SinkError.t-11' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send-10' class="method"><span id='start_send.v-11' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#638-649' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-10' class="method"><span id='poll_complete.v-11' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#651-653' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-11' class="method"><span id='close.v-11' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/sync/mpsc/struct.SendError.html" title="struct futures::sync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#655-657' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-11' class="method"><span id='wait.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-11' class="method"><span id='with.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-11' class="method"><span id='with_flat_map.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-11' class="method"><span id='sink_map_err.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-11' class="method"><span id='sink_from_err.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-11' class="method"><span id='buffer.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-11' class="method"><span id='fanout.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-11' class="method"><span id='flush.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-11' class="method"><span id='send.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-11' class="method"><span id='send_all.v-11' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-11' class='impl'><span class='in-band'><code>impl&lt;S&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Sink-11' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#58-74' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-12' class="type"><span id='SinkItem.t-12' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-12' class="type"><span id='SinkError.t-12' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-11' class="method"><span id='start_send.v-12' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#62-65' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-11' class="method"><span id='poll_complete.v-12' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#67-69' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-12' class="method"><span id='close.v-12' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;S&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#71-73' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-12' class="method"><span id='wait.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-12' class="method"><span id='with.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-12' class="method"><span id='with_flat_map.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-12' class="method"><span id='sink_map_err.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-12' class="method"><span id='sink_from_err.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-12' class="method"><span id='buffer.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-12' class="method"><span id='fanout.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-12' class="method"><span id='flush.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-12' class="method"><span id='send.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-12' class="method"><span id='send_all.v-12' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-12' class='impl'><span class='in-band'><code>impl&lt;A, B&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = &lt;A as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = &lt;A as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;A as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href='#impl-Sink-12' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/fanout.rs.html#44-90' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-13' class="type"><span id='SinkItem.t-13' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;A as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-13' class="type"><span id='SinkError.t-13' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;A as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-12' class="method"><span id='start_send.v-13' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/fanout.rs.html#52-67' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-12' class="method"><span id='poll_complete.v-13' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/fanout.rs.html#69-78' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-13' class="method"><span id='close.v-13' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;A, B&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/fanout.rs.html#80-89' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-13' class="method"><span id='wait.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-13' class="method"><span id='with.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-13' class="method"><span id='with_flat_map.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-13' class="method"><span id='sink_map_err.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-13' class="method"><span id='sink_from_err.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-13' class="method"><span id='buffer.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-13' class="method"><span id='fanout.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-13' class="method"><span id='flush.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-13' class="method"><span id='send.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-13' class="method"><span id='send_all.v-13' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-13' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</code><a href='#impl-Sink-13' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#34-52' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-14' class="type"><span id='SinkItem.t-14' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-14' class="type"><span id='SinkError.t-14' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
<h4 id='method.start_send-13' class="method"><span id='start_send.v-14' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#38-43' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-13' class="method"><span id='poll_complete.v-14' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#45-47' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-14' class="method"><span id='close.v-14' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#49-51' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-14' class="method"><span id='wait.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-14' class="method"><span id='with.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-14' class="method"><span id='with_flat_map.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-14' class="method"><span id='sink_map_err.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-14' class="method"><span id='sink_from_err.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-14' class="method"><span id='buffer.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-14' class="method"><span id='fanout.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-14' class="method"><span id='flush.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-14' class="method"><span id='send.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-14' class="method"><span id='send_all.v-14' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-14' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../futures/unsync/mpsc/struct.UnboundedSender.html" title="struct futures::unsync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;</code><a href='#impl-Sink-14' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#214-227' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-15' class="type"><span id='SinkItem.t-15' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T</code></span></h4>
<h4 id='associatedtype.SinkError-15' class="type"><span id='SinkError.t-15' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;</code></span></h4>
<h4 id='method.start_send-14' class="method"><span id='start_send.v-15' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(&amp;mut self, msg: T) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;T&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#218-220' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-14' class="method"><span id='poll_complete.v-15' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#221-223' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-15' class="method"><span id='close.v-15' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, <a class="struct" href="../../futures/unsync/mpsc/struct.SendError.html" title="struct futures::unsync::mpsc::SendError">SendError</a>&lt;T&gt;&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#224-226' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-15' class="method"><span id='wait.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-15' class="method"><span id='with.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-15' class="method"><span id='with_flat_map.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-15' class="method"><span id='sink_map_err.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-15' class="method"><span id='sink_from_err.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-15' class="method"><span id='buffer.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-15' class="method"><span id='fanout.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-15' class="method"><span id='flush.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-15' class="method"><span id='send.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-15' class="method"><span id='send_all.v-15' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-15' class='impl'><span class='in-band'><code>impl&lt;T, D&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span></code><a href='#impl-Sink-15' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_read.rs.html#93-113' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-16' class="type"><span id='SinkItem.t-16' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;T as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a></code></span></h4>
<h4 id='associatedtype.SinkError-16' class="type"><span id='SinkError.t-16' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;T as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a></code></span></h4>
<h4 id='method.start_send-15' class="method"><span id='start_send.v-16' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_read.rs.html#99-104' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-15' class="method"><span id='poll_complete.v-16' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_read.rs.html#106-108' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-16' class="method"><span id='close.v-16' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_read/struct.FramedRead.html" title="struct tokio_io::_tokio_codec::framed_read::FramedRead">FramedRead</a>&lt;T, D&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_read.rs.html#110-112' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-16' class="method"><span id='wait.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-16' class="method"><span id='with.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-16' class="method"><span id='with_flat_map.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-16' class="method"><span id='sink_map_err.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-16' class="method"><span id='sink_from_err.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-16' class="method"><span id='buffer.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-16' class="method"><span id='fanout.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-16' class="method"><span id='flush.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-16' class="method"><span id='send.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-16' class="method"><span id='send_all.v-16' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-16' class='impl'><span class='in-band'><code>impl&lt;T, E&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../tokio_io/_tokio_codec/framed_write/struct.FramedWrite.html" title="struct tokio_io::_tokio_codec::framed_write::FramedWrite">FramedWrite</a>&lt;T, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../tokio/prelude/trait.AsyncWrite.html" title="trait tokio::prelude::AsyncWrite">AsyncWrite</a>,&nbsp;</span></code><a href='#impl-Sink-16' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_write.rs.html#79-97' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-17' class="type"><span id='SinkItem.t-17' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;E as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Item" title="type tokio_io::codec::encoder::Encoder::Item">Item</a></code></span></h4>
<h4 id='associatedtype.SinkError-17' class="type"><span id='SinkError.t-17' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;E as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_io::codec::encoder::Encoder::Error">Error</a></code></span></h4>
<h4 id='method.start_send-16' class="method"><span id='start_send.v-17' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;E as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Item" title="type tokio_io::codec::encoder::Encoder::Item">Item</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;E as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Item" title="type tokio_io::codec::encoder::Encoder::Item">Item</a>&gt;, &lt;E as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_io::codec::encoder::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_write.rs.html#86-88' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-16' class="method"><span id='poll_complete.v-17' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_write/struct.FramedWrite.html" title="struct tokio_io::_tokio_codec::framed_write::FramedWrite">FramedWrite</a>&lt;T, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_write.rs.html#90-92' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-17' class="method"><span id='close.v-17' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed_write/struct.FramedWrite.html" title="struct tokio_io::_tokio_codec::framed_write::FramedWrite">FramedWrite</a>&lt;T, E&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed_write.rs.html#94-96' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-17' class="method"><span id='wait.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-17' class="method"><span id='with.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-17' class="method"><span id='with_flat_map.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-17' class="method"><span id='sink_map_err.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-17' class="method"><span id='sink_from_err.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-17' class="method"><span id='buffer.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-17' class="method"><span id='fanout.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-17' class="method"><span id='flush.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-17' class="method"><span id='send.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-17' class="method"><span id='send_all.v-17' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Sink-17' class='impl'><span class='in-band'><code>impl&lt;T, U&gt; <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> for <a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../tokio/prelude/trait.AsyncWrite.html" title="trait tokio::prelude::AsyncWrite">AsyncWrite</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;U as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_io::codec::encoder::Encoder::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../../tokio/io/struct.Error.html" title="struct tokio::io::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-Sink-17' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed.rs.html#141-163' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='associatedtype.SinkItem-18' class="type"><span id='SinkItem.t-18' class='invisible'><code>type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;U as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Item" title="type tokio_io::codec::encoder::Encoder::Item">Item</a></code></span></h4>
<h4 id='associatedtype.SinkError-18' class="type"><span id='SinkError.t-18' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;U as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_io::codec::encoder::Encoder::Error">Error</a></code></span></h4>
<h4 id='method.start_send-17' class="method"><span id='start_send.v-18' class='invisible'><code>fn <a href='#method.start_send' class='fnname'>start_send</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;item: &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a><br>) -&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="enum" href="../../tokio/prelude/enum.AsyncSink.html" title="enum tokio::prelude::AsyncSink">AsyncSink</a>&lt;&lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed.rs.html#149-154' title='goto source code'>[src]</a></span></h4>
<h4 id='method.poll_complete-17' class="method"><span id='poll_complete.v-18' class='invisible'><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self<br>) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed.rs.html#156-158' title='goto source code'>[src]</a></span></h4>
<h4 id='method.close-18' class="method"><span id='close.v-18' class='invisible'><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&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="enum" href="../../tokio/prelude/enum.Async.html" title="enum tokio::prelude::Async">Async</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>&gt;, &lt;<a class="struct" href="../../tokio_io/_tokio_codec/framed/struct.Framed.html" title="struct tokio_io::_tokio_codec::framed::Framed">Framed</a>&lt;T, U&gt; as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/tokio_io/_tokio_codec/framed.rs.html#160-162' title='goto source code'>[src]</a></span></h4>
<h4 id='method.wait-18' class="method"><span id='wait.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/wait/struct.Wait.html" title="struct futures::sink::wait::Wait">Wait</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#296-300' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with-18' class="method"><span id='with.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with/struct.With.html" title="struct futures::sink::with::With">With</a>&lt;Self, U, F, Fut&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="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;Fut as <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>&gt;::<a class="type" href="../../tokio/prelude/trait.IntoFuture.html#associatedtype.Error" title="type tokio::prelude::IntoFuture::Error">Error</a>: <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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#313-320' title='goto source code'>[src]</a></span></h4>
<h4 id='method.with_flat_map-18' class="method"><span id='with_flat_map.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.with_flat_map' class='fnname'>with_flat_map</a>&lt;U, F, St&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/with_flat_map/struct.WithFlatMap.html" title="struct futures::sink::with_flat_map::WithFlatMap">WithFlatMap</a>&lt;Self, U, F, St&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="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#352-358' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_map_err-18' class="method"><span id='sink_map_err.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_map_err' class='fnname'>sink_map_err</a>&lt;F, E&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/map_err/struct.SinkMapErr.html" title="struct futures::sink::map_err::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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#375-380' title='goto source code'>[src]</a></span></h4>
<h4 id='method.sink_from_err-18' class="method"><span id='sink_from_err.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E&gt;(self) -&gt; <a class="struct" href="../../futures/sink/from_err/struct.SinkFromErr.html" title="struct futures::sink::from_err::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<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="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#386-390' title='goto source code'>[src]</a></span></h4>
<h4 id='method.buffer-18' class="method"><span id='buffer.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.buffer' class='fnname'>buffer</a>(self, amt: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="struct" href="../../futures/sink/buffer/struct.Buffer.html" title="struct futures::sink::buffer::Buffer">Buffer</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#406-410' title='goto source code'>[src]</a></span></h4>
<h4 id='method.fanout-18' class="method"><span id='fanout.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/fanout/struct.Fanout.html" title="struct futures::sink::fanout::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#416-422' title='goto source code'>[src]</a></span></h4>
<h4 id='method.flush-18' class="method"><span id='flush.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/flush/struct.Flush.html" title="struct futures::sink::flush::Flush">Flush</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#430-434' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send-18' class="method"><span id='send.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/send/struct.Send.html" title="struct futures::sink::send::Send">Send</a>&lt;Self&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#444-448' title='goto source code'>[src]</a></span></h4>
<h4 id='method.send_all-18' class="method"><span id='send_all.v-18' class='invisible'><code>fn <a href='../../tokio/prelude/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/send_all/struct.SendAll.html" title="struct futures::sink::send_all::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Error" title="type tokio::prelude::stream::Stream::Error">Error</a>&gt;,&nbsp;</span></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/futures/sink/mod.rs.html#464-470' title='goto source code'>[src]</a></span></h4>
</div></span>
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/map.rs.html#51-68' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Map.html" title="struct tokio::prelude::stream::Map">Map</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/map_err.rs.html#51-68' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.MapErr.html" title="struct tokio::prelude::stream::MapErr">MapErr</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/flatten.rs.html#54-71' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Flatten.html" title="struct tokio::prelude::stream::Flatten">Flatten</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/fuse.rs.html#17-34' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Fuse.html" title="struct tokio::prelude::stream::Fuse">Fuse</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/filter.rs.html#51-68' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Filter.html" title="struct tokio::prelude::stream::Filter">Filter</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/buffered.rs.html#78-96' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Buffered.html" title="struct tokio::prelude::stream::Buffered">Buffered</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Item" title="type tokio::prelude::stream::Stream::Item">Item</a>: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/take.rs.html#49-66' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Take.html" title="struct tokio::prelude::stream::Take">Take</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/and_then.rs.html#58-75' title='goto source code'>[src]</a></div><code>impl&lt;S, F, U&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.AndThen.html" title="struct tokio::prelude::stream::AndThen">AndThen</a>&lt;S, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/from_err.rs.html#65-80' title='goto source code'>[src]</a></div><code>impl&lt;S, E&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.FromErr.html" title="struct tokio::prelude::stream::FromErr">FromErr</a>&lt;S, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a> + <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/chunks.rs.html#35-52' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Chunks.html" title="struct tokio::prelude::stream::Chunks">Chunks</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/filter_map.rs.html#51-68' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.FilterMap.html" title="struct tokio::prelude::stream::FilterMap">FilterMap</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/buffer_unordered.rs.html#112-130' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.BufferUnordered.html" title="struct tokio::prelude::stream::BufferUnordered">BufferUnordered</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;S as <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>&gt;::<a class="type" href="../../tokio/prelude/stream/trait.Stream.html#associatedtype.Item" title="type tokio::prelude::stream::Stream::Item">Item</a>: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/inspect_err.rs.html#49-66' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.InspectErr.html" title="struct tokio::prelude::stream::InspectErr">InspectErr</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/inspect.rs.html#49-66' title='goto source code'>[src]</a></div><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Inspect.html" title="struct tokio::prelude::stream::Inspect">Inspect</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/skip.rs.html#49-66' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Skip.html" title="struct tokio::prelude::stream::Skip">Skip</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/take_while.rs.html#56-73' title='goto source code'>[src]</a></div><code>impl&lt;S, P, R&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.TakeWhile.html" title="struct tokio::prelude::stream::TakeWhile">TakeWhile</a>&lt;S, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/then.rs.html#31-48' title='goto source code'>[src]</a></div><code>impl&lt;S, F, U&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Then.html" title="struct tokio::prelude::stream::Then">Then</a>&lt;S, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/split.rs.html#48-74' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.SplitSink.html" title="struct tokio::prelude::stream::SplitSink">SplitSink</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/or_else.rs.html#31-48' title='goto source code'>[src]</a></div><code>impl&lt;S, F, U&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.OrElse.html" title="struct tokio::prelude::stream::OrElse">OrElse</a>&lt;S, F, U&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/peek.rs.html#25-42' title='goto source code'>[src]</a></div><code>impl&lt;S&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.Peekable.html" title="struct tokio::prelude::stream::Peekable">Peekable</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/skip_while.rs.html#56-73' title='goto source code'>[src]</a></div><code>impl&lt;S, P, R&gt; Sink for <a class="struct" href="../../tokio/prelude/stream/struct.SkipWhile.html" title="struct tokio::prelude::stream::SkipWhile">SkipWhile</a>&lt;S, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../tokio/prelude/trait.IntoFuture.html" title="trait tokio::prelude::IntoFuture">IntoFuture</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a> + <a class="trait" href="../../tokio/prelude/stream/trait.Stream.html" title="trait tokio::prelude::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkItem" title="type tokio::prelude::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;S as <a class="trait" href="../../tokio/prelude/trait.Sink.html" title="trait tokio::prelude::Sink">Sink</a>&gt;::<a class="type" href="../../tokio/prelude/trait.Sink.html#associatedtype.SinkError" title="type tokio::prelude::Sink::SinkError">SinkError</a>;</span></code></li>
<li><div class='out-of-band'><a class='srclink' href='../../src/tokio_udp/frame.rs.html#61-109' title='goto source code'>[src]</a></div><code>impl&lt;C&gt; Sink for <a class="struct" href="../../tokio/net/struct.UdpFramed.html" title="struct tokio::net::UdpFramed">UdpFramed</a>&lt;C&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;C: <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>&lt;C as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Item" title="type tokio_io::codec::encoder::Encoder::Item">Item</a>, <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = &lt;C as <a class="trait" href="../../tokio_io/codec/encoder/trait.Encoder.html" title="trait tokio_io::codec::encoder::Encoder">Encoder</a>&gt;::<a class="type" href="../../tokio_io/codec/encoder/trait.Encoder.html#associatedtype.Error" title="type tokio_io::codec::encoder::Encoder::Error">Error</a>;</span></code></li>
</ul><script type="text/javascript" async
src="../../implementors/futures/sink/trait.Sink.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../../";
window.currentCrate = "tokio";
</script>
<script src="../../main.js"></script>
<script defer src="../../search-index.js"></script>
</body>
</html>