<!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`."><metaname="keywords"content="rust, rustlang, rust-lang, ProtoBufMessage"><title>ProtoBufMessage in actix_protobuf - Rust</title><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceSerif4-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../FiraSans-Regular.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../FiraSans-Medium.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceCodePro-Regular.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceSerif4-Bold.ttf.woff2"><linkrel="preload"as="font"type="font/woff2"crossoriginhref="../SourceCodePro-Semibold.ttf.woff2"><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../ayu.css"disabled><linkrel="stylesheet"type="text/css"href="../dark.css"disabled><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptid="default-settings"></script><scriptsrc="../storage.js"></script><scriptsrc="../crates.js"></script><scriptdefersrc="../main.js"></script>
<noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="alternate icon"type="image/png"href="../favicon-16x16.png"><linkrel="alternate icon"type="image/png"href="../favicon-32x32.png"><linkrel="icon"type="image/svg+xml"href="../favicon.svg"></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="sidebar"><divclass="sidebar-menu"role="button">☰</div><aclass="sidebar-logo"href='../actix_protobuf/index.html'><divclass='logo-container rust-logo'><imgsrc='../rust-logo.png'alt='logo'></div></a><h2class="location">Struct ProtoBufMessage</h2><divclass="sidebar-elems"><divclass="block items"><h3class="sidebar-title"><ahref="#implementations">Methods</a></h3><divclass="sidebar-links"><ahref="#method.limit">limit</a><ahref="#method.new">new</a></div><h3class="sidebar-title"><ahref="#trait-implementations">Trait Implementations</a></h3><divclass="sidebar-links"><ahref="#impl-Future">Future</a></div><h3class="sidebar-title"><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><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><h3class="sidebar-title"><ahref="#blanket-implementations">Blanket Implementations</a></h3><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><ahref="#impl-WithSubscriber">WithSubscriber</a></div></div><h2class="location">Other items in<br><ahref="index.html">actix_protobuf</a></h2><divid="sidebar-vars"data-name="ProtoBufMessage"data-ty="struct"data-relpath=""></div><scriptdefersrc="sidebar-items.js"></script></div></nav><main><divclass="width-limiter"><divclass="sub-container"><aclass="sub-logo-container rust-logo"href='../actix_protobuf/index.html'><imgsrc='../rust-logo.png'alt='logo'></a><navclass="sub"><divclass="theme-picker"><buttonid="theme-picker"aria-label="Pick another theme!"aria-haspopup="menu"title="themes"><imgwidth="18"height="18"alt="Pick another theme!"src="../brush.svg"></button><divid="theme-choices"role="menu"></div></div><formclass="search-form"><divclass="search-container"><div><selectid="crate-search"><optionvalue="All crates">All crates</option></select><inputclass="search-input"name="search"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"></div><buttontype="button"id="help-button"title="help">?</button><aid="settings-menu"href="../settings.html"title="settings"><imgwidth="18"height="18"alt="Change settings"src="../wheel.svg"></a></div></form></nav></div><sectionid="main-content"class="content"><h1class="fqn"><spanclass="in-band">Struct <ahref="index.html">actix_protobuf</a>::<wbr><aclass="struct"href="#">ProtoBufMessage</a><buttonid="copy-path"onclick="copy_path(this)"title="Copy item path to clipboard"><imgsrc="../clipboard.svg"width="19"height="18"alt="Copy item path"></button></span><spanclass="out-of-band"><spanid="render-detail"><aid="toggle-all-docs"href="javascript:void(0)"title="collapse all docs">[<spanclass="inner">−</span>]</a></span><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#162-168"title="goto source code">[src]</a></span></h1><divclass="docblock item-decl"><precla
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.limit"class="method has-srclink"><divclass="rightside"><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#202-205"title="goto source code">[src]</a></div><ahref="#method.limit"class="anchor"></a><h4class="code-header">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</h4></div></summary><divclass="docblock"><p>Change max size of payload. By default max size is 256Kb</p>
</div></details></div></details><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor"></a></h2><divid="trait-implementations-list"><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-Future"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#208-251"title="goto source code">[src]</a></div><ahref="#impl-Future"class="anchor"></a><h3class="code-header in-band">impl<T: <aclass="trait"href="https://docs.rs/prost/0.8.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="struct.ProtoBufMessage.html"title="struct actix_protobuf::ProtoBufMessage">ProtoBufMessage</a><T></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Output"class="type trait-impl has-srclink"><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="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="enum.ProtoBufPayloadError.html"title="enum actix_protobuf::ProtoBufPayloadError">ProtoBufPayloadError</a>></h4></div></summary><divclass='docblock'><p>The type of value produced on completion.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.poll"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="../src/actix_protobuf/lib.rs.html#211-250"title="goto source code">[src]</a></div><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="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>></h4></div></summary><divclass='docblock'><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></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-FutureExt"class="impl has-srclink"><divclass="rightside"></div><ahref="#impl-FutureExt"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.map"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.map"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Map this future’s output to a different type, returning a new future of
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.map_into"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.map_into"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Map this future’s output to a different type, returning a new future of
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.then"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.then"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Chain on a computation for when a future finished, passing the result of
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.left_future"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.left_future"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Wrap this future in an <code>Either</code> future, making it the left-hand variant
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.right_future"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.right_future"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Wrap this future in an <code>Either</code> future, making it the right-hand variant
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.into_stream"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.into_stream"class="anchor"></a><h4class="code-header">fn <ahref="#method.into_stream"class="fnname">into_stream</a>(self) -> IntoStream<Self></h4></div></summary><divclass='docblock'><p>Convert this future into a single element stream. <ahref="#method.into_stream">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.flatten"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.flatten"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Flatten the execution of this future when the output of this
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.flatten_stream"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.flatten_stream"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Flatten the execution of this future when the successful result of this
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.fuse"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.fuse"class="anchor"></a><h4class="code-header">fn <ahref="#method.fuse"class="fnname">fuse</a>(self) -> Fuse<Self></h4></div></summary><divclass='docblock'><p>Fuse a future such that <code>poll</code> will never again be called once it has
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.inspect"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.inspect"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Do something with the output of a future before passing it on. <ahref="#method.inspect">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.catch_unwind"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.catch_unwind"class="anchor"></a><h4class="code-header">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/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>, </span></h4></div></summary><divclass='docblock'><p>Catches unwinding panics while polling the future. <ahref="#method.catch_unwind">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.shared"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.shared"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Create a cloneable handle to this future where all handles will resolve
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.boxed_local"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.boxed_local"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Wrap the future in a Box, pinning it. <ahref="#method.boxed_local">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.unit_error"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.unit_error"class="anchor"></a><h4class="code-header">fn <ahref="#method.unit_error"class="fnname">unit_error</a>(self) -> UnitError<Self></h4></div></summary><divclass='docblock'><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.never_error"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.never_error"class="anchor"></a><h4class="code-header">fn <ahref="#method.never_error"class="fnname">never_error</a>(self) -> NeverError<Self></h4></div></summary><divclass='docblock'><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.now_or_never"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.now_or_never"class="anchor"></a><h4class="code-header">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>></h4></div></summary><divclass='docblock'><p>Evaluates and consumes the future, returning the resulting output if
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-Instrument"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.29/src/tracing/instrument.rs.html#276"title="goto source code">[src]</a></div><ahref="#impl-Instrument"class="anchor"></a><h3class="code-header in-band">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.29/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.instrument"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.29/src/tracing/instrument.rs.html#82"title="goto source code">[src]</a></div><ahref="#method.instrument"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.29/tracing/instrument/trait.Instrument.html#method.instrument"class="fnname">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.29/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.29/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></div></summary><divclass='docblock'><p>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.29/tracing/span/struct.Span.html"title="Span"><code>Span</code></a>, returning an
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.in_current_span"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.29/src/tracing/instrument.rs.html#121"title="goto source code">[src]</a></div><ahref="#method.in_current_span"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.29/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.29/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></div></summary><divclass='docblock'><p>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.29/tracing/span/struct.Span.html#method.current">current</a><ahref="https://docs.rs/tracing/0.1.29/tracing/span/struct.Span.html"><code>Span</code></a>, returning an
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-IntoFuture"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/future/into_future.rs.html#21-28"title="goto source code">[src]</a></div><ahref="#impl-IntoFuture"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Output-1"class="type trait-impl has-srclink"><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="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></h4></div></summary><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></details><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Future"class="type trait-impl has-srclink"><ahref="#associatedtype.Future"class="anchor"></a><h4class="code-header">type <ahref="https://doc.rust-lang.org/nightly/core/future/into_future/trait.IntoFuture.html#associatedtype.Future"class="type">Future</a> = F</h4></div></summary><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.into_future"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/future/into_future.rs.html#25"title="goto source code">[src]</a></div><ahref="#method.into_future"class="anchor"></a><h4class="code-header">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></h4></div></summary><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>Creates a future from a value.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryFrom%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#587-596"title="goto source code">[src]</a></div><ahref="#impl-TryFrom%3CU%3E"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error"class="type trait-impl has-srclink"><ahref="#associatedtype.Error"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_from"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#593"title="goto source code">[src]</a></div><ahref="#method.try_from"class="anchor"></a><h4class="code-header">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>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryFuture"class="impl has-srclink"><divclass="rightside"></div><ahref="#impl-TryFuture"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Ok"class="type trait-impl has-srclink"><ahref="#associatedtype.Ok"class="anchor"></a><h4class="code-header">type <ahref="#associatedtype.Ok"class="type">Ok</a> = T</h4></div></summary><divclass='docblock'><p>The type of successful values yielded by this future</p>
</div></details><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error-2"class="type trait-impl has-srclink"><ahref="#associatedtype.Error-2"class="anchor"></a><h4class="code-header">type <ahref="#associatedtype.Error"class="type">Error</a> = E</h4></div></summary><divclass='docblock'><p>The type of failures yielded by this future</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_poll"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.try_poll"class="anchor"></a><h4class="code-header">pub fn <aclass="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>></h4></div></summary><divclass='docblock'><p>Poll this <code>TryFuture</code> as if it were a <code>Future</code>. <ahref="#tymethod.try_poll">Read more</a></p>
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryFutureExt"class="impl has-srclink"><divclass="rightside"></div><ahref="#impl-TryFutureExt"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.flatten_sink"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.flatten_sink"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Flattens the execution of this future when the successful result of this
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.map_ok_or_else"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.map_ok_or_else"class="anchor"></a><h4class="code-header">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> 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,<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, </span></h4></div></summary><divclass='docblock'><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.map_err"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.map_err"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Maps this future’s error value to a different value. <ahref="#method.map_err">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.err_into"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.err_into"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.ok_into"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.ok_into"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><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></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.or_else"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.or_else"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Executes another future if this one resolves to an error. The
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.inspect_ok"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.inspect_ok"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Do something with the success value of a future before passing it on. <ahref="#method.inspect_ok">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.inspect_err"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.inspect_err"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Do something with the error value of a future before passing it on. <ahref="#method.inspect_err">Read more</a></p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_flatten"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.try_flatten"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Flatten the execution of this future when the successful result of this
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_flatten_stream"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.try_flatten_stream"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>Flatten the execution of this future when the successful result of this
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.into_future-1"class="method trait-impl has-srclink"><divclass="rightside"></div><ahref="#method.into_future-1"class="anchor"></a><h4class="code-header">fn <ahref="#method.into_future"class="fnname">into_future</a>(self) -> IntoFuture<Self></h4></div></summary><divclass='docblock'><p>Wraps a [<code>TryFuture</code>] into a type that implements
</div></details></div></details><detailsclass="rustdoc-toggle implementors-toggle"open><summary><divid="impl-TryInto%3CU%3E"class="impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#573-582"title="goto source code">[src]</a></div><ahref="#impl-TryInto%3CU%3E"class="anchor"></a><h3class="code-header 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></h3></div></summary><divclass="impl-items"><detailsclass="rustdoc-toggle"open><summary><divid="associatedtype.Error-1"class="type trait-impl has-srclink"><ahref="#associatedtype.Error-1"class="anchor"></a><h4class="code-header">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></h4></div></summary><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.try_into"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#579"title="goto source code">[src]</a></div><ahref="#method.try_into"class="anchor"></a><h4class="code-header">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>></h4></div></summary><divclass='docblock'><p>Performs the conversion.</p>
</div></details><detailsclass="rustdoc-toggle method-toggle"open><summary><divid="method.with_current_subscriber"class="method trait-impl has-srclink"><divclass="rightside"><aclass="srclink"href="https://docs.rs/tracing/0.1.29/src/tracing/instrument.rs.html#221"title="goto source code">[src]</a></div><ahref="#method.with_current_subscriber"class="anchor"></a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.29/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fnname">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.29/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></div></summary><divclass='docblock'><p>Attaches the current <ahref="https://docs.rs/tracing/0.1.29/tracing/dispatcher/index.html#setting-the-default-subscriber">default</a><ahref="https://docs.rs/tracing-core/0.1.21/tracing_core/subscriber/trait.Subscriber.html"><code>Subscriber</code></a> to this type, returning a