<linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu"role="button">☰</div><ahref='../actix_protobuf/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass="location">Struct ProtoBufMessage</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#implementations">Methods</a><divclass="sidebar-links"><ahref="#method.limit">limit</a><ahref="#method.new">new</a></div><aclass="sidebar-title"href="#trait-implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Future">Future</a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-RefUnwindSafe">!RefUnwindSafe</a><ahref="#impl-Send">!Send</a><ahref="#impl-Sync">!Sync</a><ahref="#impl-Unpin">Unpin</a><ahref="#impl-UnwindSafe">!UnwindSafe</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><ahref="#impl-From%3CT%3E">From<T></a><ahref="#impl-FutureExt">FutureExt</a><ahref="#impl-Instrument">Instrument</a><ahref="#impl-Into%3CU%3E">Into<U></a><ahref="#impl-IntoFuture">IntoFuture</a><ahref="#impl-Same%3CT%3E">Same<T></a><ahref="#impl-TryFrom%3CU%3E">TryFrom<U></a><ahref="#impl-TryFuture">TryFuture</a><ahref="#impl-TryFutureExt">TryFutureExt</a><ahref="#impl-TryInto%3CU%3E">TryInto<U></a><ahref="#impl-VZip%3CV%3E">VZip<V></a></div></div><pclass="location"><ahref="index.html">actix_protobuf</a></p><divid="sidebar-vars"data-name="ProtoBufMessage"data-ty="struct"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"><imgsrc="../brush.svg"width="18"height="18"alt="Pick another theme!"></button><divid="theme-choices"role="menu"></div></div><navclass="sub"><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"disabledautocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"class="help-button">?</button>
</div><h4id="method.limit"class="method"><code>pub fn <ahref="#method.limit"class="fnname">limit</a>(self, limit: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#193-196"title="goto source code">[src]</a></h4><divclass="docblock"><p>Change max size of payload. By default max size is 256Kb</p>
</div></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><h3id="impl-Future"class="impl"><codeclass="in-band">impl<T: <aclass="trait"href="https://docs.rs/prost/0.7.0/prost/message/trait.Message.html"title="trait prost::message::Message">Message</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html"title="trait core::default::Default">Default</a> + 'static><aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-Future"class="anchor"></a><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#199-245"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Output"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"class="type">Output</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <aclass="enum"href="../actix_protobuf/enum.ProtoBufPayloadError.html"title="enum actix_protobuf::ProtoBufPayloadError">ProtoBufPayloadError</a>></code></h4><divclass='docblock'><p>The type of value produced on completion.</p>
</div><h4id="method.poll"class="method hidden"><code>fn <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#tymethod.poll"class="fnname">poll</a>(self: <aclass="struct"href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html"title="struct core::pin::Pin">Pin</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self>, task: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html"title="struct core::task::wake::Context">Context</a><'_>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html"title="enum core::task::poll::Poll">Poll</a><Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>></code><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#202-244"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Attempt to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available. <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#tymethod.poll">Read more</a></p>
</div></div></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor"></a></h2><divid="synthetic-implementations-list"><h3id="impl-RefUnwindSafe"class="impl"><codeclass="in-band">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.RefUnwindSafe.html"title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-RefUnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-Send"class="impl"><codeclass="in-band">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-Send"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-Sync"class="impl"><codeclass="in-band">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-Sync"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-Unpin"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-Unpin"class="anchor"></a></h3><divclass="impl-items"></div><h3id="impl-UnwindSafe"class="impl"><codeclass="in-band">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="../actix_protobuf/struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></code><ahref="#impl-UnwindSafe"class="anchor"></a></h3><divclass="impl-items"></div></div><h2id="blanket-implementations"class="small-section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor"></a></h2><divid="blanket-implementations-list"><h3id="impl-Any"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Any"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.type_id"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id"class="fnname">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3id="impl-Borrow%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-Borrow%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208-213"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fnname">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id="impl-BorrowMut%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-BorrowMut%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216-220"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.borrow_mut"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fnname">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id="impl-From%3CT%3E"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</code><ahref="#impl-From%3CT%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#544-548"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fnname">from</a>(t: T) -> T</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-FutureExt"class="impl"><codeclass="in-band">impl<T> FutureExt for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-FutureExt"class="anchor"></a></h3><divclass="impl-items"><h4id="method.map"class="method hidden"><code>pub fn <ahref="#method.map"class="fnname">map</a><U, F>(self, f: F) -> Map<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>) -> U, </span></code></h4><divclass='docblock hidden'><p>Map this future’s output to a different type, returning a new future of
the resulting type. <ahref="#method.map">Read more</a></p>
</div><h4id="method.map_into"class="method hidden"><code>pub fn <ahref="#method.map_into"class="fnname">map_into</a><U>(self) -> MapInto<Self, U><spanclass="where fmt-newline">where<br> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U>, </span></code></h4><divclass='docblock hidden'><p>Map this future’s output to a different type, returning a new future of
the resulting type. <ahref="#method.map_into">Read more</a></p>
</div><h4id="method.then"class="method hidden"><code>pub fn <ahref="#method.then"class="fnname">then</a><Fut, F>(self, f: F) -> Then<Self, Fut, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>) -> Fut,<br> Fut: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>, </span></code></h4><divclass='docblock hidden'><p>Chain on a computation for when a future finished, passing the result of
the future to the provided closure <code>f</code>. <ahref="#method.then">Read more</a></p>
</div><h4id="method.left_future"class="method hidden"><code>pub fn <ahref="#method.left_future"class="fnname">left_future</a><B>(self) -> Either<Self, B><spanclass="where fmt-newline">where<br> B: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a><Output = Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>>, </span></code></h4><divclass='docblock hidden'><p>Wrap this future in an <code>Either</code> future, making it the left-hand variant
of that <code>Either</code>. <ahref="#method.left_future">Read more</a></p>
</div><h4id="method.right_future"class="method hidden"><code>pub fn <ahref="#method.right_future"class="fnname">right_future</a><A>(self) -> Either<A, Self><spanclass="where fmt-newline">where<br> A: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a><Output = Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>>, </span></code></h4><divclass='docblock hidden'><p>Wrap this future in an <code>Either</code> future, making it the right-hand variant
of that <code>Either</code>. <ahref="#method.right_future">Read more</a></p>
</div><h4id="method.into_stream"class="method hidden"><code>pub fn <ahref="#method.into_stream"class="fnname">into_stream</a>(self) -> IntoStream<Self></code></h4><divclass='docblock hidden'><p>Convert this future into a single element stream. <ahref="#method.into_stream">Read more</a></p>
</div><h4id="method.flatten"class="method hidden"><code>pub fn <ahref="#method.flatten"class="fnname">flatten</a>(self) -> Flatten<Self><spanclass="where fmt-newline">where<br> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>, </span></code></h4><divclass='docblock hidden'><p>Flatten the execution of this future when the output of this
future is itself another future. <ahref="#method.flatten">Read more</a></p>
</div><h4id="method.flatten_stream"class="method hidden"><code>pub fn <ahref="#method.flatten_stream"class="fnname">flatten_stream</a>(self) -> FlattenStream<Self><spanclass="where fmt-newline">where<br> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>: Stream, </span></code></h4><divclass='docblock hidden'><p>Flatten the execution of this future when the successful result of this
future is a stream. <ahref="#method.flatten_stream">Read more</a></p>
</div><h4id="method.fuse"class="method hidden"><code>pub fn <ahref="#method.fuse"class="fnname">fuse</a>(self) -> Fuse<Self></code></h4><divclass='docblock hidden'><p>Fuse a future such that <code>poll</code> will never again be called once it has
completed. This method can be used to turn any <code>Future</code> into a
</div><h4id="method.inspect"class="method hidden"><code>pub fn <ahref="#method.inspect"class="fnname">inspect</a><F>(self, f: F) -> Inspect<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>), </span></code></h4><divclass='docblock hidden'><p>Do something with the output of a future before passing it on. <ahref="#method.inspect">Read more</a></p>
</div><h4id="method.catch_unwind"class="method hidden"><code>pub fn <ahref="#method.catch_unwind"class="fnname">catch_unwind</a>(self) -> CatchUnwind<Self><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html"title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code></h4><divclass='docblock hidden'><p>Catches unwinding panics while polling the future. <ahref="#method.catch_unwind">Read more</a></p>
</div><h4id="method.shared"class="method hidden"><code>pub fn <ahref="#method.shared"class="fnname">shared</a>(self) -> Shared<Self><spanclass="where fmt-newline">where<br> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code></h4><divclass='docblock hidden'><p>Create a cloneable handle to this future where all handles will resolve
to the same result. <ahref="#method.shared">Read more</a></p>
</div><h4id="method.boxed"class="method hidden"><code>pub fn <ahref="#method.boxed"class="fnname">boxed</a><'a>(<br> self<br>) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html"title="struct core::pin::Pin">Pin</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a><Output = Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>> + 'a + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>><spanclass="where fmt-newline">where<br> Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> + 'a, </span></code></h4><divclass='docblock hidden'><p>Wrap the future in a Box, pinning it. <ahref="#method.boxed">Read more</a></p>
</div><h4id="method.boxed_local"class="method hidden"><code>pub fn <ahref="#method.boxed_local"class="fnname">boxed_local</a><'a>(<br> self<br>) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html"title="struct core::pin::Pin">Pin</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html"title="struct alloc::boxed::Box">Box</a><dyn <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a><Output = Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>> + 'a, <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>><spanclass="where fmt-newline">where<br> Self: 'a, </span></code></h4><divclass='docblock hidden'><p>Wrap the future in a Box, pinning it. <ahref="#method.boxed_local">Read more</a></p>
</div><h4id="method.unit_error"class="method hidden"><code>pub fn <ahref="#method.unit_error"class="fnname">unit_error</a>(self) -> UnitError<Self></code></h4><divclass='docblock hidden'><p>Turns a <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"><code>Future<Output = T></code></a> into a
</div><h4id="method.never_error"class="method hidden"><code>pub fn <ahref="#method.never_error"class="fnname">never_error</a>(self) -> NeverError<Self></code></h4><divclass='docblock hidden'><p>Turns a <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"><code>Future<Output = T></code></a> into a
</div><h4id="method.now_or_never"class="method hidden"><code>pub fn <ahref="#method.now_or_never"class="fnname">now_or_never</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>></code></h4><divclass='docblock hidden'><p>Evaluates and consumes the future, returning the resulting output if
the future is ready after the first call to <code>Future::poll</code>. <ahref="#method.now_or_never">Read more</a></p>
</div></div><h3id="impl-Instrument"class="impl"><codeclass="in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</code><ahref="#impl-Instrument"class="anchor"></a><aclass="srclink"href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#155"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.instrument"class="method hidden"><code>pub fn <ahref="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.25/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><aclass="srclink"href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#38"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Instruments this type with the provided <code>Span</code>, returning an
</div><h4id="method.in_current_span"class="method hidden"><code>pub fn <ahref="https://docs.rs/tracing/0.1.25/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fnname">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.25/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></code><aclass="srclink"href="https://docs.rs/tracing/0.1.25/src/tracing/instrument.rs.html#74"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Instruments this type with the <ahref="../struct.Span.html#method.current">current</a><code>Span</code>, returning an
</div></div><h3id="impl-Into%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref="#impl-Into%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#533-540"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="method.into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into"class="fnname">into</a>(self) -> U</code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#537"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-IntoFuture"class="impl"><codeclass="in-band">impl<F><aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html"title="trait core::future::into_future::IntoFuture">IntoFuture</a> for F <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>, </span></code><ahref="#impl-IntoFuture"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/future/into_future.rs.html#20-27"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Output-1"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.Output"class="type">Output</a> = <F as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a></code></h4><divclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>into_future</code>)</div></div><divclass='docblock'><p>The output that the future will produce on completion.</p>
</div><h4id="associatedtype.Future"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.Future"class="type">Future</a> = F</code></h4><divclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>into_future</code>)</div></div><divclass='docblock'><p>Which kind of future are we turning this into?</p>
</div><h4id="method.into_future"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#tymethod.into_future"class="fnname">into_future</a>(self) -><F as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html"title="trait core::future::into_future::IntoFuture">IntoFuture</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.Future"title="type core::future::into_future::IntoFuture::Future">Future</a></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/future/into_future.rs.html#24"title="goto source code">[src]</a></h4><divclass="item-info hidden"><divclass="stab unstable"><spanclass="emoji">🔬</span> This is a nightly-only experimental API. (<code>into_future</code>)</div></div><divclass='docblock hidden'><p>Creates a future from a value.</p>
</div></div><h3id="impl-Same%3CT%3E"class="impl"><codeclass="in-band">impl<T> Same<T> for T</code><ahref="#impl-Same%3CT%3E"class="anchor"></a></h3><divclass="impl-items"><h4id="associatedtype.Output-2"class="type"><code>type <ahref="#associatedtype.Output"class="type">Output</a> = T</code></h4><divclass='docblock'><p>Should always be <code>Self</code></p>
</div></div><h3id="impl-TryFrom%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#581-590"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_from"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fnname">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-TryFuture"class="impl"><codeclass="in-band">impl<F, T, E> TryFuture for F <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a><Output = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, E>> + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-TryFuture"class="anchor"></a></h3><divclass="impl-items"><h4id="associatedtype.Ok"class="type"><code>type <ahref="#associatedtype.Ok"class="type">Ok</a> = T</code></h4><divclass='docblock'><p>The type of successful values yielded by this future</p>
</div><h4id="associatedtype.Error-2"class="type"><code>type <ahref="#associatedtype.Error"class="type">Error</a> = E</code></h4><divclass='docblock'><p>The type of failures yielded by this future</p>
</div><h4id="method.try_poll"class="method hidden"><code>pub fn <ahref="#method.try_poll"class="fnname">try_poll</a>(<br> self: <aclass="struct"href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html"title="struct core::pin::Pin">Pin</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>F>, <br> cx: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/task/wake/struct.Context.html"title="struct core::task::wake::Context">Context</a><'_><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/task/poll/enum.Poll.html"title="enum core::task::poll::Poll">Poll</a><<F as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>></code></h4><divclass='docblock hidden'><p>Poll this <code>TryFuture</code> as if it were a <code>Future</code>. <ahref="#tymethod.try_poll">Read more</a></p>
</div></div><h3id="impl-TryFutureExt"class="impl"><codeclass="in-band">impl<Fut> TryFutureExt for Fut <spanclass="where fmt-newline">where<br> Fut: TryFuture + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref="#impl-TryFutureExt"class="anchor"></a></h3><divclass="impl-items"><h4id="method.flatten_sink"class="method hidden"><code>pub fn <ahref="#method.flatten_sink"class="fnname">flatten_sink</a><Item>(self) -> FlattenSink<Self, Self::Ok><spanclass="where fmt-newline">where<br> Self::Ok: Sink<Item>,<br> <Self::Ok as Sink<Item>>::Error == Self::Error, </span></code></h4><divclass='docblock hidden'><p>Flattens the execution of this future when the successful result of this
future is a [<code>Sink</code>]. <ahref="#method.flatten_sink">Read more</a></p>
</div><h4id="method.map_ok"class="method hidden"><code>pub fn <ahref="#method.map_ok"class="fnname">map_ok</a><T, F>(self, f: F) -> MapOk<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Ok) -> T, </span></code></h4><divclass='docblock hidden'><p>Maps this future’s success value to a different value. <ahref="#method.map_ok">Read more</a></p>
</div><h4id="method.map_ok_or_else"class="method hidden"><code>pub fn <ahref="#method.map_ok_or_else"class="fnname">map_ok_or_else</a><T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E><spanclass="where fmt-newline">where<br> E: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Error) -> T,<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Ok) -> T, </span></code></h4><divclass='docblock hidden'><p>Maps this future’s success value to a different value, and permits for error handling resulting in the same type. <ahref="#method.map_ok_or_else">Read more</a></p>
</div><h4id="method.map_err"class="method hidden"><code>pub fn <ahref="#method.map_err"class="fnname">map_err</a><E, F>(self, f: F) -> MapErr<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Error) -> E, </span></code></h4><divclass='docblock hidden'><p>Maps this future’s error value to a different value. <ahref="#method.map_err">Read more</a></p>
</div><h4id="method.err_into"class="method hidden"><code>pub fn <ahref="#method.err_into"class="fnname">err_into</a><E>(self) -> ErrInto<Self, E><spanclass="where fmt-newline">where<br> Self::Error: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><E>, </span></code></h4><divclass='docblock hidden'><p>Maps this future’s <ahref="TryFuture::Error"><code>Error</code></a> to a new error type
using the <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"><code>Into</code></a> trait. <ahref="#method.err_into">Read more</a></p>
</div><h4id="method.ok_into"class="method hidden"><code>pub fn <ahref="#method.ok_into"class="fnname">ok_into</a><U>(self) -> OkInto<Self, U><spanclass="where fmt-newline">where<br> Self::Ok: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U>, </span></code></h4><divclass='docblock hidden'><p>Maps this future’s <ahref="TryFuture::Ok"><code>Ok</code></a> to a new type
using the <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"><code>Into</code></a> trait. <ahref="#method.ok_into">Read more</a></p>
</div><h4id="method.or_else"class="method hidden"><code>pub fn <ahref="#method.or_else"class="fnname">or_else</a><Fut, F>(self, f: F) -> OrElse<Self, Fut, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Error) -> Fut,<br> Fut: TryFuture<Ok = Self::Ok>, </span></code></h4><divclass='docblock hidden'><p>Executes another future if this one resolves to an error. The
error value is passed to a closure to create this subsequent future. <ahref="#method.or_else">Read more</a></p>
</div><h4id="method.inspect_ok"class="method hidden"><code>pub fn <ahref="#method.inspect_ok"class="fnname">inspect_ok</a><F>(self, f: F) -> InspectOk<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::Ok), </span></code></h4><divclass='docblock hidden'><p>Do something with the success value of a future before passing it on. <ahref="#method.inspect_ok">Read more</a></p>
</div><h4id="method.inspect_err"class="method hidden"><code>pub fn <ahref="#method.inspect_err"class="fnname">inspect_err</a><F>(self, f: F) -> InspectErr<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(&Self::Error), </span></code></h4><divclass='docblock hidden'><p>Do something with the error value of a future before passing it on. <ahref="#method.inspect_err">Read more</a></p>
</div><h4id="method.try_flatten"class="method hidden"><code>pub fn <ahref="#method.try_flatten"class="fnname">try_flatten</a>(self) -> TryFlatten<Self, Self::Ok><spanclass="where fmt-newline">where<br> Self::Ok: TryFuture,<br> <Self::Ok as TryFuture>::Error == Self::Error, </span></code></h4><divclass='docblock hidden'><p>Flatten the execution of this future when the successful result of this
future is another future. <ahref="#method.try_flatten">Read more</a></p>
</div><h4id="method.try_flatten_stream"class="method hidden"><code>pub fn <ahref="#method.try_flatten_stream"class="fnname">try_flatten_stream</a>(self) -> TryFlattenStream<Self><spanclass="where fmt-newline">where<br> Self::Ok: TryStream,<br> <Self::Ok as TryStream>::Error == Self::Error, </span></code></h4><divclass='docblock hidden'><p>Flatten the execution of this future when the successful result of this
future is a stream. <ahref="#method.try_flatten_stream">Read more</a></p>
</div><h4id="method.unwrap_or_else"class="method hidden"><code>pub fn <ahref="#method.unwrap_or_else"class="fnname">unwrap_or_else</a><F>(self, f: F) -> UnwrapOrElse<Self, F><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html"title="trait core::ops::function::FnOnce">FnOnce</a>(Self::Error) -> Self::Ok, </span></code></h4><divclass='docblock hidden'><p>Unwraps this future’s output, producing a future with this future’s
<ahref="TryFuture::Ok"><code>Ok</code></a> type as its
</div><h4id="method.into_future-1"class="method hidden"><code>pub fn <ahref="#method.into_future"class="fnname">into_future</a>(self) -> IntoFuture<Self></code></h4><divclass='docblock hidden'><p>Wraps a [<code>TryFuture</code>] into a type that implements
</div></div><h3id="impl-TryInto%3CU%3E"class="impl"><codeclass="in-band">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#567-576"title="goto source code">[src]</a></h3><divclass="impl-items"><h4id="associatedtype.Error-1"class="type"><code>type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id="method.try_into"class="method hidden"><code>pub fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fnname">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#573"title="goto source code">[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id="impl-VZip%3CV%3E"class="impl"><codeclass="in-band">impl<V, T> VZip<V> for T <spanclass="where fmt-newline">where<br> V: MultiLane<T>, </span></code><ahref="#impl-VZip%3CV%3E"class="anchor"></a></h3><divclass="impl-items"><h4id="method.vzip"class="method hidden"><code>pub fn <ahref="#method.vzip"class="fnname">vzip</a>(self) -> V</code></h4></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><divid="rustdoc-vars"data-root-path="../"data-current-crate="actix_protobuf"data-search-js="../search-index.js"></div>