<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `ProtoBufMessage` struct in crate `actix_protobuf`."><title>ProtoBufMessage in actix_protobuf - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><linkrel="stylesheet"href="../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../static.files/rustdoc-5bc39a1768837dd0.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="actix_protobuf"data-themes=""data-resource-suffix=""data-rustdoc-version="1.78.0-nightly (a84bb95a1 2024-02-13)"data-channel="nightly"data-search-js="search-dd67cee4cfa65049.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../static.files/storage-4c98445ec4002617.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../static.files/main-48f368f3872407c8.js"></script><noscript><linkrel="stylesheet"href="../static.files/noscript-04d5337699b92874.css"></noscript><linkrel="icon"href="https://actix.rs/favicon.ico"></head><bodyclass="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button><aclass="logo-container"href="../actix_protobuf/index.html"><imgsrc="https://actix.rs/img/logo.png"alt=""></a></nav><navclass="sidebar"><divclass="sidebar-crate"><aclass="logo-container"href="../actix_protobuf/index.html"><imgsrc="https://actix.rs/img/logo.png"alt="logo"></a><h2><ahref="../actix_protobuf/index.html">actix_protobuf</a><spanclass="version">0.10.0</span></h2></div><h2class="location"><ahref="#">ProtoBufMessage</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block method"><li><ahref="#method.limit">limit</a></li><li><ahref="#method.new">new</a></li></ul><h3><ahref="#trait-implementations">Trait Implementations</a></h3><ulclass="block trait-implementation"><li><ahref="#impl-Future-for-ProtoBufMessage%3CT%3E">Future</a></li></ul><h3><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ulclass="block synthetic-implementation"><li><ahref="#impl-RefUnwindSafe-for-ProtoBufMessage%3CT%3E">!RefUnwindSafe</a></li><li><ahref="#impl-Send-for-ProtoBufMessage%3CT%3E">!Send</a></li><li><ahref="#impl-Sync-for-ProtoBufMessage%3CT%3E">!Sync</a></li><li><ahref="#impl-UnwindSafe-for-ProtoBufMessage%3CT%3E">!UnwindSafe</a></li><li><ahref="#impl-Unpin-for-ProtoBufMessage%3CT%3E">Unpin</a></li></ul><h3><ahref="#blanket-implementations">Blanket Implementations</a></h3><ulclass="block blanket-implementation"><li><ahref="#impl-Any-for-T">Any</a></li><li><ahref="#impl-Borrow%3CT%3E-for-T">Borrow<T></a></li><li><ahref="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><ahref="#impl-From%3CT%3E-for-T">From<T></a></li><li><ahref="#impl-FutureExt-for-T">FutureExt</a></li><li><ahref="#impl-Instrument-for-T">Instrument</a></li><li><ahref="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><ahref="#impl-IntoFuture-for-F">IntoFuture</a></li><li><ahref="#impl-Same-for-T">Same</a></li><li><ahref="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><ahref="#impl-TryFuture-for-
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.limit"class="method"><aclass="src rightside"href="../src/actix_protobuf/lib.rs.html#209-212">source</a><h4class="code-header">pub fn <ahref="#method.limit"class="fn">limit</a>(self, limit: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</h4></section></summary><divclass="docblock"><p>Change max size of payload. By default max size is 256Kb</p>
</div></details></div></details></div><h2id="trait-implementations"class="section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Future-for-ProtoBufMessage%3CT%3E"class="impl"><aclass="src rightside"href="../src/actix_protobuf/lib.rs.html#215-258">source</a><ahref="#impl-Future-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">impl<T: <aclass="trait"href="https://docs.rs/prost/0.12.2/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="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Output"class="associatedtype trait-impl"><ahref="#associatedtype.Output"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"class="associatedtype">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="enum.ProtoBufPayloadError.html"title="enum actix_protobuf::ProtoBufPayloadError">ProtoBufPayloadError</a>></h4></section></summary><divclass='docblock'>The type of value produced on completion.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.poll"class="method trait-impl"><aclass="src rightside"href="../src/actix_protobuf/lib.rs.html#218-257">source</a><ahref="#method.poll"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#tymethod.poll"class="fn">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 Self</a>>, 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="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>></h4></section></summary><divclass='docblock'>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></div></details></div></details></div><h2id="synthetic-implementations"class="section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-RefUnwindSafe-for-ProtoBufMessage%3CT%3E"class="impl"><ahref="#impl-RefUnwindSafe-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section><sectionid="impl-Send-for-ProtoBufMessage%3CT%3E"class="impl"><ahref="#impl-Send-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">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="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section><sectionid="impl-Sync-for-ProtoBufMessage%3CT%3E"class="impl"><ahref="#impl-Sync-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">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="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section><sectionid="impl-Unpin-for-ProtoBufMessage%3CT%3E"class="impl"><ahref="#impl-Unpin-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">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="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section><sectionid="impl-UnwindSafe-for-ProtoBufMessage%3CT%3E"class="impl"><ahref="#impl-UnwindSafe-for-ProtoBufMessage%3CT%3E"class="anchor">§</a><h3class="code-header">impl<T> !<aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></section></div><h2id="blanket-implementations"class="section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#140">source</a><ahref="#impl-Any-for-T"class="anchor">§</a><h3class="code-header">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<divclass="where">where
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#141">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id"class="fn">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></h4></section></summary><divclass='docblock'>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></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208">source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">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<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210">source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216">source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">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<divclass="where">where
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-FutureExt-for-T"class="impl"><ahref="#impl-FutureExt-for-T"class="anchor">§</a><h3class="code-header">impl<T> FutureExt for T<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Map this future’s output to a different type, returning a new future of
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Map this future’s output to a different type, returning a new future of
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Chain on a computation for when a future finished, passing the result of
the future to the provided closure <code>f</code>. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.left_future"class="method trait-impl"><ahref="#method.left_future"class="anchor">§</a><h4class="code-header">fn <aclass="fn">left_future</a><B>(self) -> Either<Self, B><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Wrap this future in an <code>Either</code> future, making it the left-hand variant
of that <code>Either</code>. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.right_future"class="method trait-impl"><ahref="#method.right_future"class="anchor">§</a><h4class="code-header">fn <aclass="fn">right_future</a><A>(self) -> Either<A, Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Wrap this future in an <code>Either</code> future, making it the right-hand variant
of that <code>Either</code>. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.into_stream"class="method trait-impl"><ahref="#method.into_stream"class="anchor">§</a><h4class="code-header">fn <aclass="fn">into_stream</a>(self) -> IntoStream<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Convert this future into a single element stream. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.flatten"class="method trait-impl"><ahref="#method.flatten"class="anchor">§</a><h4class="code-header">fn <aclass="fn">flatten</a>(self) -> Flatten<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Flatten the execution of this future when the output of this
future is itself another future. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.flatten_stream"class="method trait-impl"><ahref="#method.flatten_stream"class="anchor">§</a><h4class="code-header">fn <aclass="fn">flatten_stream</a>(self) -> FlattenStream<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Flatten the execution of this future when the successful result of this
future is a stream. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.fuse"class="method trait-impl"><ahref="#method.fuse"class="anchor">§</a><h4class="code-header">fn <aclass="fn">fuse</a>(self) -> Fuse<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Fuse a future such that <code>poll</code> will never again be called once it has
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Do something with the output of a future before passing it on. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.catch_unwind"class="method trait-impl"><ahref="#method.catch_unwind"class="anchor">§</a><h4class="code-header">fn <aclass="fn">catch_unwind</a>(self) -> CatchUnwind<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h4></section></summary><divclass='docblock'>Catches unwinding panics while polling the future. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.shared"class="method trait-impl"><ahref="#method.shared"class="anchor">§</a><h4class="code-header">fn <aclass="fn">shared</a>(self) -> Shared<Self><divclass="where">where
Self::<aclass="associatedtype"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>,</div></h4></section></summary><divclass='docblock'>Create a cloneable handle to this future where all handles will resolve
to the same result. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.remote_handle"class="method trait-impl"><ahref="#method.remote_handle"class="anchor">§</a><h4class="code-header">fn <aclass="fn">remote_handle</a>(self) -> (Remote<Self>, RemoteHandle<Self::<aclass="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>>)<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Turn this future into a future that yields <code>()</code> on completion and sends
its output to another future on a separate task. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.boxed"class="method trait-impl"><ahref="#method.boxed"class="anchor">§</a><h4class="code-header">fn <aclass="fn">boxed</a><'a>(self) -><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="associatedtype"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/marker/trait.Send.html"title="trait core::marker::Send">Send</a> + 'a>><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> + 'a,</div></h4></section></summary><divclass='docblock'>Wrap the future in a Box, pinning it. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.boxed_local"class="method trait-impl"><ahref="#method.boxed_local"class="anchor">§</a><h4class="code-header">fn <aclass="fn">boxed_local</a><'a>(self) -><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="associatedtype"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>><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a> + 'a,</div></h4></section></summary><divclass='docblock'>Wrap the future in a Box, pinning it. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.unit_error"class="method trait-impl"><ahref="#method.unit_error"class="anchor">§</a><h4class="code-header">fn <aclass="fn">unit_error</a>(self) -> UnitError<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Turns a <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future"><code>Future<Output = T></code></a> into a
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Turns a <ahref="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future"><code>Future<Output = T></code></a> into a
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a>,</div></h4></section></summary><divclass='docblock'>A convenience for calling <code>Future::poll</code> on <code>Unpin</code> future types.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.now_or_never"class="method trait-impl"><ahref="#method.now_or_never"class="anchor">§</a><h4class="code-header">fn <aclass="fn">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Evaluates and consumes the future, returning the resulting output if
the future is ready after the first call to <code>Future::poll</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-T"class="impl"><ahref="#impl-Instrument-for-T"class="anchor">§</a><h3class="code-header">impl<T> Instrument for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl"><ahref="#method.instrument"class="anchor">§</a><h4class="code-header">fn <aclass="fn">instrument</a>(self, span: Span) -> Instrumented<Self></h4></section></summary><divclass='docblock'>Instruments this type with the provided [<code>Span</code>], returning an
<code>Instrumented</code> wrapper. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl"><ahref="#method.in_current_span"class="anchor">§</a><h4class="code-header">fn <aclass="fn">in_current_span</a>(self) -> Instrumented<Self></h4></section></summary><divclass='docblock'>Instruments this type with the <ahref="super::Span::current()">current</a><ahref="crate::Span"><code>Span</code></a>, returning an
<code><ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for U</code> chooses to do.</p>
F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html"title="trait core::future::future::Future">Future</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-1"class="associatedtype trait-impl"><ahref="#associatedtype.Output-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.Output"class="associatedtype">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a></h4></section></summary><divclass='docblock'>The output that the future will produce on completion.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.IntoFuture"class="associatedtype trait-impl"><ahref="#associatedtype.IntoFuture"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.IntoFuture"class="associatedtype">IntoFuture</a> = F</h4></section></summary><divclass='docblock'>Which kind of future are we turning this into?</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.into_future"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/future/into_future.rs.html#137">source</a><ahref="#method.into_future"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#tymethod.into_future"class="fn">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.IntoFuture"title="type core::future::into_future::IntoFuture::IntoFuture">IntoFuture</a></h4></section></summary><divclass='docblock'>Creates a future from a value. <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#tymethod.into_future">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Same-for-T"class="impl"><aclass="src rightside"href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#34">source</a><ahref="#impl-Same-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html"title="trait typenum::type_operators::Same">Same</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Output-2"class="associatedtype trait-impl"><ahref="#associatedtype.Output-2"class="anchor">§</a><h4class="code-header">type <ahref="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html#associatedtype.Output"class="associatedtype">Output</a> = T</h4></section></summary><divclass='docblock'>Should always be <code>Self</code></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#804-806">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">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<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#811">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFuture-for-F"class="impl"><ahref="#impl-TryFuture-for-F"class="anchor">§</a><h3class="code-header">impl<F, T, E> TryFuture for F<divclass="where">where
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>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Ok"class="associatedtype trait-impl"><ahref="#associatedtype.Ok"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Ok</a> = T</h4></section></summary><divclass='docblock'>The type of successful values yielded by this future</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-2"class="associatedtype trait-impl"><ahref="#associatedtype.Error-2"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Error</a> = E</h4></section></summary><divclass='docblock'>The type of failures yielded by this future</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_poll"class="method trait-impl"><ahref="#method.try_poll"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_poll</a>(
) -><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="associatedtype"href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html#associatedtype.Output"title="type core::future::future::Future::Output">Output</a>></h4></section></summary><divclass='docblock'>Poll this <code>TryFuture</code> as if it were a <code>Future</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFutureExt-for-Fut"class="impl"><ahref="#impl-TryFutureExt-for-Fut"class="anchor">§</a><h3class="code-header">impl<Fut> TryFutureExt for Fut<divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Flattens the execution of this future when the successful result of this
future is a [<code>Sink</code>]. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.map_ok"class="method trait-impl"><ahref="#method.map_ok"class="anchor">§</a><h4class="code-header">fn <aclass="fn">map_ok</a><T, F>(self, f: F) -> MapOk<Self, F><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Maps this future’s success value to a different value. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.map_ok_or_else"class="method trait-impl"><ahref="#method.map_ok_or_else"class="anchor">§</a><h4class="code-header">fn <aclass="fn">map_ok_or_else</a><T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Maps this future’s success value to a different value, and permits for error handling resulting in the same type. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.map_err"class="method trait-impl"><ahref="#method.map_err"class="anchor">§</a><h4class="code-header">fn <aclass="fn">map_err</a><E, F>(self, f: F) -> MapErr<Self, F><divclass="where">where
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,
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Maps this future’s error value to a different value. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.err_into"class="method trait-impl"><ahref="#method.err_into"class="anchor">§</a><h4class="code-header">fn <aclass="fn">err_into</a><E>(self) -> ErrInto<Self, E><divclass="where">where
Self::Error: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><E>,</div></h4></section></summary><divclass='docblock'>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"title="trait core::convert::Into"><code>Into</code></a> trait. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ok_into"class="method trait-impl"><ahref="#method.ok_into"class="anchor">§</a><h4class="code-header">fn <aclass="fn">ok_into</a><U>(self) -> OkInto<Self, U><divclass="where">where
Self::Ok: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U>,</div></h4></section></summary><divclass='docblock'>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"title="trait core::convert::Into"><code>Into</code></a> trait.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.and_then"class="method trait-impl"><ahref="#method.and_then"class="anchor">§</a><h4class="code-header">fn <aclass="fn">and_then</a><Fut, F>(self, f: F) -> AndThen<Self, Fut, F><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Executes another future after this one resolves successfully. The
success value is passed to a closure to create this subsequent future. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.or_else"class="method trait-impl"><ahref="#method.or_else"class="anchor">§</a><h4class="code-header">fn <aclass="fn">or_else</a><Fut, F>(self, f: F) -> OrElse<Self, Fut, F><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Executes another future if this one resolves to an error. The
error value is passed to a closure to create this subsequent future. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.inspect_ok"class="method trait-impl"><ahref="#method.inspect_ok"class="anchor">§</a><h4class="code-header">fn <aclass="fn">inspect_ok</a><F>(self, f: F) -> InspectOk<Self, F><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Do something with the success value of a future before passing it on. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.inspect_err"class="method trait-impl"><ahref="#method.inspect_err"class="anchor">§</a><h4class="code-header">fn <aclass="fn">inspect_err</a><F>(self, f: F) -> InspectErr<Self, F><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Do something with the error value of a future before passing it on. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_flatten"class="method trait-impl"><ahref="#method.try_flatten"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_flatten</a>(self) -> TryFlatten<Self, Self::Ok><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Flatten the execution of this future when the successful result of this
future is another future. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_flatten_stream"class="method trait-impl"><ahref="#method.try_flatten_stream"class="anchor">§</a><h4class="code-header">fn <aclass="fn">try_flatten_stream</a>(self) -> TryFlattenStream<Self><divclass="where">where
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Flatten the execution of this future when the successful result of this
future is a stream. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.unwrap_or_else"class="method trait-impl"><ahref="#method.unwrap_or_else"class="anchor">§</a><h4class="code-header">fn <aclass="fn">unwrap_or_else</a><F>(self, f: F) -> UnwrapOrElse<Self, F><divclass="where">where
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,</div></h4></section></summary><divclass='docblock'>Unwraps this future’s output, producing a future with this future’s
Self: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Wraps a [<code>TryFuture</code>] into a type that implements
future types.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#789-791">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">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<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#796">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">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="associatedtype"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-VZip%3CV%3E-for-T"class="impl"><ahref="#impl-VZip%3CV%3E-for-T"class="anchor">§</a><h3class="code-header">impl<V, T> VZip<V> for T<divclass="where">where
S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><Dispatch>,</div></h4></section></summary><divclass='docblock'>Attaches the provided <ahref="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
[<code>WithDispatch</code>] wrapper. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl"><ahref="#method.with_current_subscriber"class="anchor">§</a><h4class="code-header">fn <aclass="fn">with_current_subscriber</a>(self) -> WithDispatch<Self></h4></section></summary><divclass='docblock'>Attaches the current <ahref="crate::dispatcher#setting-the-default-subscriber">default</a><ahref="super::Subscriber"><code>Subscriber</code></a> to this type, returning a