mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-24 16:02:59 +01:00
27 lines
41 KiB
HTML
27 lines
41 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Redis communication actor."><title>RedisActor in actix_redis - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-ae1b282cda4c21ec.css"><meta name="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" ><script src="../static.files/storage-db41da1a38ea3cb8.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-cabe4b1bd7b9da95.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../static.files/light-f194925aa375ae96.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../static.files/dark-1dd4d1ce031e15de.css"><link rel="stylesheet" href="../static.files/noscript-cffde32267a19fd6.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="logo-container" href="../actix_redis/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2></h2></nav><nav class="sidebar"><a class="logo-container" href="../actix_redis/index.html"><img class="rust-logo" src="../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><h2 class="location"><a href="#">RedisActor</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.start">start</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Actor-for-RedisActor">Actor</a></li><li><a href="#impl-Handler%3CCommand%3E-for-RedisActor">Handler<Command></a></li><li><a href="#impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor">StreamHandler<Result<RespValue, Error>></a></li><li><a href="#impl-Supervised-for-RedisActor">Supervised</a></li><li><a href="#impl-WriteHandler%3CError%3E-for-RedisActor">WriteHandler<Error></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-RedisActor">!RefUnwindSafe</a></li><li><a href="#impl-Send-for-RedisActor">!Send</a></li><li><a href="#impl-Sync-for-RedisActor">!Sync</a></li><li><a href="#impl-UnwindSafe-for-RedisActor">!UnwindSafe</a></li><li><a href="#impl-Unpin-for-RedisActor">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-RedisActor">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-RedisActor">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-RedisActor">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-RedisActor">From<T></a></li><li><a href="#impl-Instrument-for-RedisActor">Instrument</a></li><li><a href="#impl-Into%3CU%3E-for-RedisActor">Into<U></a></li><li><a href="#impl-Same%3CT%3E-for-RedisActor">Same<T></a></li><li><a href="#impl-TryFrom%3CU%3E-for-RedisActor">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-RedisActor">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-RedisActor">VZip<V></a></li><li><a href="#impl-WithSubscriber-for-RedisActor">WithSubscriber</a></li></ul></section><h2><a href="index.html">In actix_redis</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="index.html">actix_redis</a>::<wbr><a class="struct" href="#">RedisActor</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/actix_redis/redis.rs.html#30-36">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub struct RedisActor { /* private fields */ }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Redis communication actor.</p>
|
||
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#38-56">source</a><a href="#impl-RedisActor" class="anchor">§</a><h3 class="code-header">impl <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.start" class="method"><a class="src rightside" href="../src/actix_redis/redis.rs.html#40-55">source</a><h4 class="code-header">pub fn <a href="#method.start" class="fn">start</a><S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>>(addr: S) -> Addr<<a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a>></h4></section></summary><div class="docblock"><p>Start new <code>Supervisor</code> with <code>RedisActor</code>.</p>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Actor-for-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#58-93">source</a><a href="#impl-Actor-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl Actor for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Context" class="associatedtype trait-impl"><a href="#associatedtype.Context" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Context</a> = Context<<a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a>></h4></section></summary><div class='docblock'>Actor execution context type</div></details><details class="toggle method-toggle" open><summary><section id="method.started-1" class="method trait-impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#61-92">source</a><a href="#method.started-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">started</a>(&mut self, ctx: &mut Context<Self>)</h4></section></summary><div class='docblock'>Called when an actor gets polled the first time.</div></details><details class="toggle method-toggle" open><summary><section id="method.stopping" class="method trait-impl"><a href="#method.stopping" class="anchor">§</a><h4 class="code-header">fn <a class="fn">stopping</a>(&mut self, ctx: &mut Self::Context) -> Running</h4></section></summary><div class='docblock'>Called after an actor is in <code>Actor::Stopping</code> state. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.stopped" class="method trait-impl"><a href="#method.stopped" class="anchor">§</a><h4 class="code-header">fn <a class="fn">stopped</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><div class='docblock'>Called after an actor is stopped. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.start-1" class="method trait-impl"><a href="#method.start-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">start</a>(self) -> Addr<Self><span class="where fmt-newline">where
|
||
Self: Actor<Context = Context<Self>>,</span></h4></section></summary><div class='docblock'>Start a new asynchronous actor, returning its address. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.start_in_arbiter" class="method trait-impl"><a href="#method.start_in_arbiter" class="anchor">§</a><h4 class="code-header">fn <a class="fn">start_in_arbiter</a><F>(wrk: &ArbiterHandle, f: F) -> Addr<Self><span class="where fmt-newline">where
|
||
Self: Actor<Context = Context<Self>>,
|
||
F: <a class="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 + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,</span></h4></section></summary><div class='docblock'>Start new actor in arbiter’s thread.</div></details><details class="toggle method-toggle" open><summary><section id="method.create" class="method trait-impl"><a href="#method.create" class="anchor">§</a><h4 class="code-header">fn <a class="fn">create</a><F>(f: F) -> Addr<Self><span class="where fmt-newline">where
|
||
Self: Actor<Context = Context<Self>>,
|
||
F: <a class="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><div class='docblock'>Start a new asynchronous actor given a <code>Context</code>. <a>Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Handler%3CCommand%3E-for-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#129-143">source</a><a href="#impl-Handler%3CCommand%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl Handler<<a class="struct" href="struct.Command.html" title="struct actix_redis::Command">Command</a>> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Result" class="associatedtype trait-impl"><a href="#associatedtype.Result" class="anchor">§</a><h4 class="code-header">type <a class="associatedtype">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title="struct core::pin::Pin">Pin</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title="trait core::future::future::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.RespValue.html" title="enum actix_redis::RespValue">RespValue</a>, <a class="enum" href="enum.Error.html" title="enum actix_redis::Error">Error</a>>>, <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/alloc/struct.Global.html" title="struct alloc::alloc::Global">Global</a>>></h4></section></summary><div class='docblock'>The type of value that this handler will return. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.handle" class="method trait-impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#132-142">source</a><a href="#method.handle" class="anchor">§</a><h4 class="code-header">fn <a class="fn">handle</a>(&mut self, msg: <a class="struct" href="struct.Command.html" title="struct actix_redis::Command">Command</a>, _: &mut Self::Context) -> Self::Result</h4></section></summary><div class='docblock'>This method is called for every message received by this actor.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#111-127">source</a><a href="#impl-StreamHandler%3CResult%3CRespValue,+Error%3E%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl StreamHandler<<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.RespValue.html" title="enum actix_redis::RespValue">RespValue</a>, <a class="enum" href="enum.RespError.html" title="enum actix_redis::RespError">Error</a>>> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.handle-1" class="method trait-impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#112-126">source</a><a href="#method.handle-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">handle</a>(&mut self, msg: <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="enum" href="enum.RespValue.html" title="enum actix_redis::RespValue">RespValue</a>, <a class="enum" href="enum.RespError.html" title="enum actix_redis::RespError">RespError</a>>, ctx: &mut Self::Context)</h4></section></summary><div class='docblock'>Called for every message emitted by the stream.</div></details><details class="toggle method-toggle" open><summary><section id="method.started" class="method trait-impl"><a href="#method.started" class="anchor">§</a><h4 class="code-header">fn <a class="fn">started</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><div class='docblock'>Called when stream emits first item. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.finished-1" class="method trait-impl"><a href="#method.finished-1" class="anchor">§</a><h4 class="code-header">fn <a class="fn">finished</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><div class='docblock'>Called when stream finishes. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.add_stream" class="method trait-impl"><a href="#method.add_stream" class="anchor">§</a><h4 class="code-header">fn <a class="fn">add_stream</a><S>(stream: S, ctx: &mut Self::Context) -> SpawnHandle<span class="where fmt-newline">where
|
||
S: Stream + 'static,
|
||
Self: StreamHandler<<S as Stream>::Item>,
|
||
Self::Context: AsyncContext<Self>,</span></h4></section></summary><div class='docblock'>Register a Stream to the actor context.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Supervised-for-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#95-102">source</a><a href="#impl-Supervised-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl Supervised for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.restarting" class="method trait-impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#96-101">source</a><a href="#method.restarting" class="anchor">§</a><h4 class="code-header">fn <a class="fn">restarting</a>(&mut self, _: &mut Self::Context)</h4></section></summary><div class='docblock'>Called when the supervisor restarts a failed actor.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-WriteHandler%3CError%3E-for-RedisActor" class="impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#104-109">source</a><a href="#impl-WriteHandler%3CError%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl WriteHandler<<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.error" class="method trait-impl"><a class="src rightside" href="../src/actix_redis/redis.rs.html#105-108">source</a><a href="#method.error" class="anchor">§</a><h4 class="code-header">fn <a class="fn">error</a>(&mut self, err: <a class="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><div class='docblock'>Called when the writer emits error. <a>Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.finished" class="method trait-impl"><a href="#method.finished" class="anchor">§</a><h4 class="code-header">fn <a class="fn">finished</a>(&mut self, ctx: &mut Self::Context)</h4></section></summary><div class='docblock'>Called when the writer finishes. <a>Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-RedisActor" class="impl"><a href="#impl-RefUnwindSafe-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl !<a class="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 <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section><section id="impl-Send-for-RedisActor" class="impl"><a href="#impl-Send-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section><section id="impl-Sync-for-RedisActor" class="impl"><a href="#impl-Sync-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section><section id="impl-Unpin-for-RedisActor" class="impl"><a href="#impl-Unpin-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section><section id="impl-UnwindSafe-for-RedisActor" class="impl"><a href="#impl-UnwindSafe-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl !<a class="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 <a class="struct" href="struct.RedisActor.html" title="struct actix_redis::RedisActor">RedisActor</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#135">source</a><a href="#impl-Any-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where
|
||
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#136">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<span class="where fmt-newline">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<span class="where fmt-newline">where
|
||
T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#722">source</a><a href="#impl-From%3CT%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="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><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#725">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Instrument-for-RedisActor" class="impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#276">source</a><a href="#impl-Instrument-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="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><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.instrument" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#82">source</a><a href="#method.instrument" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument" class="fn">instrument</a>(self, span: <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html" title="struct tracing::span::Span">Span</a>) -> <a class="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><div class='docblock'>Instruments this type with the provided <a href="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. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.instrument">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.in_current_span" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#121">source</a><a href="#method.in_current_span" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span" class="fn">in_current_span</a>(self) -> <a class="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><div class='docblock'>Instruments this type with the <a href="https://docs.rs/tracing/0.1.37/tracing/span/struct.Span.html#method.current" title="associated function tracing::span::Span::current">current</a> <a href="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. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.Instrument.html#method.in_current_span">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#706">source</a><a href="#impl-Into%3CU%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#715">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||
<p>That is, this conversion is whatever the implementation of
|
||
<code><a href="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><details class="toggle implementors-toggle"><summary><section id="impl-Same%3CT%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://docs.rs/typenum/1.17.0/src/typenum/type_operators.rs.html#34">source</a><a href="#impl-Same%3CT%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="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><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://docs.rs/typenum/1.17.0/typenum/type_operators/trait.Same.html#associatedtype.Output" class="associatedtype">Output</a> = T</h4></section></summary><div class='docblock'>Should always be <code>Self</code></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#762">source</a><a href="#impl-TryFrom%3CU%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="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><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#769">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="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><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-RedisActor" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#747">source</a><a href="#impl-TryInto%3CU%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<span class="where fmt-newline">where
|
||
U: <a class="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><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="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><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#754">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="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><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-RedisActor" class="impl"><a href="#impl-VZip%3CV%3E-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<V, T> VZip<V> for T<span class="where fmt-newline">where
|
||
V: MultiLane<T>,</span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl"><a href="#method.vzip" class="anchor">§</a><h4 class="code-header">fn <a class="fn">vzip</a>(self) -> V</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-WithSubscriber-for-RedisActor" class="impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#334">source</a><a href="#impl-WithSubscriber-for-RedisActor" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html" title="trait tracing::instrument::WithSubscriber">WithSubscriber</a> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.with_subscriber" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#169-171">source</a><a href="#method.with_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber" class="fn">with_subscriber</a><S>(self, subscriber: S) -> <a class="struct" href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch">WithDispatch</a><Self><span class="where fmt-newline">where
|
||
S: <a class="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><div class='docblock'>Attaches the provided <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_subscriber">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.with_current_subscriber" class="method trait-impl"><a class="src rightside" href="https://docs.rs/tracing/0.1.37/src/tracing/instrument.rs.html#221">source</a><a href="#method.with_current_subscriber" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber" class="fn">with_current_subscriber</a>(self) -> <a class="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><div class='docblock'>Attaches the current <a href="https://docs.rs/tracing/0.1.37/tracing/dispatcher/index.html#setting-the-default-subscriber" title="mod tracing::dispatcher">default</a> <a href="super::Subscriber"><code>Subscriber</code></a> to this type, returning a
|
||
<a href="https://docs.rs/tracing/0.1.37/tracing/instrument/struct.WithDispatch.html" title="struct tracing::instrument::WithDispatch"><code>WithDispatch</code></a> wrapper. <a href="https://docs.rs/tracing/0.1.37/tracing/instrument/trait.WithSubscriber.html#method.with_current_subscriber">Read more</a></div></details></div></details></div></section></div></main></body></html> |