<!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="Redis communication actor."><title>RedisActor in actix_redis - 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/SourceSerif4-Bold-a2c9cd1067f8b328.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-ae1b282cda4c21ec.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="actix_redis"data-themes=""data-resource-suffix=""data-rustdoc-version="1.74.0-nightly (ca2b74f1a 2023-09-14)"data-channel="nightly"data-search-js="search-5d3eaacf19ebf04f.js"data-settings-js="settings-74424d7eec62a23e.js"data-theme-light-css="light-f194925aa375ae96.css"data-theme-dark-css="dark-1dd4d1ce031e15de.css"data-theme-ayu-css="ayu-49e58d069f567085.css"><scriptsrc="../static.files/storage-db41da1a38ea3cb8.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../static.files/main-cabe4b1bd7b9da95.js"></script><noscript><linkrel="stylesheet"media="(prefers-color-scheme:light)"href="../static.files/light-f194925aa375ae96.css"><linkrel="stylesheet"media="(prefers-color-scheme:dark)"href="../static.files/dark-1dd4d1ce031e15de.css"><linkrel="stylesheet"href="../static.files/noscript-cffde32267a19fd6.css"></noscript><linkrel="alternate icon"type="image/png"href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><linkrel="alternate icon"type="image/png"href="../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../static.files/favicon-2c020d218678b618.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="mobile-topbar"><buttonclass="sidebar-menu-toggle">☰</button><aclass="logo-container"href="../actix_redis/index.html"><imgclass="rust-logo"src="../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2></h2></nav><navclass="sidebar"><aclass="logo-container"href="../actix_redis/index.html"><imgclass="rust-logo"src="../static.files/rust-logo-151179464ae7ed46.svg"alt="logo"></a><h2class="location"><ahref="#">RedisActor</a></h2><divclass="sidebar-elems"><section><h3><ahref="#implementations">Methods</a></h3><ulclass="block"><li><ahref="#method.start">start</a></li></ul><h3><ahref="#trait-implementations">Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-Actor-for-RedisActor">Actor</a></li><li><ahref="#impl-Handler%3CCommand%3E-for-RedisActor">Handler<Command></a></li><li><ahref="#impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor">StreamHandler<Result<RespValue, Error>></a></li><li><ahref="#impl-Supervised-for-RedisActor">Supervised</a></li><li><ahref="#impl-WriteHandler%3CError%3E-for-RedisActor">WriteHandler<Error></a></li></ul><h3><ahref="#synthetic-implementations">Auto Trait Implementations</a></h3><ulclass="block"><li><ahref="#impl-RefUnwindSafe-for-RedisActor">!RefUnwindSafe</a></li><li><ahref="#impl-Send-for-RedisActor">!Send</a></li><li><ahref="#impl-Sync-for-RedisActor">!Sync</a></li><li><ahref="#impl-UnwindSafe-fo
</div></details><h2id="implementations"class="small-section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#38-56">source</a><ahref="#impl-RedisActor"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.start"class="method"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#40-55">source</a><h4class="code-header">pub fn <ahref="#method.start"class="fn">start</a><S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>>>(addr: S) -> Addr<<aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a>></h4></section></summary><divclass="docblock"><p>Start new <code>Supervisor</code> with <code>RedisActor</code>.</p>
</div></details></div></details></div><h2id="trait-implementations"class="small-section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Actor-for-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#58-93">source</a><ahref="#impl-Actor-for-RedisActor"class="anchor">§</a><h3class="code-header">impl Actor for <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Context"class="associatedtype trait-impl"><ahref="#associatedtype.Context"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Context</a> = Context<<aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a>></h4></section></summary><divclass='docblock'>Actor execution context type</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.started-1"class="method trait-impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#61-92">source</a><ahref="#method.started-1"class="anchor">§</a><h4class="code-header">fn <aclass="fn">started</a>(&mut self, ctx: &mut Context<Self>)</h4></section></summary><divclass='docblock'>Called when an actor gets polled the first time.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.stopping"class="method trait-impl"><ahref="#method.stopping"class="anchor">§</a><h4class="code-header">fn <aclass="fn">stopping</a>(&mut self, ctx: &mut Self::Context) -> Running</h4></section></summary><divclass='docblock'>Called after an actor is in <code>Actor::Stopping</code> state. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.stopped"class="method trait-impl"><ahref="#method.stopped"class="anchor">§</a><h4class="code-header">fn <aclass="fn">stopped</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><divclass='docblock'>Called after an actor is stopped. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.start-1"class="method trait-impl"><ahref="#method.start-1"class="anchor">§</a><h4class="code-header">fn <aclass="fn">start</a>(self) -> Addr<Self><spanclass="where fmt-newline">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>(&mut Context<Self>) -> Self,</span></h4></section></summary><divclass='docblock'>Start a new asynchronous actor given a <code>Context</code>. <a>Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Handler%3CCommand%3E-for-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#129-143">source</a><ahref="#impl-Handler%3CCommand%3E-for-RedisActor"class="anchor">§</a><h3class="code-header">impl Handler<<aclass="struct"href="struct.Command.html"title="struct actix_redis::Command">Command</a>> for <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Result"class="associatedtype trait-impl"><ahref="#associatedtype.Result"class="anchor">§</a><h4class="code-header">type <aclass="associatedtype">Result</a> = <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 = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="enum.RespValue.html"title="enum actix_redis::RespValue">RespValue</a>, <aclass="enum"href="enum.Error.html"title="enum actix_redis::Error">Error</a>>>, <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html"title="struct alloc::alloc::Global">Global</a>>></h4></section></summary><divclass='docblock'>The type of value that this handler will return. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.handle"class="method trait-impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#132-142">source</a><ahref="#method.handle"class="anchor">§</a><h4class="code-header">fn <aclass="fn">handle</a>(&mut self, msg: <aclass="struct"href="struct.Command.html"title="struct actix_redis::Command">Command</a>, _: &mut Self::Context) -> Self::Result</h4></section></summary><divclass='docblock'>This method is called for every message received by this actor.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#111-127">source</a><ahref="#impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor"class="anchor">§</a><h3class="code-header">impl StreamHandler<<aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="enum.RespValue.html"title="enum actix_redis::RespValue">RespValue</a>, <aclass="enum"href="enum.RespError.html"title="enum actix_redis::RespError">Error</a>>> for <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.handle-1"class="method trait-impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#112-126">source</a><ahref="#method.handle-1"class="anchor">§</a><h4class="code-header">fn <aclass="fn">handle</a>(&mut self, msg: <aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="enum"href="enum.Re
Self::Context: AsyncContext<Self>,</span></h4></section></summary><divclass='docblock'>Register a Stream to the actor context.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Supervised-for-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#95-102">source</a><ahref="#impl-Supervised-for-RedisActor"class="anchor">§</a><h3class="code-header">impl Supervised for <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.restarting"class="method trait-impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#96-101">source</a><ahref="#method.restarting"class="anchor">§</a><h4class="code-header">fn <aclass="fn">restarting</a>(&mut self, _: &mut Self::Context)</h4></section></summary><divclass='docblock'>Called when the supervisor restarts a failed actor.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-WriteHandler%3CError%3E-for-RedisActor"class="impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#104-109">source</a><ahref="#impl-WriteHandler%3CError%3E-for-RedisActor"class="anchor">§</a><h3class="code-header">impl WriteHandler<<aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>> for <aclass="struct"href="struct.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.error"class="method trait-impl"><aclass="src rightside"href="../src/actix_redis/redis.rs.html#105-108">source</a><ahref="#method.error"class="anchor">§</a><h4class="code-header">fn <aclass="fn">error</a>(&mut self, err: <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>, _: &mut Self::Context) -> Running</h4></section></summary><divclass='docblock'>Called when the writer emits error. <a>Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.finished"class="method trait-impl"><ahref="#method.finished"class="anchor">§</a><h4class="code-header">fn <aclass="fn">finished</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><divclass='docblock'>Called when the writer finishes. <a>Read more</a></div></details></div></details></div><h2id="synthetic-implementations"class="small-section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-RefUnwindSafe-for-RedisActor"class="impl"><ahref="#impl-RefUnwindSafe-for-RedisActor"class="anchor">§</a><h3class="code-header">impl !<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.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section><sectionid="impl-Send-for-RedisActor"class="impl"><ahref="#impl-Send-for-RedisActor"class="anchor">§</a><h3class="code-header">impl !<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.RedisActor.html"title="struct actix_redis::RedisActor">RedisActor</a></h3></section><sectionid="impl-Sync-for-RedisActor"class="impl"><ahref="#impl-Sync-for-RedisActor"class="anchor">§</a><h3class="code-header">impl !<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.RedisActor.html"title="structactix_redis::RedisAct
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></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#136">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-RedisActor"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-RedisActor"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<spanclass="where fmt-newline">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></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-RedisActor"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-RedisActor"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<spanclass="where fmt-newline">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-RedisActor"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#722">source</a><ahref="#impl-From%3CT%3E-for-RedisActor"class="anchor">§</a><h3class="code-header">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</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#725">source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Instrument-for-RedisActor"class="impl"><aclass="src rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><ahref="#impl-Instrument-for-RedisActor"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html"title="trait tracing::instrument::Instrument">Instrument</a> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.instrument"class="method trait-impl"><aclass="src rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><ahref="#method.instrument"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument"class="fn">instrument</a>(self, span: <aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::Span">Span</a>) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the provided <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::Span"><code>Span</code></a>, returning an
<code>Instrumented</code> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.in_current_span"class="method trait-impl"><aclass="src rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><ahref="#method.in_current_span"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span"class="fn">in_current_span</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.Instrumented.html"title="struct tracing::instrument::Instrumented">Instrumented</a><Self></h4></section></summary><divclass='docblock'>Instruments this type with the <ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current"title="associated function tracing::span::Span::current">current</a><ahref="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html"title="struct tracing::span::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>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Same%3CT%3E-for-RedisActor"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%3CT%3E-for-RedisActor"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><T> for 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://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-RedisActor"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#762">source</a><ahref="#impl-TryFrom%3CU%3E-for-RedisActor"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<spanclass="where fmt-newline">where
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></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#769">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-TryInto%3CU%3E-for-RedisActor"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#747">source</a><ahref="#impl-TryInto%3CU%3E-for-RedisActor"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<spanclass="where fmt-newline">where
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></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#754">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-RedisActor"class="impl"><ahref="#impl-VZip%3CV%3E-for-RedisActor"class="anchor">§</a><h3class="code-header">impl<V, T> VZip<V> for T<spanclass="where fmt-newline">where
S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><Dispatch>,</span></h4></section></summary><divclass='docblock'>Attaches the provided <ahref="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
<ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.with_current_subscriber"class="method trait-impl"><aclass="src rightside"href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><ahref="#method.with_current_subscriber"class="anchor">§</a><h4class="code-header">fn <ahref="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber"class="fn">with_current_subscriber</a>(self) -><aclass="struct"href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html"title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self></h4></section></summary><divclass='docblock'>Attaches the current <ahref="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber"title="mod tracing::dispatcher">default</a><ahref="super::Subscriber"><code>Subscriber</code></a> to this type, returning a