trait.Sink.html 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <!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 `futures`."><meta name="keywords" content="rust, rustlang, rust-lang, Sink"><title>futures::sink::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="../../light.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">Vec&lt;T&gt;</a><a href="#impl-Sink">Box&lt;S&gt;</a><a href="#impl-Sink">&amp;&#39;a mut S</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>futures</a>::<wbr><a href='index.html'>sink</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"><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../index.html'>futures</a>::<wbr><a href='index.html'>sink</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><div class="docblock type-decl"><pre class='rust trait'>pub trait Sink {
  2. type <a href='#associatedtype.SinkItem' class="type">SinkItem</a>;
  3. type <a href='#associatedtype.SinkError' class="type">SinkError</a>;
  4. 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="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="type" href="../../futures/type.StartSend.html" title="type futures::StartSend">StartSend</a>&lt;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;;
  5. <div class='item-spacer'></div> fn <a href='#tymethod.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;;
  6. fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt; { ... }
  7. <div class='item-spacer'></div> fn <a href='#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Wait.html" title="struct futures::sink::Wait">Wait</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  8. { ... }
  9. <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/struct.With.html" title="struct futures::sink::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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  10. { ... }
  11. <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/struct.WithFlatMap.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  12. { ... }
  13. <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/struct.SinkMapErr.html" title="struct futures::sink::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  14. { ... }
  15. <div class='item-spacer'></div> fn <a href='#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E:&nbsp;<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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  16. { ... }
  17. <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/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  18. { ... }
  19. <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/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, S&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</span>,
  20. { ... }
  21. <div class='item-spacer'></div> fn <a href='#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  22. { ... }
  23. <div class='item-spacer'></div> fn <a href='#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  24. { ... }
  25. <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/struct.SendAll.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span>,
  26. { ... }
  27. }</pre></div><div class='docblock'><p>A <code>Sink</code> is a value into which other values can be sent, asynchronously.</p>
  28. <p>Basic examples of sinks include the sending side of:</p>
  29. <ul>
  30. <li>Channels</li>
  31. <li>Sockets</li>
  32. <li>Pipes</li>
  33. </ul>
  34. <p>In addition to such &quot;primitive&quot; sinks, it's typical to layer additional
  35. functionality, such as buffering, on top of an existing sink.</p>
  36. <p>Sending to a sink is &quot;asynchronous&quot; in the sense that the value may not be
  37. sent in its entirety immediately. Instead, values are sent in a two-phase
  38. way: first by initiating a send, and then by polling for completion. This
  39. two-phase setup is analogous to buffered writing in synchronous code, where
  40. writes often succeed immediately, but internally are buffered and are
  41. <em>actually</em> written only upon flushing.</p>
  42. <p>In addition, the <code>Sink</code> may be <em>full</em>, in which case it is not even possible
  43. to start the sending process.</p>
  44. <p>As with <code>Future</code> and <code>Stream</code>, the <code>Sink</code> trait is built from a few core
  45. required methods, and a host of default methods for working in a
  46. higher-level way. The <code>Sink::send_all</code> combinator is of particular
  47. importance: you can use it to send an entire stream to a sink, which is
  48. the simplest way to ultimately consume a sink.</p>
  49. <p>You can find more information/tutorials about streams <a href="https://tokio.rs/docs/getting-started/streams-and-sinks/">online at
  50. https://tokio.rs</a></p>
  51. </div>
  52. <h2 id='associated-types' class='small-section-header'>
  53. Associated Types<a href='#associated-types' class='anchor'></a>
  54. </h2>
  55. <div class='methods'>
  56. <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>
  57. </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>
  58. </div></div>
  59. <h2 id='required-methods' class='small-section-header'>
  60. Required Methods<a href='#required-methods' class='anchor'></a>
  61. </h2>
  62. <div class='methods'>
  63. <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="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a><br>) -&gt; <a class="type" href="../../futures/type.StartSend.html" title="type futures::StartSend">StartSend</a>&lt;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></h3><div class='docblock'><p>Begin the process of sending a value to the sink.</p>
  64. <p>As the name suggests, this method only <em>begins</em> the process of sending
  65. the item. If the sink employs buffering, the item isn't fully processed
  66. until the buffer is fully flushed. Since sinks are designed to work with
  67. asynchronous I/O, the process of actually writing out the data to an
  68. underlying object takes place asynchronously. <strong>You <em>must</em> use
  69. <code>poll_complete</code> in order to drive completion of a send</strong>. In particular,
  70. <code>start_send</code> does not begin the flushing process</p>
  71. <h1 id="return-value" class="section-header"><a href="#return-value">Return value</a></h1>
  72. <p>This method returns <code>AsyncSink::Ready</code> if the sink was able to start
  73. sending <code>item</code>. In that case, you <em>must</em> ensure that you call
  74. <code>poll_complete</code> to process the sent item to completion. Note, however,
  75. that several calls to <code>start_send</code> can be made prior to calling
  76. <code>poll_complete</code>, which will work on completing all pending items.</p>
  77. <p>The method returns <code>AsyncSink::NotReady</code> if the sink was unable to begin
  78. sending, usually due to being full. The sink must have attempted to
  79. complete processing any outstanding requests (equivalent to
  80. <code>poll_complete</code>) before yielding this result. The current task will be
  81. automatically scheduled for notification when the sink may be ready to
  82. receive new values.</p>
  83. <h1 id="errors" class="section-header"><a href="#errors">Errors</a></h1>
  84. <p>If the sink encounters an error other than being temporarily full, it
  85. uses the <code>Err</code> variant to signal that error. In most cases, such errors
  86. mean that the sink will permanently be unable to receive items.</p>
  87. <h1 id="panics" class="section-header"><a href="#panics">Panics</a></h1>
  88. <p>This method may panic in a few situations, depending on the specific
  89. sink:</p>
  90. <ul>
  91. <li>It is called outside of the context of a task.</li>
  92. <li>A previous call to <code>start_send</code> or <code>poll_complete</code> yielded an error.</li>
  93. </ul>
  94. </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="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></h3><div class='docblock'><p>Flush all output from this sink, if necessary.</p>
  95. <p>Some sinks may buffer intermediate data as an optimization to improve
  96. throughput. In other words, if a sink has a corresponding receiver then
  97. a successful <code>start_send</code> above may not guarantee that the value is
  98. actually ready to be received by the receiver. This function is intended
  99. to be used to ensure that values do indeed make their way to the
  100. receiver.</p>
  101. <p>This function will attempt to process any pending requests on behalf of
  102. the sink and drive it to completion.</p>
  103. <h1 id="return-value-1" class="section-header"><a href="#return-value-1">Return value</a></h1>
  104. <p>Returns <code>Ok(Async::Ready(()))</code> when no buffered items remain. If this
  105. value is returned then it is guaranteed that all previous values sent
  106. via <code>start_send</code> will be guaranteed to be available to a listening
  107. receiver.</p>
  108. <p>Returns <code>Ok(Async::NotReady)</code> if there is more work left to do, in which
  109. case the current task is scheduled to wake up when more progress may be
  110. possible.</p>
  111. <h1 id="errors-1" class="section-header"><a href="#errors-1">Errors</a></h1>
  112. <p>Returns <code>Err</code> if the sink encounters an error while processing one of
  113. its pending requests. Due to the buffered nature of requests, it is not
  114. generally possible to correlate the error with a particular request. As
  115. with <code>start_send</code>, these errors are generally &quot;fatal&quot; for continued use
  116. of the sink.</p>
  117. <h1 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h1>
  118. <p>This method may panic in a few situations, depending on the specific sink:</p>
  119. <ul>
  120. <li>It is called outside of the context of a task.</li>
  121. <li>A previous call to <code>start_send</code> or <code>poll_complete</code> yielded an error.</li>
  122. </ul>
  123. <h1 id="compatibility-nodes" class="section-header"><a href="#compatibility-nodes">Compatibility nodes</a></h1>
  124. <p>The name of this method may be slightly misleading as the original
  125. intention was to have this method be more general than just flushing
  126. requests. Over time though it was decided to trim back the ambitions of
  127. this method to what it's always done, just flushing.</p>
  128. <p>In the 0.2 release series of futures this method will be renamed to
  129. <code>poll_flush</code>. For 0.1, however, the breaking change is not happening
  130. yet.</p>
  131. </div></div>
  132. <h2 id='provided-methods' class='small-section-header'>
  133. Provided Methods<a href='#provided-methods' class='anchor'></a>
  134. </h2>
  135. <div class='methods'>
  136. <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="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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
  137. sink.</p>
  138. <p>This method is used to indicate that a sink will no longer even be given
  139. another value by the caller. That is, the <code>start_send</code> method above will
  140. be called no longer (nor <code>poll_complete</code>). This method is intended to
  141. model &quot;graceful shutdown&quot; in various protocols where the intent to shut
  142. down is followed by a little more blocking work.</p>
  143. <p>Callers of this function should work it it in a similar fashion to
  144. <code>poll_complete</code>. Once called it may return <code>NotReady</code> which indicates
  145. that more external work needs to happen to make progress. The current
  146. task will be scheduled to receive a notification in such an event,
  147. however.</p>
  148. <p>Note that this function will imply <code>poll_complete</code> above. That is, if a
  149. sink has buffered data, then it'll be flushed out during a <code>close</code>
  150. operation. It is not necessary to have <code>poll_complete</code> return <code>Ready</code>
  151. before a <code>close</code> is called. Once a <code>close</code> is called, though,
  152. <code>poll_complete</code> cannot be called.</p>
  153. <h1 id="return-value-2" class="section-header"><a href="#return-value-2">Return value</a></h1>
  154. <p>This function, like <code>poll_complete</code>, returns a <code>Poll</code>. The value is
  155. <code>Ready</code> once the close operation has completed. At that point it should
  156. be safe to drop the sink and deallocate associated resources.</p>
  157. <p>If the value returned is <code>NotReady</code> then the sink is not yet closed and
  158. work needs to be done to close it. The work has been scheduled and the
  159. current task will receive a notification when it's next ready to call
  160. this method again.</p>
  161. <p>Finally, this function may also return an error.</p>
  162. <h1 id="errors-2" class="section-header"><a href="#errors-2">Errors</a></h1>
  163. <p>This function will return an <code>Err</code> if any operation along the way during
  164. the close operation fails. An error typically is fatal for a sink and is
  165. unable to be recovered from, but in specific situations this may not
  166. always be true.</p>
  167. <p>Note that it's also typically an error to call <code>start_send</code> or
  168. <code>poll_complete</code> after the <code>close</code> function is called. This method will
  169. <em>initiate</em> a close, and continuing to send values after that (or attempt
  170. to flush) may result in strange behavior, panics, errors, etc. Once this
  171. method is called, it must be the only method called on this <code>Sink</code>.</p>
  172. <h1 id="panics-2" class="section-header"><a href="#panics-2">Panics</a></h1>
  173. <p>This method may panic or cause panics if:</p>
  174. <ul>
  175. <li>It is called outside the context of a future's task</li>
  176. <li>It is called and then <code>start_send</code> or <code>poll_complete</code> is called</li>
  177. </ul>
  178. <h1 id="compatibility-notes" class="section-header"><a href="#compatibility-notes">Compatibility notes</a></h1>
  179. <p>Note that this function is currently by default a provided function,
  180. defaulted to calling <code>poll_complete</code> above. This function was added
  181. in the 0.1 series of the crate as a backwards-compatible addition. It
  182. is intended that in the 0.2 series the method will no longer be a
  183. default method.</p>
  184. <p>It is highly recommended to consider this method a required method and
  185. to implement it whenever you implement <code>Sink</code> locally. It is especially
  186. crucial to be sure to close inner sinks, if applicable.</p>
  187. </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/struct.Wait.html" title="struct futures::sink::Wait">Wait</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Creates a new object which will produce a synchronous sink.</p>
  188. <p>The sink returned does <strong>not</strong> implement the <code>Sink</code> trait, and instead
  189. only has two methods: <code>send</code> and <code>flush</code>. These two methods correspond
  190. to <code>start_send</code> and <code>poll_complete</code> above except are executed in a
  191. blocking fashion.</p>
  192. </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/struct.With.html" title="struct futures::sink::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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></h3><div class='docblock'><p>Composes a function <em>in front of</em> the sink.</p>
  193. <p>This adapter produces a new sink that passes each value through the
  194. given function <code>f</code> before sending it to <code>self</code>.</p>
  195. <p>To process each value, <code>f</code> produces a <em>future</em>, which is then polled to
  196. completion before passing its result down to the underlying sink. If the
  197. future produces an error, that error is returned by the new sink.</p>
  198. <p>Note that this function consumes the given sink, returning a wrapped
  199. version, much like <code>Iterator::map</code>.</p>
  200. </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/struct.WithFlatMap.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></h3><div class='docblock'><p>Composes a function <em>in front of</em> the sink.</p>
  201. <p>This adapter produces a new sink that passes each value through the
  202. given function <code>f</code> before sending it to <code>self</code>.</p>
  203. <p>To process each value, <code>f</code> produces a <em>stream</em>, of which each value
  204. is passed to the underlying sink. A new value will not be accepted until
  205. the stream has been drained</p>
  206. <p>Note that this function consumes the given sink, returning a wrapped
  207. version, much like <code>Iterator::flat_map</code>.</p>
  208. <h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
  209. <hr />
  210. <p>Using this function with an iterator through use of the <code>stream::iter_ok()</code>
  211. function</p>
  212. <pre class="rust rust-example-rendered">
  213. <span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
  214. <span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">stream</span>;
  215. <span class="kw">use</span> <span class="ident">futures</span>::<span class="ident">sync</span>::<span class="ident">mpsc</span>;
  216. <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>);
  217. <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> {
  218. <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>))
  219. });
  220. <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>();
  221. <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>
  222. </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/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></h3><div class='docblock'><p>Transforms the error returned by the sink.</p>
  223. </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:&nbsp;<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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&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
  224. <code>Error</code>, returning a new sink.</p>
  225. <p>If wanting to map errors of a <code>Sink + Stream</code>, use <code>.sink_from_err().from_err()</code>.</p>
  226. </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/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Adds a fixed-size buffer to the current sink.</p>
  227. <p>The resulting sink will buffer up to <code>amt</code> items when the underlying
  228. sink is unwilling to accept additional items. Calling <code>poll_complete</code> on
  229. the buffered sink will attempt to both empty the buffer and complete
  230. processing on the underlying sink.</p>
  231. <p>Note that this function consumes the given sink, returning a wrapped
  232. version, much like <code>Iterator::map</code>.</p>
  233. <p>This method is only available when the <code>use_std</code> feature of this
  234. library is activated, and it is activated by default.</p>
  235. </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/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></h3><div class='docblock'><p>Fanout items to multiple sinks.</p>
  236. <p>This adapter clones each incoming item and forwards it to both this as well as
  237. the other sink at the same time.</p>
  238. </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/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>A future that completes when the sink has finished processing all
  239. pending requests.</p>
  240. <p>The sink itself is returned after flushing is complete; this adapter is
  241. intended to be used when you want to stop sending to the sink until
  242. all current requests are processed.</p>
  243. </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="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>A future that completes after the given item has been fully processed
  244. into the sink, including flushing.</p>
  245. <p>Note that, <strong>because of the flushing requirement, it is usually better
  246. to batch together items to send via <code>send_all</code>, rather than flushing
  247. between each item.</strong></p>
  248. <p>On completion, the sink is returned.</p>
  249. </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/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></h3><div class='docblock'><p>A future that completes after the given stream has been fully processed
  250. into the sink, including flushing.</p>
  251. <p>This future will drive the stream to keep producing items until it is
  252. exhausted, sending each item to the sink. It will complete once both the
  253. stream is exhausted, the sink has received all items, the sink has been
  254. flushed, and the sink has been closed.</p>
  255. <p>Doing <code>sink.send_all(stream)</code> is roughly equivalent to
  256. <code>stream.forward(sink)</code>. The returned future will exhaust all items from
  257. <code>stream</code> and send them to <code>self</code>, closing <code>self</code> when all items have been
  258. received.</p>
  259. <p>On completion, the pair <code>(sink, source)</code> is returned.</p>
  260. </div></div>
  261. <h2 id='foreign-impls' class='small-section-header'>
  262. Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
  263. </h2>
  264. <h3 id='impl-Sink' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::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' class='anchor'></a></span></td><td><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></td></tr></tbody></table></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>
  265. <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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
  266. <h4 id='method.start_send' class="method"><span id='start_send.v-1' class='invisible'><table class='table-display'><tbody><tr><td><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: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a><br>) -&gt; <a class="type" href="../../futures/type.StartSend.html" title="type futures::StartSend">StartSend</a>&lt;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.poll_complete' class="method"><span id='poll_complete.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.close-1' class="method"><span id='close.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.wait-1' class="method"><span id='wait.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Wait.html" title="struct futures::sink::Wait">Wait</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with-1' class="method"><span id='with.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/struct.With.html" title="struct futures::sink::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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with_flat_map-1' class="method"><span id='with_flat_map.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.WithFlatMap.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_map_err-1' class="method"><span id='sink_map_err.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_from_err-1' class="method"><span id='sink_from_err.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E:&nbsp;<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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.buffer-1' class="method"><span id='buffer.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.fanout-1' class="method"><span id='fanout.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.flush-1' class="method"><span id='flush.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send-1' class="method"><span id='send.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send_all-1' class="method"><span id='send_all.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Sink-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;S:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&gt; <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::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;</code><a href='#impl-Sink-1' class='anchor'></a></span></td><td><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></td></tr></tbody></table></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> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a></code></span></h4>
  267. <h4 id='associatedtype.SinkError-2' class="type"><span id='SinkError.t-2' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a></code></span></h4>
  268. <h4 id='method.start_send-1' class="method"><span id='start_send.v-2' class='invisible'><table class='table-display'><tbody><tr><td><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: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a><br>) -&gt; <a class="type" href="../../futures/type.StartSend.html" title="type futures::StartSend">StartSend</a>&lt;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.poll_complete-1' class="method"><span id='poll_complete.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.close-2' class="method"><span id='close.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.wait-2' class="method"><span id='wait.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Wait.html" title="struct futures::sink::Wait">Wait</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with-2' class="method"><span id='with.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/struct.With.html" title="struct futures::sink::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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with_flat_map-2' class="method"><span id='with_flat_map.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.WithFlatMap.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_map_err-2' class="method"><span id='sink_map_err.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_from_err-2' class="method"><span id='sink_from_err.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E:&nbsp;<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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.buffer-2' class="method"><span id='buffer.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.fanout-2' class="method"><span id='fanout.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.flush-2' class="method"><span id='flush.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send-2' class="method"><span id='send.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send_all-2' class="method"><span id='send_all.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Sink-2' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, S:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&gt; <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>S</code><a href='#impl-Sink-2' class='anchor'></a></span></td><td><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></td></tr></tbody></table></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> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a></code></span></h4>
  269. <h4 id='associatedtype.SinkError-3' class="type"><span id='SinkError.t-3' class='invisible'><code>type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a></code></span></h4>
  270. <h4 id='method.start_send-2' class="method"><span id='start_send.v-3' class='invisible'><table class='table-display'><tbody><tr><td><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: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a><br>) -&gt; <a class="type" href="../../futures/type.StartSend.html" title="type futures::StartSend">StartSend</a>&lt;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.poll_complete-2' class="method"><span id='poll_complete.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.poll_complete' class='fnname'>poll_complete</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.close-3' class="method"><span id='close.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.close' class='fnname'>close</a>(&amp;mut self) -&gt; <a class="type" href="../../futures/type.Poll.html" title="type futures::Poll">Poll</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;</code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.wait-3' class="method"><span id='wait.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.wait' class='fnname'>wait</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Wait.html" title="struct futures::sink::Wait">Wait</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with-3' class="method"><span id='with.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.with' class='fnname'>with</a>&lt;U, F, Fut&gt;(self, f: F) -&gt; <a class="struct" href="../../futures/sink/struct.With.html" title="struct futures::sink::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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.with_flat_map-3' class="method"><span id='with_flat_map.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.WithFlatMap.html" title="struct futures::sink::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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_map_err-3' class="method"><span id='sink_map_err.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.sink_from_err-3' class="method"><span id='sink_from_err.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.sink_from_err' class='fnname'>sink_from_err</a>&lt;E:&nbsp;<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="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;&gt;(self) -&gt; <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;Self, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.buffer-3' class="method"><span id='buffer.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/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/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.fanout-3' class="method"><span id='fanout.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.fanout' class='fnname'>fanout</a>&lt;S&gt;(self, other: S) -&gt; <a class="struct" href="../../futures/sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.flush-3' class="method"><span id='flush.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.flush' class='fnname'>flush</a>(self) -&gt; <a class="struct" href="../../futures/sink/struct.Flush.html" title="struct futures::sink::Flush">Flush</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send-3' class="method"><span id='send.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send' class='fnname'>send</a>(self, item: Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>) -&gt; <a class="struct" href="../../futures/sink/struct.Send.html" title="struct futures::sink::Send">Send</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code></span></td><td><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></td></tr></tbody></table></span></h4><h4 id='method.send_all-3' class="method"><span id='send_all.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../futures/sink/trait.Sink.html#method.send_all' class='fnname'>send_all</a>&lt;S&gt;(self, stream: S) -&gt; <a class="struct" href="../../futures/sink/struct.SendAll.html" title="struct futures::sink::SendAll">SendAll</a>&lt;Self, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::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;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <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></span></td><td><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></td></tr></tbody></table></span></h4></div></span>
  271. <h2 id='implementors' class='small-section-header'>
  272. Implementors<a href='#implementors' class='anchor'></a>
  273. </h2>
  274. <ul class='item-list' id='implementors-list'>
  275. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F, U:&nbsp;<a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&gt; Sink for <a class="struct" href="../../futures/stream/struct.AndThen.html" title="struct futures::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="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  276. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.Filter.html" title="struct futures::stream::Filter">Filter</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/filter.rs.html#51-68' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  277. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.FilterMap.html" title="struct futures::stream::FilterMap">FilterMap</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  278. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Flatten.html" title="struct futures::stream::Flatten">Flatten</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/flatten.rs.html#54-71' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  279. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S:&nbsp;<a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a> + <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>, E&gt; Sink for <a class="struct" href="../../futures/stream/struct.FromErr.html" title="struct futures::stream::FromErr">FromErr</a>&lt;S, E&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  280. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Fuse.html" title="struct futures::stream::Fuse">Fuse</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/fuse.rs.html#17-34' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  281. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.Inspect.html" title="struct futures::stream::Inspect">Inspect</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/inspect.rs.html#49-66' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  282. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.InspectErr.html" title="struct futures::stream::InspectErr">InspectErr</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  283. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.Map.html" title="struct futures::stream::Map">Map</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/map.rs.html#51-68' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  284. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F&gt; Sink for <a class="struct" href="../../futures/stream/struct.MapErr.html" title="struct futures::stream::MapErr">MapErr</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  285. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F, U&gt; Sink for <a class="struct" href="../../futures/stream/struct.OrElse.html" title="struct futures::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="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  286. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Peekable.html" title="struct futures::stream::Peekable">Peekable</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/peek.rs.html#25-42' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  287. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Skip.html" title="struct futures::stream::Skip">Skip</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/skip.rs.html#49-66' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  288. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, P, R&gt; Sink for <a class="struct" href="../../futures/stream/struct.SkipWhile.html" title="struct futures::stream::SkipWhile">SkipWhile</a>&lt;S, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  289. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Take.html" title="struct futures::stream::Take">Take</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/take.rs.html#49-66' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  290. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, P, R&gt; Sink for <a class="struct" href="../../futures/stream/struct.TakeWhile.html" title="struct futures::stream::TakeWhile">TakeWhile</a>&lt;S, P, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  291. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F, U&gt; Sink for <a class="struct" href="../../futures/stream/struct.Then.html" title="struct futures::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="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/then.rs.html#31-48' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  292. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Buffered.html" title="struct futures::stream::Buffered">Buffered</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/buffered.rs.html#78-96' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  293. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.BufferUnordered.html" title="struct futures::stream::BufferUnordered">BufferUnordered</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::<a class="type" href="../../futures/stream/trait.Stream.html#associatedtype.Item" title="type futures::stream::Stream::Item">Item</a>: <a class="trait" href="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><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></td></tr></tbody></table></li>
  294. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S&gt; Sink for <a class="struct" href="../../futures/stream/struct.Chunks.html" title="struct futures::stream::Chunks">Chunks</a>&lt;S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a> + <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/chunks.rs.html#35-52' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  295. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S:&nbsp;<a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&gt; Sink for <a class="struct" href="../../futures/stream/struct.SplitSink.html" title="struct futures::stream::SplitSink">SplitSink</a>&lt;S&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/stream/split.rs.html#48-74' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  296. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, U, F, Fut&gt; Sink for <a class="struct" href="../../futures/sink/struct.With.html" title="struct futures::sink::With">With</a>&lt;S, U, F, Fut&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<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="../../futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>&lt;Item = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::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;S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = U;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = Fut::<a class="type" href="../../futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/with.rs.html#124-153' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  297. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, U, F, St&gt; Sink for <a class="struct" href="../../futures/sink/struct.WithFlatMap.html" title="struct futures::sink::WithFlatMap">WithFlatMap</a>&lt;S, U, F, St&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<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="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, Error = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = U;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/with_flat_map.rs.html#96-126' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  298. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, E&gt; Sink for <a class="struct" href="../../futures/sink/struct.SinkFromErr.html" title="struct futures::sink::SinkFromErr">SinkFromErr</a>&lt;S, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<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;S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = E;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/from_err.rs.html#44-62' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  299. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S, F, E&gt; Sink for <a class="struct" href="../../futures/sink/struct.SinkMapErr.html" title="struct futures::sink::SinkMapErr">SinkMapErr</a>&lt;S, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<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>(S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>) -&gt; E,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = E;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/map_err.rs.html#37-55' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  300. <li><table class='table-display'><tbody><tr><td><code>impl&lt;A, B&gt; Sink for <a class="struct" href="../../futures/sink/struct.Fanout.html" title="struct futures::sink::Fanout">Fanout</a>&lt;A, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::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>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&lt;SinkItem = A::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>, SinkError = A::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>&gt;,&nbsp;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = A::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = A::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/fanout.rs.html#44-90' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  301. <li><table class='table-display'><tbody><tr><td><code>impl&lt;S:&nbsp;<a class="trait" href="../../futures/sink/trait.Sink.html" title="trait futures::sink::Sink">Sink</a>&gt; Sink for <a class="struct" href="../../futures/sink/struct.Buffer.html" title="struct futures::sink::Buffer">Buffer</a>&lt;S&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkItem" title="type futures::sink::Sink::SinkItem">SinkItem</a>;</span><span class="where fmt-newline"> type <a href='#associatedtype.SinkError' class="type">SinkError</a> = S::<a class="type" href="../../futures/sink/trait.Sink.html#associatedtype.SinkError" title="type futures::sink::Sink::SinkError">SinkError</a>;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sink/buffer.rs.html#70-108' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  302. <li><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; Sink for futures::sync::mpsc::<a class="struct" href="../../futures/sync/mpsc/struct.Sender.html" title="struct futures::sync::mpsc::Sender">Sender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#634-658' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  303. <li><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; Sink for futures::sync::mpsc::<a class="struct" href="../../futures/sync/mpsc/struct.UnboundedSender.html" title="struct futures::sync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#682-697' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  304. <li><table class='table-display'><tbody><tr><td><code>impl&lt;'a, T&gt; Sink for &amp;'a futures::sync::mpsc::<a class="struct" href="../../futures/sync/mpsc/struct.UnboundedSender.html" title="struct futures::sync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/sync/mpsc/mod.rs.html#699-715' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  305. <li><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; Sink for futures::unsync::mpsc::<a class="struct" href="../../futures/unsync/mpsc/struct.Sender.html" title="struct futures::unsync::mpsc::Sender">Sender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#90-105' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  306. <li><table class='table-display'><tbody><tr><td><code>impl&lt;T&gt; Sink for futures::unsync::mpsc::<a class="struct" href="../../futures/unsync/mpsc/struct.UnboundedSender.html" title="struct futures::unsync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#214-227' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  307. <li><table class='table-display'><tbody><tr><td><code>impl&lt;'a, T&gt; Sink for &amp;'a futures::unsync::mpsc::<a class="struct" href="../../futures/unsync/mpsc/struct.UnboundedSender.html" title="struct futures::unsync::mpsc::UnboundedSender">UnboundedSender</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.SinkItem' class="type">SinkItem</a> = T;</span><span class="where fmt-newline"> 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;;</span></code><td><div class='out-of-band'><a class='srclink' href='../../src/futures/unsync/mpsc.rs.html#229-244' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
  308. </ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
  309. src="../../implementors/futures/sink/trait.Sink.js">
  310. </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><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "futures";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>