mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
84 lines
25 KiB
HTML
84 lines
25 KiB
HTML
<!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">☰</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>−</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>(&mut self) -> <a class="struct" href="struct.Flush.html" title="struct futures::io::Flush">Flush</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Flush<'_, Self>">ⓘ</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>(&mut self) -> <a class="struct" href="struct.Close.html" title="struct futures::io::Close">Close</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Close<'_, Self>">ⓘ</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><'a>(&'a mut self, buf: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -> <a class="struct" href="struct.Write.html" title="struct futures::io::Write">Write</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="Write<'a, Self>">ⓘ</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><'a>(
|
||
&'a mut self,
|
||
bufs: &'a [<a class="struct" href="struct.IoSlice.html" title="struct futures::io::IoSlice">IoSlice</a><'a>]
|
||
) -> <a class="struct" href="struct.WriteVectored.html" title="struct futures::io::WriteVectored">WriteVectored</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="WriteVectored<'a, Self>">ⓘ</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><'a>(&'a mut self, buf: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -> <a class="struct" href="struct.WriteAll.html" title="struct futures::io::WriteAll">WriteAll</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="WriteAll<'a, Self>">ⓘ</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><Item>(self) -> <a class="struct" href="struct.IntoSink.html" title="struct futures::io::IntoSink">IntoSink</a><Self, Item>
|
||
<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><[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]>,
|
||
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>(&mut self) -> <a class="struct" href="struct.Flush.html" title="struct futures::io::Flush">Flush</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Flush<'_, Self>">ⓘ</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">&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">&</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">&</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>(&mut self) -> <a class="struct" href="struct.Close.html" title="struct futures::io::Close">Close</a><'_, Self> <a href="#" class="tooltip" data-notable-ty="Close<'_, Self>">ⓘ</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><'a>(&'a mut self, buf: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -> <a class="struct" href="struct.Write.html" title="struct futures::io::Write">Write</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="Write<'a, Self>">ⓘ</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><'a>(
|
||
&'a mut self,
|
||
bufs: &'a [<a class="struct" href="struct.IoSlice.html" title="struct futures::io::IoSlice">IoSlice</a><'a>]
|
||
) -> <a class="struct" href="struct.WriteVectored.html" title="struct futures::io::WriteVectored">WriteVectored</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="WriteVectored<'a, Self>">ⓘ</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><'a>(&'a mut self, buf: &'a [<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]) -> <a class="struct" href="struct.WriteAll.html" title="struct futures::io::WriteAll">WriteAll</a><'a, Self> <a href="#" class="tooltip" data-notable-ty="WriteAll<'a, Self>">ⓘ</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">&</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><Item>(self) -> <a class="struct" href="struct.IntoSink.html" title="struct futures::io::IntoSink">IntoSink</a><Self, Item><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><[<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u8.html">u8</a>]>,
|
||
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><Item: AsRef<[u8]>></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">&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<W> <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><'_, W></code></h3><pre><code><div class=\"where\">impl<W> <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><'_, W><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><<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>>;</div>","Flush<'_, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Flush.html\" title=\"struct futures::io::Flush\">Flush</a><'_, W></code></h3><pre><code><div class=\"where\">impl<W> <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><'_, W><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><<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>>;</div>","Write<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.Write.html\" title=\"struct futures::io::Write\">Write</a><'_, W></code></h3><pre><code><div class=\"where\">impl<W> <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><'_, W><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><<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>>;</div>","WriteAll<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.WriteAll.html\" title=\"struct futures::io::WriteAll\">WriteAll</a><'_, W></code></h3><pre><code><div class=\"where\">impl<W> <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><'_, W><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><<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>>;</div>","WriteVectored<'a, Self>":"<h3>Notable traits for <code><a class=\"struct\" href=\"struct.WriteVectored.html\" title=\"struct futures::io::WriteVectored\">WriteVectored</a><'_, W></code></h3><pre><code><div class=\"where\">impl<W> <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><'_, W><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><<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>>;</div>"}</script></section></div></main></body></html> |