Files
google-apis-rs/futures/io/trait.AsyncWriteExt.html
2024-03-05 21:06:01 +01:00

84 lines
25 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

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

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="An extension trait which adds utility methods to `AsyncWrite` types."><title>AsyncWriteExt in futures::io - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../static.files/rustdoc-ac92e1bbe349e143.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="futures" data-themes="" data-resource-suffix="" data-rustdoc-version="1.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../futures/index.html">futures</a><span class="version">0.3.28</span></h2></div><h2 class="location"><a href="#">AsyncWriteExt</a></h2><div class="sidebar-elems"><section><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.close">close</a></li><li><a href="#method.flush">flush</a></li><li><a href="#method.into_sink">into_sink</a></li><li><a href="#method.write">write</a></li><li><a href="#method.write_all">write_all</a></li><li><a href="#method.write_vectored">write_vectored</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In futures::io</a></h2></div></nav><div class="sidebar-resizer"></div>
<main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../../futures/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../index.html">futures</a>::<wbr><a href="index.html">io</a>::<wbr><a class="trait" href="#">AsyncWriteExt</a><button id="copy-path" title="Copy item path to clipboard"><img src="../../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../../src/futures_util/io/mod.rs.html#401">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait AsyncWriteExt: <a class="trait" href="trait.AsyncWrite.html" title="trait futures::io::AsyncWrite">AsyncWrite</a> {
// Provided methods
fn <a href="#method.flush" class="fn">flush</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Flush.html" title="struct futures::io::Flush">Flush</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Flush&lt;&#39;_, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.close" class="fn">close</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Close.html" title="struct futures::io::Close">Close</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Close&lt;&#39;_, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.write" class="fn">write</a>&lt;'a&gt;(&amp;'a mut self, buf: &amp;'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="struct" href="struct.Write.html" title="struct futures::io::Write">Write</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="Write&lt;&#39;a, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.write_vectored" class="fn">write_vectored</a>&lt;'a&gt;(
&amp;'a mut self,
bufs: &amp;'a [<a class="struct" href="struct.IoSlice.html" title="struct futures::io::IoSlice">IoSlice</a>&lt;'a&gt;]
) -&gt; <a class="struct" href="struct.WriteVectored.html" title="struct futures::io::WriteVectored">WriteVectored</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="WriteVectored&lt;&#39;a, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.write_all" class="fn">write_all</a>&lt;'a&gt;(&amp;'a mut self, buf: &amp;'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="struct" href="struct.WriteAll.html" title="struct futures::io::WriteAll">WriteAll</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="WriteAll&lt;&#39;a, Self&gt;"></a>
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.into_sink" class="fn">into_sink</a>&lt;Item&gt;(self) -&gt; <a class="struct" href="struct.IntoSink.html" title="struct futures::io::IntoSink">IntoSink</a>&lt;Self, Item&gt;
<span class="where">where Item: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></span> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>An extension trait which adds utility methods to <code>AsyncWrite</code> types.</p>
</div></details><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.flush" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#424-426">source</a><h4 class="code-header">fn <a href="#method.flush" class="fn">flush</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Flush.html" title="struct futures::io::Flush">Flush</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Flush&lt;&#39;_, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Creates a future which will entirely flush this <code>AsyncWrite</code>.</p>
<h5 id="examples"><a href="#examples">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::io::{AllowStdIo, AsyncWriteExt};
<span class="kw">use </span>std::io::{BufWriter, Cursor};
<span class="kw">let </span><span class="kw-2">mut </span>output = <span class="macro">vec!</span>[<span class="number">0u8</span>; <span class="number">5</span>];
{
<span class="kw">let </span>writer = Cursor::new(<span class="kw-2">&amp;mut </span>output);
<span class="kw">let </span><span class="kw-2">mut </span>buffered = AllowStdIo::new(BufWriter::new(writer));
buffered.write_all(<span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">2</span>]).<span class="kw">await</span><span class="question-mark">?</span>;
buffered.write_all(<span class="kw-2">&amp;</span>[<span class="number">3</span>, <span class="number">4</span>]).<span class="kw">await</span><span class="question-mark">?</span>;
buffered.flush().<span class="kw">await</span><span class="question-mark">?</span>;
}
<span class="macro">assert_eq!</span>(output, [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">0</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.close" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#432-434">source</a><h4 class="code-header">fn <a href="#method.close" class="fn">close</a>(&amp;mut self) -&gt; <a class="struct" href="struct.Close.html" title="struct futures::io::Close">Close</a>&lt;'_, Self&gt; <a href="#" class="tooltip" data-notable-ty="Close&lt;&#39;_, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Creates a future which will entirely close this <code>AsyncWrite</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#443-445">source</a><h4 class="code-header">fn <a href="#method.write" class="fn">write</a>&lt;'a&gt;(&amp;'a mut self, buf: &amp;'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="struct" href="struct.Write.html" title="struct futures::io::Write">Write</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="Write&lt;&#39;a, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Creates a future which will write bytes from <code>buf</code> into the object.</p>
<p>The returned future will resolve to the number of bytes written once the write
operation is completed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_vectored" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#455-457">source</a><h4 class="code-header">fn <a href="#method.write_vectored" class="fn">write_vectored</a>&lt;'a&gt;(
&amp;'a mut self,
bufs: &amp;'a [<a class="struct" href="struct.IoSlice.html" title="struct futures::io::IoSlice">IoSlice</a>&lt;'a&gt;]
) -&gt; <a class="struct" href="struct.WriteVectored.html" title="struct futures::io::WriteVectored">WriteVectored</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="WriteVectored&lt;&#39;a, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Creates a future which will write bytes from <code>bufs</code> into the object using vectored
IO operations.</p>
<p>The returned future will resolve to the number of bytes written once the write
operation is completed.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_all" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#482-484">source</a><h4 class="code-header">fn <a href="#method.write_all" class="fn">write_all</a>&lt;'a&gt;(&amp;'a mut self, buf: &amp;'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="struct" href="struct.WriteAll.html" title="struct futures::io::WriteAll">WriteAll</a>&lt;'a, Self&gt; <a href="#" class="tooltip" data-notable-ty="WriteAll&lt;&#39;a, Self&gt;"></a><div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><div class="docblock"><p>Write data into this object.</p>
<p>Creates a future that will write the entire contents of the buffer <code>buf</code> into
this <code>AsyncWrite</code>.</p>
<p>The returned future will not complete until all the data has been written.</p>
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::io::{AsyncWriteExt, Cursor};
<span class="kw">let </span><span class="kw-2">mut </span>writer = Cursor::new(<span class="macro">vec!</span>[<span class="number">0u8</span>; <span class="number">5</span>]);
writer.write_all(<span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(writer.into_inner(), [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">0</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_sink" class="method"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#584-586">source</a><h4 class="code-header">fn <a href="#method.into_sink" class="fn">into_sink</a>&lt;Item&gt;(self) -&gt; <a class="struct" href="struct.IntoSink.html" title="struct futures::io::IntoSink">IntoSink</a>&lt;Self, Item&gt;<div class="where">where
Item: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]&gt;,
Self: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Allow using an <a href="trait.AsyncWrite.html" title="trait futures::io::AsyncWrite"><code>AsyncWrite</code></a> as a <a href="../sink/trait.Sink.html" title="trait futures::sink::Sink"><code>Sink</code></a><code>&lt;Item: AsRef&lt;[u8]&gt;&gt;</code>.</p>
<p>This adapter produces a sink that will write each value passed to it
into the underlying writer.</p>
<p>Note that this function consumes the given writer, returning a wrapped
version.</p>
<h5 id="examples-2"><a href="#examples-2">Examples</a></h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>futures::io::AsyncWriteExt;
<span class="kw">use </span>futures::stream::{<span class="self">self</span>, StreamExt};
<span class="kw">let </span>stream = stream::iter(<span class="macro">vec!</span>[<span class="prelude-val">Ok</span>([<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]), <span class="prelude-val">Ok</span>([<span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>])]);
<span class="kw">let </span><span class="kw-2">mut </span>writer = <span class="macro">vec!</span>[];
stream.forward((<span class="kw-2">&amp;mut </span>writer).into_sink()).<span class="kw">await</span><span class="question-mark">?</span>;
<span class="macro">assert_eq!</span>(writer, <span class="macro">vec!</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>]);</code></pre></div>
</div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.76.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-AsyncWriteExt-for-W" class="impl"><a class="src rightside" href="../../src/futures_util/io/mod.rs.html#592">source</a><a href="#impl-AsyncWriteExt-for-W" class="anchor">§</a><h3 class="code-header">impl&lt;W&gt; <a class="trait" href="trait.AsyncWriteExt.html" title="trait futures::io::AsyncWriteExt">AsyncWriteExt</a> for W<div class="where">where
W: <a class="trait" href="trait.AsyncWrite.html" title="trait futures::io::AsyncWrite">AsyncWrite</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></div><script src="../../trait.impl/futures_util/io/trait.AsyncWriteExt.js" async></script><script type="text/json" id="notable-traits-data">{"Close<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Close.html\" title=\"struct futures::io::Close\">Close</a>&lt;'_, W&gt;</code></h3><pre><code><div class=\"where\">impl&lt;W&gt; <a class=\"trait\" href=\"../future/trait.Future.html\" title=\"trait futures::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Close.html\" title=\"struct futures::io::Close\">Close</a>&lt;'_, W&gt;<div class=\"where\">where\n W: <a class=\"trait\" href=\"trait.AsyncWrite.html\" title=\"trait futures::io::AsyncWrite\">AsyncWrite</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,</div></div><div class=\"where\"> type <a href=\"../future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.76.0/std/primitive.unit.html\">()</a>, <a class=\"struct\" href=\"struct.Error.html\" title=\"struct futures::io::Error\">Error</a>&gt;;</div>","Flush<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Flush.html\" title=\"struct futures::io::Flush\">Flush</a>&lt;'_, W&gt;</code></h3><pre><code><div class=\"where\">impl&lt;W&gt; <a class=\"trait\" href=\"../future/trait.Future.html\" title=\"trait futures::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Flush.html\" title=\"struct futures::io::Flush\">Flush</a>&lt;'_, W&gt;<div class=\"where\">where\n W: <a class=\"trait\" href=\"trait.AsyncWrite.html\" title=\"trait futures::io::AsyncWrite\">AsyncWrite</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,</div></div><div class=\"where\"> type <a href=\"../future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.76.0/std/primitive.unit.html\">()</a>, <a class=\"struct\" href=\"struct.Error.html\" title=\"struct futures::io::Error\">Error</a>&gt;;</div>","Write<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Write.html\" title=\"struct futures::io::Write\">Write</a>&lt;'_, W&gt;</code></h3><pre><code><div class=\"where\">impl&lt;W&gt; <a class=\"trait\" href=\"../future/trait.Future.html\" title=\"trait futures::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.Write.html\" title=\"struct futures::io::Write\">Write</a>&lt;'_, W&gt;<div class=\"where\">where\n W: <a class=\"trait\" href=\"trait.AsyncWrite.html\" title=\"trait futures::io::AsyncWrite\">AsyncWrite</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,</div></div><div class=\"where\"> type <a href=\"../future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.76.0/std/primitive.usize.html\">usize</a>, <a class=\"struct\" href=\"struct.Error.html\" title=\"struct futures::io::Error\">Error</a>&gt;;</div>","WriteAll<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.WriteAll.html\" title=\"struct futures::io::WriteAll\">WriteAll</a>&lt;'_, W&gt;</code></h3><pre><code><div class=\"where\">impl&lt;W&gt; <a class=\"trait\" href=\"../future/trait.Future.html\" title=\"trait futures::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.WriteAll.html\" title=\"struct futures::io::WriteAll\">WriteAll</a>&lt;'_, W&gt;<div class=\"where\">where\n W: <a class=\"trait\" href=\"trait.AsyncWrite.html\" title=\"trait futures::io::AsyncWrite\">AsyncWrite</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,</div></div><div class=\"where\"> type <a href=\"../future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.76.0/std/primitive.unit.html\">()</a>, <a class=\"struct\" href=\"struct.Error.html\" title=\"struct futures::io::Error\">Error</a>&gt;;</div>","WriteVectored<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.WriteVectored.html\" title=\"struct futures::io::WriteVectored\">WriteVectored</a>&lt;'_, W&gt;</code></h3><pre><code><div class=\"where\">impl&lt;W&gt; <a class=\"trait\" href=\"../future/trait.Future.html\" title=\"trait futures::future::Future\">Future</a> for <a class=\"struct\" href=\"struct.WriteVectored.html\" title=\"struct futures::io::WriteVectored\">WriteVectored</a>&lt;'_, W&gt;<div class=\"where\">where\n W: <a class=\"trait\" href=\"trait.AsyncWrite.html\" title=\"trait futures::io::AsyncWrite\">AsyncWrite</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Unpin.html\" title=\"trait core::marker::Unpin\">Unpin</a> + ?<a class=\"trait\" href=\"https://doc.rust-lang.org/1.76.0/core/marker/trait.Sized.html\" title=\"trait core::marker::Sized\">Sized</a>,</div></div><div class=\"where\"> type <a href=\"../future/trait.Future.html#associatedtype.Output\" class=\"associatedtype\">Output</a> = <a class=\"enum\" href=\"https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html\" title=\"enum core::result::Result\">Result</a>&lt;<a class=\"primitive\" href=\"https://doc.rust-lang.org/1.76.0/std/primitive.usize.html\">usize</a>, <a class=\"struct\" href=\"struct.Error.html\" title=\"struct futures::io::Error\">Error</a>&gt;;</div>"}</script></section></div></main></body></html>