Files
mercator_service/actix_web/dev/trait.MessageBody.html

8 lines
30 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `MessageBody` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, MessageBody"><title>actix_web::dev::MessageBody - 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><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></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><a href='../../actix_web/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Trait MessageBody</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.poll_next">poll_next</a><a href="#tymethod.size">size</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-MessageBody-for-%26%27static%20%5Bu8%5D">&amp;&#39;static [u8]</a><a href="#impl-MessageBody-for-%26%27static%20str">&amp;&#39;static str</a><a href="#impl-MessageBody-for-()">()</a><a href="#impl-MessageBody-for-Box%3CT%3E">Box&lt;T&gt;</a><a href="#impl-MessageBody-for-Encoder%3CB%3E">Encoder&lt;B&gt;</a><a href="#impl-MessageBody-for-String">String</a><a href="#impl-MessageBody-for-Vec%3Cu8%3E">Vec&lt;u8&gt;</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'MessageBody', 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"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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='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/actix_http/body.rs.html#32-36' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>actix_web</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>MessageBody</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait MessageBody {
fn <a href='#tymethod.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;;
}</pre></div><div class='docblock'><p>Type that provides this trait can be streamed to a peer.</p>
</div>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.size' class='method'><code id='size.v'>fn <a href='#tymethod.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code></h3><h3 id='tymethod.poll_next' class='method'><code id='poll_next.v'>fn <a href='#tymethod.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code></h3></div><span class='loading-content'>Loading content...</span>
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-MessageBody-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-MessageBody-for-String' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#341-355' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size' class="method hidden"><code id='size.v-1'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#342-344' title='goto source code'>[src]</a></h4><h4 id='method.poll_next' class="method hidden"><code id='poll_next.v-1'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#346-354' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-%26%27static%20%5Bu8%5D' class='impl'><code class='in-band'>impl <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'static [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><a href='#impl-MessageBody-for-%26%27static%20%5Bu8%5D' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#308-322' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-1' class="method hidden"><code id='size.v-2'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#309-311' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-1' class="method hidden"><code id='poll_next.v-2'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#313-321' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-Encoder%3CB%3E' class='impl'><code class='in-band'>impl&lt;B&gt; <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a> for <a class="struct" href="../../actix_http/encoding/encoder/struct.Encoder.html" title="struct actix_http::encoding::encoder::Encoder">Encoder</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a>,&nbsp;</span></code><a href='#impl-MessageBody-for-Encoder%3CB%3E' class='anchor'></a><a class='srclink' href='../../src/actix_http/encoding/encoder.rs.html#84-161' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-2' class="method hidden"><code id='size.v-3'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/encoding/encoder.rs.html#85-95' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-2' class="method hidden"><code id='poll_next.v-3'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/encoding/encoder.rs.html#97-160' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-Vec%3Cu8%3E' class='impl'><code class='in-band'>impl <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</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;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>&gt;</code><a href='#impl-MessageBody-for-Vec%3Cu8%3E' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#324-339' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-3' class="method hidden"><code id='size.v-4'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#325-327' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-3' class="method hidden"><code id='poll_next.v-4'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#329-338' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-Box%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</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;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a>,&nbsp;</span></code><a href='#impl-MessageBody-for-Box%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#48-56' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-4' class="method hidden"><code id='size.v-5'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#49-51' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-4' class="method hidden"><code id='poll_next.v-5'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#53-55' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-()' class='impl'><code class='in-band'>impl <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code><a href='#impl-MessageBody-for-()' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#38-46' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-5' class="method hidden"><code id='size.v-6'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#39-41' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-5' class="method hidden"><code id='poll_next.v-6'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#43-45' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-for-%26%27static%20str' class='impl'><code class='in-band'>impl <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a> for &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-MessageBody-for-%26%27static%20str' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#292-306' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-6' class="method hidden"><code id='size.v-7'>fn <a href='#method.size' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#293-295' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-6' class="method hidden"><code id='poll_next.v-7'>fn <a href='#method.poll_next' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#297-305' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-MessageBody' class='impl'><code class='in-band'>impl MessageBody for <a class="enum" href="../../actix_web/dev/enum.Body.html" title="enum actix_web::dev::Body">Body</a></code><a href='#impl-MessageBody' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#137-162' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-7' class="method hidden"><code id='size.v-8'>fn <a href='#method.size-7' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#138-145' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-7' class="method hidden"><code id='poll_next.v-8'>fn <a href='#method.poll_next-7' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#147-161' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-1' class='impl'><code class='in-band'>impl MessageBody for <a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a></code><a href='#impl-MessageBody-1' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#262-274' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-8' class="method hidden"><code id='size.v-9'>fn <a href='#method.size-8' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#263-265' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-8' class="method hidden"><code id='poll_next.v-9'>fn <a href='#method.poll_next-8' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#267-273' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-2' class='impl'><code class='in-band'>impl MessageBody for <a class="struct" href="../../actix_web/web/struct.BytesMut.html" title="struct actix_web::web::BytesMut">BytesMut</a></code><a href='#impl-MessageBody-2' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#276-290' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-9' class="method hidden"><code id='size.v-10'>fn <a href='#method.size-9' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#277-279' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-9' class="method hidden"><code id='poll_next.v-10'>fn <a href='#method.poll_next-9' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#281-289' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-3' class='impl'><code class='in-band'>impl&lt;B&gt; MessageBody for <a class="enum" href="../../actix_web/dev/enum.ResponseBody.html" title="enum actix_web::dev::ResponseBody">ResponseBody</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="../../actix_web/dev/trait.MessageBody.html" title="trait actix_web::dev::MessageBody">MessageBody</a>,&nbsp;</span></code><a href='#impl-MessageBody-3' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#88-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-10' class="method hidden"><code id='size.v-11'>fn <a href='#method.size-10' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#89-94' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-10' class="method hidden"><code id='poll_next.v-11'>fn <a href='#method.poll_next-10' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#96-101' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-4' class='impl'><code class='in-band'>impl&lt;S&gt; MessageBody for <a class="struct" href="../../actix_web/dev/struct.SizedStream.html" title="struct actix_web::dev::SizedStream">SizedStream</a>&lt;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 = <a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>, Error = <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,&nbsp;</span></code><a href='#impl-MessageBody-4' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#407-418' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-11' class="method hidden"><code id='size.v-12'>fn <a href='#method.size-11' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#411-413' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-11' class="method hidden"><code id='poll_next.v-12'>fn <a href='#method.poll_next-11' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#415-417' title='goto source code'>[src]</a></h4></div><h3 id='impl-MessageBody-5' class='impl'><code class='in-band'>impl&lt;S, E&gt; MessageBody for <a class="struct" href="../../actix_web/body/struct.BodyStream.html" title="struct actix_web::body::BodyStream">BodyStream</a>&lt;S, E&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="../../futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>&lt;Item = <a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>, Error = E&gt;,&nbsp;</span></code><a href='#impl-MessageBody-5' class='anchor'></a><a class='srclink' href='../../src/actix_http/body.rs.html#377-389' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.size-12' class="method hidden"><code id='size.v-13'>fn <a href='#method.size-12' class='fnname'>size</a>(&amp;self) -&gt; <a class="enum" href="../../actix_web/dev/enum.BodySize.html" title="enum actix_web::dev::BodySize">BodySize</a></code><a class='srclink' href='../../src/actix_http/body.rs.html#382-384' title='goto source code'>[src]</a></h4><h4 id='method.poll_next-12' class="method hidden"><code id='poll_next.v-13'>fn <a href='#method.poll_next-12' class='fnname'>poll_next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="../../futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../actix_web/web/struct.Bytes.html" title="struct actix_web::web::Bytes">Bytes</a>&gt;&gt;, <a class="struct" href="../../actix_web/error/struct.Error.html" title="struct actix_web::error::Error">Error</a>&gt;</code><a class='srclink' href='../../src/actix_http/body.rs.html#386-388' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript" src="../../implementors/actix_http/body/trait.MessageBody.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><script>window.rootPath = "../../";window.currentCrate = "actix_web";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>