mirror of
https://github.com/actix/actix-website
synced 2025-06-30 08:44:27 +02:00
update stable docs
This commit is contained in:
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.ActorContext.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.ActorContext.html">trait.ActorContext.html</a>...</p>
|
||||
<script>location.replace("trait.ActorContext.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.ActorFuture.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.ActorFuture.html">trait.ActorFuture.html</a>...</p>
|
||||
<script>location.replace("trait.ActorFuture.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.ActorResponse.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.ActorResponse.html">struct.ActorResponse.html</a>...</p>
|
||||
<script>location.replace("struct.ActorResponse.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.ActorStream.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.ActorStream.html">trait.ActorStream.html</a>...</p>
|
||||
<script>location.replace("trait.ActorStream.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Arbiter.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Arbiter.html">struct.Arbiter.html</a>...</p>
|
||||
<script>location.replace("struct.Arbiter.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.ArbiterService.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.ArbiterService.html">trait.ArbiterService.html</a>...</p>
|
||||
<script>location.replace("trait.ArbiterService.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.AsyncContext.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.AsyncContext.html">trait.AsyncContext.html</a>...</p>
|
||||
<script>location.replace("trait.AsyncContext.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.Handler.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.Handler.html">trait.Handler.html</a>...</p>
|
||||
<script>location.replace("trait.Handler.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.Message.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.Message.html">trait.Message.html</a>...</p>
|
||||
<script>location.replace("trait.Message.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Recipient.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Recipient.html">struct.Recipient.html</a>...</p>
|
||||
<script>location.replace("struct.Recipient.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.RecipientRequest.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.RecipientRequest.html">struct.RecipientRequest.html</a>...</p>
|
||||
<script>location.replace("struct.RecipientRequest.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Request.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Request.html">struct.Request.html</a>...</p>
|
||||
<script>location.replace("struct.Request.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Response.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Response.html">struct.Response.html</a>...</p>
|
||||
<script>location.replace("struct.Response.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=type.ResponseFuture.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="type.ResponseFuture.html">type.ResponseFuture.html</a>...</p>
|
||||
<script>location.replace("type.ResponseFuture.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.SpawnHandle.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.SpawnHandle.html">struct.SpawnHandle.html</a>...</p>
|
||||
<script>location.replace("struct.SpawnHandle.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.StreamHandler.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.StreamHandler.html">trait.StreamHandler.html</a>...</p>
|
||||
<script>location.replace("trait.StreamHandler.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.SyncContext.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.SyncContext.html">struct.SyncContext.html</a>...</p>
|
||||
<script>location.replace("struct.SyncContext.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.System.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.System.html">struct.System.html</a>...</p>
|
||||
<script>location.replace("struct.System.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.WrapStream.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.WrapStream.html">trait.WrapStream.html</a>...</p>
|
||||
<script>location.replace("trait.WrapStream.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,19 @@
|
||||
<!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="API documentation for the Rust `actors` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, actors"><title>actix_web::actix::actix::actors - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module actors</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li></ul></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'actors', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a class="mod" href=''>actors</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>Helper actors</p>
|
||||
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="mod" href="resolver/index.html"
|
||||
title='mod actix_web::actix::actix::actors::resolver'>resolver</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>DNS resolver and connector utility actor</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="mod" href="signal/index.html"
|
||||
title='mod actix_web::actix::actix::actors::signal'>signal</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>An actor implementation of Unix signal handling</p>
|
||||
|
||||
</td>
|
||||
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Connect.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Connect.html">struct.Connect.html</a>...</p>
|
||||
<script>location.replace("struct.Connect.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.ConnectAddr.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.ConnectAddr.html">struct.ConnectAddr.html</a>...</p>
|
||||
<script>location.replace("struct.ConnectAddr.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=type.Connector.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="type.Connector.html">type.Connector.html</a>...</p>
|
||||
<script>location.replace("type.Connector.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=type.ConnectorError.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="type.ConnectorError.html">type.ConnectorError.html</a>...</p>
|
||||
<script>location.replace("type.ConnectorError.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Resolve.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Resolve.html">struct.Resolve.html</a>...</p>
|
||||
<script>location.replace("struct.Resolve.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Resolver.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Resolver.html">struct.Resolver.html</a>...</p>
|
||||
<script>location.replace("struct.Resolver.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=enum.ResolverError.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="enum.ResolverError.html">enum.ResolverError.html</a>...</p>
|
||||
<script>location.replace("enum.ResolverError.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.TcpConnector.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.TcpConnector.html">struct.TcpConnector.html</a>...</p>
|
||||
<script>location.replace("struct.TcpConnector.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,30 @@
|
||||
<!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="API documentation for the Rust `ResolverError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ResolverError"><title>actix_web::actix::actix::actors::resolver::ResolverError - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum ResolverError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Resolver">Resolver</a><a href="#variant.InvalidInput">InvalidInput</a><a href="#variant.Timeout">Timeout</a><a href="#variant.IoError">IoError</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Fail">Fail</a><a href="#impl-From%3CResolverError%3E">From<ResolverError></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ResolverError', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="enum" href=''>ResolverError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum ResolverError {
|
||||
Resolver(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>),
|
||||
InvalidInput(&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>),
|
||||
Timeout,
|
||||
IoError(<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>),
|
||||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<span id="variant.Resolver" class="variant small-section-header"><a href="#variant.Resolver" class="anchor field"></a><span id='Resolver.v' class='invisible'><code>Resolver(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>)</code></span></span><div class='docblock'><p>Failed to resolve the hostname</p>
|
||||
</div><span id="variant.InvalidInput" class="variant small-section-header"><a href="#variant.InvalidInput" class="anchor field"></a><span id='InvalidInput.v' class='invisible'><code>InvalidInput(&'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>)</code></span></span><div class='docblock'><p>Address is invalid</p>
|
||||
</div><span id="variant.Timeout" class="variant small-section-header"><a href="#variant.Timeout" class="anchor field"></a><span id='Timeout.v' class='invisible'><code>Timeout</code></span></span><div class='docblock'><p>Connecting took too long</p>
|
||||
</div><span id="variant.IoError" class="variant small-section-header"><a href="#variant.IoError" class="anchor field"></a><span id='IoError.v' class='invisible'><code>IoError(<a class="struct" href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html" title="struct std::io::error::Error">Error</a>)</code></span></span><div class='docblock'><p>Connection io error</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Fail' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl Fail for <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Fail' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.cause' class="method"><span id='cause.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.cause' class='fnname'>cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(Fail + 'static)></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="#method.cause">Read more</a></p>
|
||||
</div><h4 id='method.backtrace' class="method"><span id='backtrace.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.backtrace' class='fnname'>backtrace</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Backtrace></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="#method.backtrace">Read more</a></p>
|
||||
</div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.context' class='fnname'>context</a><D>(self, context: D) -> Context<D> <span class="where fmt-newline">where<br> D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Provides context for this failure. <a href="#method.context">Read more</a></p>
|
||||
</div><h4 id='method.compat' class="method"><span id='compat.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.compat' class='fnname'>compat</a>(self) -> Compat<Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Wraps this failure in a compatibility wrapper that implements <code>std::error::Error</code>. <a href="#method.compat">Read more</a></p>
|
||||
</div><h4 id='method.causes' class="method"><div class="important-traits"><div class='tooltip'>ⓘ<span class='tooltiptext'>Important traits for Causes<'f></span></div><div class="content hidden"><h3 class="important">Important traits for Causes<'f></h3><code class="content"><span class="where fmt-newline">impl<'f> <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for Causes<'f></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &'f (Fail + 'static);</span></code></div></div><span id='causes.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.causes' class='fnname'>causes</a>(&self) -> Causes</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a iterator over the causes of this <code>Fail</code> with itself as the first item and the <code>root_cause</code> as the final item. <a href="#method.causes">Read more</a></p>
|
||||
</div><h4 id='method.root_cause' class="method"><span id='root_cause.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.root_cause' class='fnname'>root_cause</a>(&self) -> &(Fail + 'static)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "root cause" of this <code>Fail</code> - the last value in the cause chain which does not return an underlying <code>cause</code>. <a href="#method.root_cause">Read more</a></p>
|
||||
</div></div><h3 id='impl-From%3CResolverError%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>> for <a class="enum" href="../../../../../actix_web/client/enum.ClientConnectorError.html" title="enum actix_web::client::ClientConnectorError">ClientConnectorError</a></code><a href='#impl-From%3CResolverError%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../src/actix_web/client/connector.rs.html#159-166' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(err: <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>) -> <a class="enum" href="../../../../../actix_web/client/enum.ClientConnectorError.html" title="enum actix_web::client::ClientConnectorError">ClientConnectorError</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../src/actix_web/client/connector.rs.html#160-165' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,93 @@
|
||||
<!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="API documentation for the Rust `resolver` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, resolver"><title>actix_web::actix::actix::actors::resolver - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module resolver</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a></p><script>window.sidebarCurrent = {name: 'resolver', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a class="mod" href=''>resolver</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>DNS resolver and connector utility actor</p>
|
||||
<h2 id="example" class="section-header"><a href="#example">Example</a></h2>
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">actors</span>::<span class="ident">resolver</span>;
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() {
|
||||
<span class="ident">System</span>::<span class="ident">run</span>(<span class="op">||</span> {
|
||||
|
||||
<span class="ident">tokio</span>::<span class="ident">spawn</span>({
|
||||
<span class="kw">let</span> <span class="ident">resolver</span> <span class="op">=</span> <span class="ident">resolver</span>::<span class="ident">Resolver</span>::<span class="ident">from_registry</span>();
|
||||
|
||||
<span class="ident">resolver</span>.<span class="ident">send</span>(
|
||||
<span class="ident">resolver</span>::<span class="ident">Resolve</span>::<span class="ident">host</span>(<span class="string">"localhost"</span>)) <span class="comment">// <- resolve "localhost"</span>
|
||||
.<span class="ident">then</span>(<span class="op">|</span><span class="ident">addrs</span><span class="op">|</span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"RESULT: {:?}"</span>, <span class="ident">addrs</span>);
|
||||
<span class="prelude-val">Ok</span>::<span class="op"><</span><span class="kw">_</span>, ()<span class="op">></span>(())
|
||||
})
|
||||
});
|
||||
|
||||
<span class="ident">tokio</span>::<span class="ident">spawn</span>({
|
||||
<span class="kw">let</span> <span class="ident">resolver</span> <span class="op">=</span> <span class="ident">resolver</span>::<span class="ident">Resolver</span>::<span class="ident">from_registry</span>();
|
||||
|
||||
<span class="ident">resolver</span>.<span class="ident">send</span>(
|
||||
<span class="ident">resolver</span>::<span class="ident">Resolve</span>::<span class="ident">host</span>(<span class="string">"localhost:5000"</span>)) <span class="comment">// <- connect to a "localhost"</span>
|
||||
.<span class="ident">then</span>(<span class="op">|</span><span class="ident">stream</span><span class="op">|</span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"RESULT: {:?}"</span>, <span class="ident">stream</span>);
|
||||
<span class="prelude-val">Ok</span>::<span class="op"><</span><span class="kw">_</span>, ()<span class="op">></span>(())
|
||||
})
|
||||
});
|
||||
});
|
||||
}</pre>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Connect.html"
|
||||
title='struct actix_web::actix::actix::actors::resolver::Connect'>Connect</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.ConnectAddr.html"
|
||||
title='struct actix_web::actix::actix::actors::resolver::ConnectAddr'>ConnectAddr</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Resolve.html"
|
||||
title='struct actix_web::actix::actix::actors::resolver::Resolve'>Resolve</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Resolver.html"
|
||||
title='struct actix_web::actix::actix::actors::resolver::Resolver'>Resolver</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.TcpConnector.html"
|
||||
title='struct actix_web::actix::actix::actors::resolver::TcpConnector'>TcpConnector</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Tcp stream connector</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="enum" href="enum.ResolverError.html"
|
||||
title='enum actix_web::actix::actix::actors::resolver::ResolverError'>ResolverError</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="type" href="type.Connector.html"
|
||||
title='type actix_web::actix::actix::actors::resolver::Connector'>Connector</a></td>
|
||||
<td class='docblock-short'>
|
||||
[<div class='stab deprecated'>Deprecated</div>]
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="type" href="type.ConnectorError.html"
|
||||
title='type actix_web::actix::actix::actors::resolver::ConnectorError'>ConnectorError</a></td>
|
||||
<td class='docblock-short'>
|
||||
[<div class='stab deprecated'>Deprecated</div>]
|
||||
</td>
|
||||
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["ResolverError",""]],"struct":[["Connect",""],["ConnectAddr",""],["Resolve",""],["Resolver",""],["TcpConnector","Tcp stream connector"]],"type":[["Connector",""],["ConnectorError",""]]});
|
@ -0,0 +1,24 @@
|
||||
<!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="API documentation for the Rust `Connect` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Connect"><title>actix_web::actix::actix::actors::resolver::Connect - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Connect</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.host">host</a><a href="#method.host_and_port">host_and_port</a><a href="#method.timeout">timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Eq">Eq</a><a href="#impl-Message">Message</a><a href="#impl-PartialEq%3CConnect%3E">PartialEq<Connect></a><a href="#impl-Handler%3CConnect%3E">Handler<Connect></a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Connect', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Connect</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Connect { /* fields omitted */ }</pre></div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.host' class="method"><span id='host.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host' class='fnname'>host</a><T>(host: T) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.host_and_port' class="method"><span id='host_and_port.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host_and_port' class='fnname'>host_and_port</a><T>(host: T, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Set connect timeout</p>
|
||||
<p>By default timeout is set to a 1 second.</p>
|
||||
</div></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-PartialEq%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-Handler%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,18 @@
|
||||
<!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="API documentation for the Rust `ConnectAddr` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ConnectAddr"><title>actix_web::actix::actix::actors::resolver::ConnectAddr - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct ConnectAddr</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Eq">Eq</a><a href="#impl-Message">Message</a><a href="#impl-PartialEq%3CConnectAddr%3E">PartialEq<ConnectAddr></a><a href="#impl-Handler%3CConnectAddr%3E">Handler<ConnectAddr></a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ConnectAddr', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>ConnectAddr</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ConnectAddr(pub <a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>);</pre></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-PartialEq%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-Handler%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,22 @@
|
||||
<!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="API documentation for the Rust `Resolve` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Resolve"><title>actix_web::actix::actix::actors::resolver::Resolve - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Resolve</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.host">host</a><a href="#method.host_and_port">host_and_port</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Eq">Eq</a><a href="#impl-Message">Message</a><a href="#impl-PartialEq%3CResolve%3E">PartialEq<Resolve></a><a href="#impl-Handler%3CResolve%3E">Handler<Resolve></a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Resolve', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Resolve</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Resolve { /* fields omitted */ }</pre></div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.host' class="method"><span id='host.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host' class='fnname'>host</a><T>(host: T) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.host_and_port' class="method"><span id='host_and_port.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.host_and_port' class='fnname'>host_and_port</a><T>(host: T, port: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a> <span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>, </span></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Eq' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Eq' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>>, <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-PartialEq%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: &<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-Handler%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,36 @@
|
||||
<!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="API documentation for the Rust `Resolver` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Resolver"><title>actix_web::actix::actix::actors::resolver::Resolver - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Resolver</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CResolve%3E">Handler<Resolve></a><a href="#impl-Handler%3CConnectAddr%3E">Handler<ConnectAddr></a><a href="#impl-Handler%3CConnect%3E">Handler<Connect></a><a href="#impl-SystemService">SystemService</a><a href="#impl-Supervised">Supervised</a><a href="#impl-Default">Default</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Resolver', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>Resolver</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Resolver { /* fields omitted */ }</pre></div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(config: ResolverConfig, options: ResolverOpts) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Handler%3CResolve%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CResolve%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolve.html" title="struct actix_web::actix::actix::actors::resolver::Resolve">Resolve</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Handler%3CConnectAddr%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnectAddr%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle-1' class="method"><span id='handle.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.ConnectAddr.html" title="struct actix_web::actix::actix::actors::resolver::ConnectAddr">ConnectAddr</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Handler%3CConnect%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Handler%3CConnect%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result-2' class="type"><span id='Result.t-2' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><<a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Error = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>, Item = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a>, Actor = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>> + 'static></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle-2' class="method"><span id='handle.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Connect.html" title="struct actix_web::actix::actix::actors::resolver::Connect">Connect</a>>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result" title="type actix_web::actix::actix::Handler::Result">Result</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-SystemService' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.SystemService.html" title="trait actix_web::actix::actix::SystemService">SystemService</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-SystemService' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.start_service' class="method"><span id='start_service.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.start_service' class='fnname'>start_service</a>(sys: &<a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><<a class="struct" href="../../../../../actix_web/actix/actix/struct.Arbiter.html" title="struct actix_web::actix::actix::Arbiter">Arbiter</a>>) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Construct and srtart system service</p>
|
||||
</div><h4 id='method.service_started' class="method"><span id='service_started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.service_started' class='fnname'>service_started</a>(&mut self, ctx: &mut <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called during service initialization.</p>
|
||||
</div><h4 id='method.from_registry' class="method"><span id='from_registry.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.from_registry' class='fnname'>from_registry</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Get actor's address from system registry</p>
|
||||
</div></div><h3 id='impl-Supervised' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Supervised.html" title="trait actix_web::actix::actix::Supervised">Supervised</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Supervised' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.restarting' class="method"><span id='restarting.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Supervised.html#method.restarting' class='fnname'>restarting</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method called when supervisor restarting failed actor</p>
|
||||
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>></code></span></h4>
|
||||
<div class='docblock'><p>Actor execution context type</p>
|
||||
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&mut self, ctx: &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
|
||||
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> <a class="enum" href="../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
|
||||
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
|
||||
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
|
||||
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
|
||||
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a><F>(f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> 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 <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>) -> Self + 'static,<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.create">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,28 @@
|
||||
<!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="API documentation for the Rust `TcpConnector` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, TcpConnector"><title>actix_web::actix::actix::actors::resolver::TcpConnector - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct TcpConnector</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.with_timeout">with_timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'TcpConnector', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="struct" href=''>TcpConnector</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct TcpConnector { /* fields omitted */ }</pre></div><div class='docblock'><p>Tcp stream connector</p>
|
||||
</div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(addrs: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>>) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.with_timeout' class="method"><span id='with_timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_timeout' class='fnname'>with_timeout</a>(<br> addrs: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a><<a class="enum" href="https://doc.rust-lang.org/nightly/std/net/addr/enum.SocketAddr.html" title="enum std::net::addr::SocketAddr">SocketAddr</a>>, <br> timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a><br>) -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <a class="struct" href="https://docs.rs/tokio-tcp/0.1.0/tokio_tcp/stream/struct.TcpStream.html" title="struct tokio_tcp::stream::TcpStream">TcpStream</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a></code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> &mut <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>, <br> &mut <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>><br>) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>>, <<a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../../../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/resolver/struct.TcpConnector.html" title="struct actix_web::actix::actix::actors::resolver::TcpConnector">TcpConnector</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,2 @@
|
||||
<!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="API documentation for the Rust `Connector` type in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Connector"><title>actix_web::actix::actix::actors::resolver::Connector - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc type"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Type Definition Connector</p><div class="sidebar-elems"><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'Connector', ty: 'type', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Type Definition <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="type" href=''>Connector</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust typedef'>type Connector = <a class="struct" href="../../../../../actix_web/actix/actix/actors/resolver/struct.Resolver.html" title="struct actix_web::actix::actix::actors::resolver::Resolver">Resolver</a>;</pre><div class='stability'><div class='stab deprecated'>Deprecated since 0.7.0<p>: please use <code>Resolver</code> instead</p>
|
||||
</div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,2 @@
|
||||
<!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="API documentation for the Rust `ConnectorError` type in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ConnectorError"><title>actix_web::actix::actix::actors::resolver::ConnectorError - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc type"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Type Definition ConnectorError</p><div class="sidebar-elems"><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a></p><script>window.sidebarCurrent = {name: 'ConnectorError', ty: 'type', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Type Definition <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>resolver</a>::<wbr><a class="type" href=''>ConnectorError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust typedef'>type ConnectorError = <a class="enum" href="../../../../../actix_web/actix/actix/actors/resolver/enum.ResolverError.html" title="enum actix_web::actix::actix::actors::resolver::ResolverError">ResolverError</a>;</pre><div class='stability'><div class='stab deprecated'>Deprecated since 0.7.0<p>: please use <code>ResolverError</code> instead</p>
|
||||
</div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
initSidebarItems({"mod":[["resolver","DNS resolver and connector utility actor"],["signal","An actor implementation of Unix signal handling"]]});
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.DefaultSignalsHandler.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.DefaultSignalsHandler.html">struct.DefaultSignalsHandler.html</a>...</p>
|
||||
<script>location.replace("struct.DefaultSignalsHandler.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.ProcessSignals.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.ProcessSignals.html">struct.ProcessSignals.html</a>...</p>
|
||||
<script>location.replace("struct.ProcessSignals.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Signal.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Signal.html">struct.Signal.html</a>...</p>
|
||||
<script>location.replace("struct.Signal.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=enum.SignalType.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="enum.SignalType.html">enum.SignalType.html</a>...</p>
|
||||
<script>location.replace("enum.SignalType.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Subscribe.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Subscribe.html">struct.Subscribe.html</a>...</p>
|
||||
<script>location.replace("struct.Subscribe.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,32 @@
|
||||
<!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="API documentation for the Rust `SignalType` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, SignalType"><title>actix_web::actix::actix::actors::signal::SignalType - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum SignalType</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Hup">Hup</a><a href="#variant.Int">Int</a><a href="#variant.Term">Term</a><a href="#variant.Quit">Quit</a><a href="#variant.Child">Child</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-PartialEq%3CSignalType%3E">PartialEq<SignalType></a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'SignalType', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="enum" href=''>SignalType</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum SignalType {
|
||||
Hup,
|
||||
Int,
|
||||
Term,
|
||||
Quit,
|
||||
Child,
|
||||
}</pre></div><div class='docblock'><p>Different types of process signals</p>
|
||||
</div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<span id="variant.Hup" class="variant small-section-header"><a href="#variant.Hup" class="anchor field"></a><span id='Hup.v' class='invisible'><code>Hup</code></span></span><div class='docblock'><p>SIGHUP</p>
|
||||
</div><span id="variant.Int" class="variant small-section-header"><a href="#variant.Int" class="anchor field"></a><span id='Int.v' class='invisible'><code>Int</code></span></span><div class='docblock'><p>SIGINT</p>
|
||||
</div><span id="variant.Term" class="variant small-section-header"><a href="#variant.Term" class="anchor field"></a><span id='Term.v' class='invisible'><code>Term</code></span></span><div class='docblock'><p>SIGTERM</p>
|
||||
</div><span id="variant.Quit" class="variant small-section-header"><a href="#variant.Quit" class="anchor field"></a><span id='Quit.v' class='invisible'><code>Quit</code></span></span><div class='docblock'><p>SIGQUIT</p>
|
||||
</div><span id="variant.Child" class="variant small-section-header"><a href="#variant.Child" class="anchor field"></a><span id='Child.v' class='invisible'><code>Child</code></span></span><div class='docblock'><p>SIGCHILD</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CSignalType%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a>> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-PartialEq%3CSignalType%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code><div class="docblock attributes">#[must_use]
|
||||
</div>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#126' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,100 @@
|
||||
<!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="API documentation for the Rust `signal` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, signal"><title>actix_web::actix::actix::actors::signal - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module signal</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li></ul></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a></p><script>window.sidebarCurrent = {name: 'signal', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a class="mod" href=''>signal</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>An actor implementation of Unix signal handling</p>
|
||||
<p>This module implements asynchronous signal handling for Actix. For each
|
||||
signal <code>ProcessSignals</code> actor sends <code>Signal</code> message to all subscriber. To
|
||||
subscriber, send <code>Subscribe</code> message to <code>ProcessSignals</code> actor.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">actors</span>::<span class="ident">signal</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">Signals</span>;
|
||||
|
||||
<span class="kw">impl</span> <span class="ident">Actor</span> <span class="kw">for</span> <span class="ident">Signals</span> {
|
||||
<span class="kw">type</span> <span class="ident">Context</span> <span class="op">=</span> <span class="ident">Context</span><span class="op"><</span><span class="self">Self</span><span class="op">></span>;
|
||||
}
|
||||
|
||||
<span class="comment">// Shutdown system on and of `SIGINT`, `SIGTERM`, `SIGQUIT` signals</span>
|
||||
<span class="kw">impl</span> <span class="ident">Handler</span><span class="op"><</span><span class="ident">signal</span>::<span class="ident">Signal</span><span class="op">></span> <span class="kw">for</span> <span class="ident">Signals</span> {
|
||||
<span class="kw">type</span> <span class="prelude-ty">Result</span> <span class="op">=</span> ();
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">handle</span>(<span class="kw-2">&</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">msg</span>: <span class="ident">signal</span>::<span class="ident">Signal</span>, <span class="kw">_</span>: <span class="kw-2">&</span><span class="kw-2">mut</span> <span class="ident">Context</span><span class="op"><</span><span class="self">Self</span><span class="op">></span>) {
|
||||
<span class="kw">match</span> <span class="ident">msg</span>.<span class="number">0</span> {
|
||||
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Int</span> <span class="op">=></span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"SIGINT received, exiting"</span>);
|
||||
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
|
||||
}
|
||||
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Hup</span> <span class="op">=></span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"SIGHUP received, reloading"</span>);
|
||||
}
|
||||
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Term</span> <span class="op">=></span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"SIGTERM received, stopping"</span>);
|
||||
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
|
||||
}
|
||||
<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Quit</span> <span class="op">=></span> {
|
||||
<span class="macro">println</span><span class="macro">!</span>(<span class="string">"SIGQUIT received, exiting"</span>);
|
||||
<span class="ident">System</span>::<span class="ident">current</span>().<span class="ident">stop</span>();
|
||||
}
|
||||
<span class="kw">_</span> <span class="op">=></span> (),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
<span class="kw">fn</span> <span class="ident">main</span>() {
|
||||
<span class="comment">// initialize system</span>
|
||||
<span class="ident">System</span>::<span class="ident">run</span>(<span class="op">||</span> {
|
||||
<span class="comment">// Start signals handler</span>
|
||||
<span class="kw">let</span> <span class="ident">addr</span> <span class="op">=</span> <span class="ident">Signals</span>.<span class="ident">start</span>();
|
||||
|
||||
<span class="comment">// send SIGTERM</span>
|
||||
<span class="ident">std</span>::<span class="ident">thread</span>::<span class="ident">spawn</span>(<span class="kw">move</span> <span class="op">||</span> {
|
||||
<span class="comment">// emulate SIGNTERM</span>
|
||||
<span class="ident">addr</span>.<span class="ident">do_send</span>(<span class="ident">signal</span>::<span class="ident">Signal</span>(<span class="ident">signal</span>::<span class="ident">SignalType</span>::<span class="ident">Term</span>));
|
||||
});
|
||||
});
|
||||
|
||||
<span class="ident">std</span>::<span class="ident">process</span>::<span class="ident">exit</span>(<span class="number">0</span>);
|
||||
}</pre>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.DefaultSignalsHandler.html"
|
||||
title='struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler'>DefaultSignalsHandler</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Default signals handler. This actor sends <code>SystemExit</code> message to <code>System</code>
|
||||
actor for each of <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.ProcessSignals.html"
|
||||
title='struct actix_web::actix::actix::actors::signal::ProcessSignals'>ProcessSignals</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>An actor implementation of Unix signal handling</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Signal.html"
|
||||
title='struct actix_web::actix::actix::actors::signal::Signal'>Signal</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Process signal message</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Subscribe.html"
|
||||
title='struct actix_web::actix::actix::actors::signal::Subscribe'>Subscribe</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Subscribe to process signals.</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="enum" href="enum.SignalType.html"
|
||||
title='enum actix_web::actix::actix::actors::signal::SignalType'>SignalType</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Different types of process signals</p>
|
||||
|
||||
</td>
|
||||
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["SignalType","Different types of process signals"]],"struct":[["DefaultSignalsHandler","Default signals handler. This actor sends `SystemExit` message to `System` actor for each of `SIGINT`, `SIGTERM`, `SIGQUIT` signals."],["ProcessSignals","An actor implementation of Unix signal handling"],["Signal","Process signal message"],["Subscribe","Subscribe to process signals."]]});
|
@ -0,0 +1,26 @@
|
||||
<!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="API documentation for the Rust `DefaultSignalsHandler` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, DefaultSignalsHandler"><title>actix_web::actix::actix::actors::signal::DefaultSignalsHandler - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct DefaultSignalsHandler</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CSignal%3E">Handler<Signal></a><a href="#impl-Default">Default</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'DefaultSignalsHandler', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>DefaultSignalsHandler</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct DefaultSignalsHandler;</pre></div><div class='docblock'><p>Default signals handler. This actor sends <code>SystemExit</code> message to <code>System</code>
|
||||
actor for each of <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals.</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Handler%3CSignal%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Handler%3CSignal%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and send <code>SystemExit(0)</code>
|
||||
message to <code>System</code> actor.</p>
|
||||
</div><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a>></code></span></h4>
|
||||
<div class='docblock'><p>Actor execution context type</p>
|
||||
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&mut self, ctx: &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
|
||||
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> <a class="enum" href="../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
|
||||
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
|
||||
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
|
||||
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
|
||||
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a><F>(f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> 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 <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>) -> Self + 'static,<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.create">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,28 @@
|
||||
<!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="API documentation for the Rust `ProcessSignals` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ProcessSignals"><title>actix_web::actix::actix::actors::signal::ProcessSignals - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct ProcessSignals</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Handler%3CSubscribe%3E">Handler<Subscribe></a><a href="#impl-SystemService">SystemService</a><a href="#impl-Supervised">Supervised</a><a href="#impl-Default">Default</a><a href="#impl-Actor">Actor</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'ProcessSignals', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>ProcessSignals</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ProcessSignals { /* fields omitted */ }</pre></div><div class='docblock'><p>An actor implementation of Unix signal handling</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Handler%3CSubscribe%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Handler%3CSubscribe%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Add subscriber for signals</p>
|
||||
</div><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&mut self, msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a>, &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-SystemService' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.SystemService.html" title="trait actix_web::actix::actix::SystemService">SystemService</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-SystemService' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.service_started' class="method"><span id='service_started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.service_started' class='fnname'>service_started</a>(&mut self, ctx: &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called during service initialization.</p>
|
||||
</div><h4 id='method.start_service' class="method"><span id='start_service.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.start_service' class='fnname'>start_service</a>(sys: &<a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><<a class="struct" href="../../../../../actix_web/actix/actix/struct.Arbiter.html" title="struct actix_web::actix::actix::Arbiter">Arbiter</a>>) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Construct and srtart system service</p>
|
||||
</div><h4 id='method.from_registry' class="method"><span id='from_registry.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.SystemService.html#method.from_registry' class='fnname'>from_registry</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Get actor's address from system registry</p>
|
||||
</div></div><h3 id='impl-Supervised' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Supervised.html" title="trait actix_web::actix::actix::Supervised">Supervised</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Supervised' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.restarting' class="method"><span id='restarting.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Supervised.html#method.restarting' class='fnname'>restarting</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method called when supervisor restarting failed actor</p>
|
||||
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div><h3 id='impl-Actor' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Actor' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Context' class="type"><span id='Context.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context' class="type">Context</a> = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a>></code></span></h4>
|
||||
<div class='docblock'><p>Actor execution context type</p>
|
||||
</div><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.started' class='fnname'>started</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called when actor get polled first time.</p>
|
||||
</div><h4 id='method.stopping' class="method"><span id='stopping.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping' class='fnname'>stopping</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> <a class="enum" href="../../../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is in <code>Actor::Stopping</code> state. There could be several reasons for stopping. <code>Context::stop</code> get called by the actor itself. All addresses to current actor get dropped and no more evented objects left in the context. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopping">Read more</a></p>
|
||||
</div><h4 id='method.stopped' class="method"><span id='stopped.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped' class='fnname'>stopped</a>(&mut self, ctx: &mut Self::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called after an actor is stopped, it can be used to perform any needed cleanup work or spawning more actors. This is final state, after this call actor get dropped. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.stopped">Read more</a></p>
|
||||
</div><h4 id='method.start' class="method"><span id='start.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start' class='fnname'>start</a>(self) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.start">Read more</a></p>
|
||||
</div><h4 id='method.start_default' class="method"><span id='start_default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.start_default' class='fnname'>start_default</a>() -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Start new asynchronous actor, returns address of newly created actor.</p>
|
||||
</div><h4 id='method.create' class="method"><span id='create.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Actor.html#method.create' class='fnname'>create</a><F>(f: F) -> <a class="struct" href="../../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><Self> <span class="where fmt-newline">where<br> 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 <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>) -> Self + 'static,<br> Self: <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Use <code>create</code> method, if you need <code>Context</code> object during actor initialization. <a href="../../../../../actix_web/actix/actix/trait.Actor.html#method.create">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,25 @@
|
||||
<!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="API documentation for the Rust `Signal` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Signal"><title>actix_web::actix::actix::actors::signal::Signal - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Signal</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CSignal%3E">Handler<Signal></a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'Signal', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>Signal</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Signal(pub <a class="enum" href="../../../../../actix_web/actix/actix/actors/signal/enum.SignalType.html" title="enum actix_web::actix::actix::actors::signal::SignalType">SignalType</a>);</pre></div><div class='docblock'><p>Process signal message</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-Handler%3CSignal%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a></code><a href='#impl-Handler%3CSignal%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and send <code>SystemExit(0)</code>
|
||||
message to <code>System</code> actor.</p>
|
||||
</div><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(<br> &mut self, <br> msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>, <br> &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.DefaultSignalsHandler.html" title="struct actix_web::actix::actix::actors::signal::DefaultSignalsHandler">DefaultSignalsHandler</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Handler%3CSignal%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<H: <a class="trait" href="../../../../../actix_web/server/trait.IntoHttpHandler.html" title="trait actix_web::server::IntoHttpHandler">IntoHttpHandler</a>> <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>> for <a class="struct" href="../../../../../actix_web/server/struct.HttpServer.html" title="struct actix_web::server::HttpServer">HttpServer</a><H></code><a href='#impl-Handler%3CSignal%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../src/actix_web/server/srv.rs.html#587-610' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Signals support
|
||||
Handle <code>SIGINT</code>, <code>SIGTERM</code>, <code>SIGQUIT</code> signals and stop actix system
|
||||
message to <code>System</code> actor.</p>
|
||||
</div><div class='impl-items'><h4 id='associatedtype.Result-2' class="type"><span id='Result.t-2' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle-1' class="method"><span id='handle.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&mut self, msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>, ctx: &mut <a class="struct" href="../../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><Self>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../../../../src/actix_web/server/srv.rs.html#590-609' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,17 @@
|
||||
<!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="API documentation for the Rust `Subscribe` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Subscribe"><title>actix_web::actix::actix::actors::signal::Subscribe - Rust</title><link rel="stylesheet" type="text/css" href="../../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../../light.css" id="themeStyle"><script src="../../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Subscribe</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Message">Message</a><a href="#impl-Handler%3CSubscribe%3E">Handler<Subscribe></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a></p><script>window.sidebarCurrent = {name: 'Subscribe', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../../settings.html"><img src="../../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../../index.html'>actix_web</a>::<wbr><a href='../../../index.html'>actix</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actors</a>::<wbr><a href='index.html'>signal</a>::<wbr><a class="struct" href=''>Subscribe</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Subscribe(pub <a class="struct" href="../../../../../actix_web/actix/actix/struct.Recipient.html" title="struct actix_web::actix::actix::Recipient">Recipient</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Signal.html" title="struct actix_web::actix::actix::actors::signal::Signal">Signal</a>>);</pre></div><div class='docblock'><p>Subscribe to process signals.</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Message' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Message' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Result' class="type"><span id='Result.t' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this message will resolved with if it is successful. <a href="../../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result">Read more</a></p>
|
||||
</div></div><h3 id='impl-Handler%3CSubscribe%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a>> for <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a></code><a href='#impl-Handler%3CSubscribe%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='docblock'><p>Add subscriber for signals</p>
|
||||
</div><div class='impl-items'><h4 id='associatedtype.Result-1' class="type"><span id='Result.t-1' class='invisible'><code>type <a href='../../../../../actix_web/actix/actix/trait.Handler.html#associatedtype.Result' class="type">Result</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this handle will return</p>
|
||||
</div><h4 id='method.handle' class="method"><span id='handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../../actix_web/actix/actix/trait.Handler.html#tymethod.handle' class='fnname'>handle</a>(&mut self, msg: <a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a>, &mut <<a class="struct" href="../../../../../actix_web/actix/actix/actors/signal/struct.ProcessSignals.html" title="struct actix_web::actix::actix::actors::signal::ProcessSignals">ProcessSignals</a> as <a class="trait" href="../../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Method is called for every message received by this Actor</p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>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="../../../../../actix_web/actix/actix/actors/signal/struct.Subscribe.html" title="struct actix_web::actix::actix::actors::signal::Subscribe">Subscribe</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../../";window.currentCrate = "actix_web";</script><script src="../../../../../aliases.js"></script><script src="../../../../../main.js"></script><script defer src="../../../../../search-index.js"></script></body></html>
|
@ -1,52 +1,11 @@
|
||||
<!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="API documentation for the Rust `dev` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, dev"><title>actix_web::actix::actix::dev - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module dev</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#modules">Modules</a></li><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#types">Type Definitions</a></li></ul></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'dev', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a class="mod" href=''>dev</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>The <code>actix</code> prelude for library developers</p>
|
||||
<!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="API documentation for the Rust `dev` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, dev"><title>actix_web::actix::actix::dev - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module dev</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li></ul></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'dev', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a class="mod" href=''>dev</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>The <code>actix</code> prelude for library developers</p>
|
||||
<p>The purpose of this module is to alleviate imports of many common actix
|
||||
traits by adding a glob import to the top of actix heavy modules:</p>
|
||||
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">dev</span>::<span class="kw-2">*</span>;</pre>
|
||||
</div><h2 id='modules' class='section-header'><a href="#modules">Modules</a></h2>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="mod" href="actors/index.html"
|
||||
title='mod actix_web::actix::actix::dev::actors'>actors</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Helper actors</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="mod" href="fut/index.html"
|
||||
title='mod actix_web::actix::actix::dev::fut'>fut</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Custom <code>Future</code> implementation with <code>Actix</code> support</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="mod" href="msgs/index.html"
|
||||
title='mod actix_web::actix::actix::dev::msgs'>msgs</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Actix system messages</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.ActorResponse.html"
|
||||
title='struct actix_web::actix::actix::dev::ActorResponse'>ActorResponse</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Helper type for representing different type of message responses</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Arbiter.html"
|
||||
title='struct actix_web::actix::actix::dev::Arbiter'>Arbiter</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Event loop controller</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.ContextFut.html"
|
||||
title='struct actix_web::actix::actix::dev::ContextFut'>ContextFut</a></td>
|
||||
@ -75,23 +34,6 @@ traits by adding a glob import to the top of actix heavy modules:</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Recipient.html"
|
||||
title='struct actix_web::actix::actix::dev::Recipient'>Recipient</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p><code>Recipient</code> type allows to send one specific message to an actor.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.RecipientRequest.html"
|
||||
title='struct actix_web::actix::actix::dev::RecipientRequest'>RecipientRequest</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p><code>RecipientRequest</code> is a <code>Future</code> which represents asynchronous message
|
||||
sending process.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Registry.html"
|
||||
title='struct actix_web::actix::actix::dev::Registry'>Registry</a></td>
|
||||
@ -100,47 +42,6 @@ sending process.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Request.html"
|
||||
title='struct actix_web::actix::actix::dev::Request'>Request</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p><code>Request</code> is a <code>Future</code> which represents asynchronous message sending
|
||||
process.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Response.html"
|
||||
title='struct actix_web::actix::actix::dev::Response'>Response</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Helper type for representing different type of message responses</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.SpawnHandle.html"
|
||||
title='struct actix_web::actix::actix::dev::SpawnHandle'>SpawnHandle</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Spawned future handle. Could be used for cancelling spawned future.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.SyncContext.html"
|
||||
title='struct actix_web::actix::actix::dev::SyncContext'>SyncContext</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Sync actor execution context</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.System.html"
|
||||
title='struct actix_web::actix::actix::dev::System'>System</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>System is an actor which manages runtime.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.SystemRegistry.html"
|
||||
title='struct actix_web::actix::actix::dev::SystemRegistry'>SystemRegistry</a></td>
|
||||
@ -150,47 +51,6 @@ process.</p>
|
||||
</td>
|
||||
</tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.ActorContext.html"
|
||||
title='trait actix_web::actix::actix::dev::ActorContext'>ActorContext</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Actor execution context</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.ActorFuture.html"
|
||||
title='trait actix_web::actix::actix::dev::ActorFuture'>ActorFuture</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Trait for types which are a placeholder of a value that may become
|
||||
available at some later point in time.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.ActorStream.html"
|
||||
title='trait actix_web::actix::actix::dev::ActorStream'>ActorStream</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A stream of values, not all of which may have been produced yet.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.ArbiterService.html"
|
||||
title='trait actix_web::actix::actix::dev::ArbiterService'>ArbiterService</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Trait defines arbiter's service.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.AsyncContext.html"
|
||||
title='trait actix_web::actix::actix::dev::AsyncContext'>AsyncContext</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Asynchronous execution context</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.AsyncContextParts.html"
|
||||
title='trait actix_web::actix::actix::dev::AsyncContextParts'>AsyncContextParts</a></td>
|
||||
@ -198,22 +58,6 @@ available at some later point in time.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.Handler.html"
|
||||
title='trait actix_web::actix::actix::dev::Handler'>Handler</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Message handler</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.Message.html"
|
||||
title='trait actix_web::actix::actix::dev::Message'>Message</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Message type</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.MessageResponse.html"
|
||||
title='trait actix_web::actix::actix::dev::MessageResponse'>MessageResponse</a></td>
|
||||
@ -230,36 +74,11 @@ available at some later point in time.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.StreamHandler.html"
|
||||
title='trait actix_web::actix::actix::dev::StreamHandler'>StreamHandler</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Stream handler</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.ToEnvelope.html"
|
||||
title='trait actix_web::actix::actix::dev::ToEnvelope'>ToEnvelope</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Converter trait, packs message to suitable envelope</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.WrapStream.html"
|
||||
title='trait actix_web::actix::actix::dev::WrapStream'>WrapStream</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Helper trait that allows conversion of normal stream into <code>ActorStream</code></p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='types' class='section-header'><a href="#types">Type Definitions</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="type" href="type.ResponseFuture.html"
|
||||
title='type actix_web::actix::actix::dev::ResponseFuture'>ResponseFuture</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A specialized future for async message handler</p>
|
||||
|
||||
</td>
|
||||
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1 +1 @@
|
||||
initSidebarItems({"mod":[["actors","Helper actors"],["fut","Custom `Future` implementation with `Actix` support"],["msgs","Actix system messages"]],"struct":[["ActorResponse","Helper type for representing different type of message responses"],["Arbiter","Event loop controller"],["ContextFut",""],["ContextParts",""],["Envelope",""],["Mailbox",""],["Recipient","`Recipient` type allows to send one specific message to an actor."],["RecipientRequest","`RecipientRequest` is a `Future` which represents asynchronous message sending process."],["Registry","Actors registry"],["Request","`Request` is a `Future` which represents asynchronous message sending process."],["Response","Helper type for representing different type of message responses"],["SpawnHandle","Spawned future handle. Could be used for cancelling spawned future."],["SyncContext","Sync actor execution context"],["System","System is an actor which manages runtime."],["SystemRegistry","System wide actors registry"]],"trait":[["ActorContext","Actor execution context"],["ActorFuture","Trait for types which are a placeholder of a value that may become available at some later point in time."],["ActorStream","A stream of values, not all of which may have been produced yet."],["ArbiterService","Trait defines arbiter's service."],["AsyncContext","Asynchronous execution context"],["AsyncContextParts",""],["Handler","Message handler"],["Message","Message type"],["MessageResponse","Trait which defines message response"],["ResponseChannel","Trait defines message response channel"],["StreamHandler","Stream handler"],["ToEnvelope","Converter trait, packs message to suitable envelope"],["WrapStream","Helper trait that allows conversion of normal stream into `ActorStream`"]],"type":[["ResponseFuture","A specialized future for async message handler"]]});
|
||||
initSidebarItems({"struct":[["ContextFut",""],["ContextParts",""],["Envelope",""],["Mailbox",""],["Registry","Actors registry"],["SystemRegistry","System wide actors registry"]],"trait":[["AsyncContextParts",""],["MessageResponse","Trait which defines message response"],["ResponseChannel","Trait defines message response channel"],["ToEnvelope","Converter trait, packs message to suitable envelope"]]});
|
@ -1,19 +1,19 @@
|
||||
<!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="API documentation for the Rust `ContextParts` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ContextParts"><title>actix_web::actix::actix::dev::ContextParts - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct ContextParts</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.stop">stop</a><a href="#method.terminate">terminate</a><a href="#method.state">state</a><a href="#method.waiting">waiting</a><a href="#method.curr_handle">curr_handle</a><a href="#method.spawn">spawn</a><a href="#method.wait">wait</a><a href="#method.cancel_future">cancel_future</a><a href="#method.capacity">capacity</a><a href="#method.set_mailbox_capacity">set_mailbox_capacity</a><a href="#method.address">address</a><a href="#method.started">started</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ContextParts', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="struct" href=''>ContextParts</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ContextParts<A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>, </span> { /* fields omitted */ }</pre></div>
|
||||
<!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="API documentation for the Rust `ContextParts` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ContextParts"><title>actix_web::actix::actix::dev::ContextParts - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct ContextParts</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.stop">stop</a><a href="#method.terminate">terminate</a><a href="#method.state">state</a><a href="#method.waiting">waiting</a><a href="#method.curr_handle">curr_handle</a><a href="#method.spawn">spawn</a><a href="#method.wait">wait</a><a href="#method.cancel_future">cancel_future</a><a href="#method.capacity">capacity</a><a href="#method.set_mailbox_capacity">set_mailbox_capacity</a><a href="#method.address">address</a><a href="#method.started">started</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">!Send</a><a href="#impl-Sync">!Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ContextParts', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="struct" href=''>ContextParts</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct ContextParts<A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>, </span> { /* fields omitted */ }</pre></div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.ContextParts.html" title="struct actix_web::actix::actix::dev::ContextParts">ContextParts</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(addr: AddressSenderProducer<A>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.ContextParts.html" title="struct actix_web::actix::actix::dev::ContextParts">ContextParts</a><A></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Create new ContextParts instance</p>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.ContextParts.html" title="struct actix_web::actix::actix::dev::ContextParts">ContextParts</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(addr: AddressSenderProducer<A>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.ContextParts.html" title="struct actix_web::actix::actix::dev::ContextParts">ContextParts</a><A></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Create new ContextParts instance</p>
|
||||
</div><h4 id='method.stop' class="method"><span id='stop.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.stop' class='fnname'>stop</a>(&mut self)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Initiate stop process for actor execution</p>
|
||||
<p>Actor could prevent stopping by returning <code>false</code> from
|
||||
<code>Actor::stopping()</code> method.</p>
|
||||
</div><h4 id='method.terminate' class="method"><span id='terminate.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.terminate' class='fnname'>terminate</a>(&mut self)</code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Terminate actor execution</p>
|
||||
</div><h4 id='method.state' class="method"><span id='state.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.state' class='fnname'>state</a>(&self) -> <a class="enum" href="../../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Actor execution state</p>
|
||||
</div><h4 id='method.waiting' class="method"><span id='waiting.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.waiting' class='fnname'>waiting</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Is context waiting for future completion</p>
|
||||
</div><h4 id='method.curr_handle' class="method"><span id='curr_handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.curr_handle' class='fnname'>curr_handle</a>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.SpawnHandle.html" title="struct actix_web::actix::actix::dev::SpawnHandle">SpawnHandle</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Handle of the running future</p>
|
||||
</div><h4 id='method.spawn' class="method"><span id='spawn.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.spawn' class='fnname'>spawn</a><F>(&mut self, fut: F) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.SpawnHandle.html" title="struct actix_web::actix::actix::dev::SpawnHandle">SpawnHandle</a> <span class="where fmt-newline">where<br> F: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Actor = A> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Spawn new future to this context.</p>
|
||||
</div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.wait' class='fnname'>wait</a><F>(&mut self, f: F) <span class="where fmt-newline">where<br> F: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ActorFuture.html" title="trait actix_web::actix::actix::dev::ActorFuture">ActorFuture</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Actor = A> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Spawn new future to this context and wait future completion.</p>
|
||||
</div><h4 id='method.curr_handle' class="method"><span id='curr_handle.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.curr_handle' class='fnname'>curr_handle</a>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.SpawnHandle.html" title="struct actix_web::actix::actix::SpawnHandle">SpawnHandle</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Handle of the running future</p>
|
||||
</div><h4 id='method.spawn' class="method"><span id='spawn.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.spawn' class='fnname'>spawn</a><F>(&mut self, fut: F) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.SpawnHandle.html" title="struct actix_web::actix::actix::SpawnHandle">SpawnHandle</a> <span class="where fmt-newline">where<br> F: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Actor = A> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Spawn new future to this context.</p>
|
||||
</div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.wait' class='fnname'>wait</a><F>(&mut self, f: F) <span class="where fmt-newline">where<br> F: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Error = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, Actor = A> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Spawn new future to this context and wait future completion.</p>
|
||||
<p>During wait period actor does not receive any messages.</p>
|
||||
</div><h4 id='method.cancel_future' class="method"><span id='cancel_future.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cancel_future' class='fnname'>cancel_future</a>(&mut self, handle: <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.SpawnHandle.html" title="struct actix_web::actix::actix::dev::SpawnHandle">SpawnHandle</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Cancel previously scheduled future.</p>
|
||||
</div><h4 id='method.cancel_future' class="method"><span id='cancel_future.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cancel_future' class='fnname'>cancel_future</a>(&mut self, handle: <a class="struct" href="../../../../actix_web/actix/actix/struct.SpawnHandle.html" title="struct actix_web::actix::actix::SpawnHandle">SpawnHandle</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Cancel previously scheduled future.</p>
|
||||
</div><h4 id='method.capacity' class="method"><span id='capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.capacity' class='fnname'>capacity</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.set_mailbox_capacity' class="method"><span id='set_mailbox_capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_mailbox_capacity' class='fnname'>set_mailbox_capacity</a>(&mut self, cap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></td><td></td></tr></tbody></table></span></h4><h4 id='method.address' class="method"><span id='address.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.address' class='fnname'>address</a>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.started' class="method"><span id='started.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.started' class='fnname'>started</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
|
@ -2,7 +2,7 @@
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a><M>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.with_proxy' class="method"><span id='with_proxy.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_proxy' class='fnname'>with_proxy</a>(<br> proxy: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><EnvelopeProxy<Actor = A> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>><br>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a><M>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.with_proxy' class="method"><span id='with_proxy.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.with_proxy' class='fnname'>with_proxy</a>(<br> proxy: <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a><EnvelopeProxy<Actor = A> + 'static + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>><br>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
</h2>
|
||||
|
@ -1,12 +1,12 @@
|
||||
<!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="API documentation for the Rust `Mailbox` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Mailbox"><title>actix_web::actix::actix::dev::Mailbox - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Mailbox</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.capacity">capacity</a><a href="#method.set_capacity">set_capacity</a><a href="#method.connected">connected</a><a href="#method.address">address</a><a href="#method.sender_producer">sender_producer</a><a href="#method.poll">poll</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'Mailbox', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="struct" href=''>Mailbox</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Mailbox<A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>, </span> { /* fields omitted */ }</pre></div>
|
||||
<!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="API documentation for the Rust `Mailbox` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Mailbox"><title>actix_web::actix::actix::dev::Mailbox - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Mailbox</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a><a href="#method.capacity">capacity</a><a href="#method.set_capacity">set_capacity</a><a href="#method.connected">connected</a><a href="#method.address">address</a><a href="#method.sender_producer">sender_producer</a><a href="#method.poll">poll</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Default">Default</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'Mailbox', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="struct" href=''>Mailbox</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct Mailbox<A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>, </span> { /* fields omitted */ }</pre></div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(msgs: AddressReceiver<A>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.capacity' class="method"><span id='capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.capacity' class='fnname'>capacity</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.set_capacity' class="method"><span id='set_capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_capacity' class='fnname'>set_capacity</a>(&mut self, cap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></td><td></td></tr></tbody></table></span></h4><h4 id='method.connected' class="method"><span id='connected.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.connected' class='fnname'>connected</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.address' class="method"><span id='address.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.address' class='fnname'>address</a>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.sender_producer' class="method"><span id='sender_producer.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sender_producer' class='fnname'>sender_producer</a>(&self) -> AddressSenderProducer<A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.poll' class='fnname'>poll</a>(&mut self, act: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, ctx: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(msgs: AddressReceiver<A>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.capacity' class="method"><span id='capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.capacity' class='fnname'>capacity</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.set_capacity' class="method"><span id='set_capacity.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set_capacity' class='fnname'>set_capacity</a>(&mut self, cap: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code></td><td></td></tr></tbody></table></span></h4><h4 id='method.connected' class="method"><span id='connected.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.connected' class='fnname'>connected</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.address' class="method"><span id='address.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.address' class='fnname'>address</a>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.sender_producer' class="method"><span id='sender_producer.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sender_producer' class='fnname'>sender_producer</a>(&self) -> AddressSenderProducer<A></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.poll' class='fnname'>poll</a>(&mut self, act: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>A, ctx: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>)</code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
<div id='implementations-list'><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A>, </span></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Mailbox.html" title="struct actix_web::actix::actix::dev::Mailbox">Mailbox</a><A></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||||
</div></div></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
|
@ -59,10 +59,10 @@ unique per system.</p>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Registry.html" title="struct actix_web::actix::actix::dev::Registry">Registry</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.get' class="method"><span id='get.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.get' class='fnname'>get</a><A>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ArbiterService.html" title="trait actix_web::actix::actix::dev::ArbiterService">ArbiterService</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Query registry for specific actor. Returns address of the actor.
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Registry.html" title="struct actix_web::actix::actix::dev::Registry">Registry</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.get' class="method"><span id='get.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.get' class='fnname'>get</a><A>(&self) -> <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.ArbiterService.html" title="trait actix_web::actix::actix::ArbiterService">ArbiterService</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Query registry for specific actor. Returns address of the actor.
|
||||
If actor is not registered, starts new actor and
|
||||
return address of newly created actor.</p>
|
||||
</div><h4 id='method.set' class="method"><span id='set.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set' class='fnname'>set</a><A>(&self, addr: <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A>) <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ArbiterService.html" title="trait actix_web::actix::actix::dev::ArbiterService">ArbiterService</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add new actor to the registry by address, panic if actor is already running</p>
|
||||
</div><h4 id='method.set' class="method"><span id='set.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.set' class='fnname'>set</a><A>(&self, addr: <a class="struct" href="../../../../actix_web/actix/actix/struct.Addr.html" title="struct actix_web::actix::actix::Addr">Addr</a><A>) <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.ArbiterService.html" title="trait actix_web::actix::actix::ArbiterService">ArbiterService</a>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add new actor to the registry by address, panic if actor is already running</p>
|
||||
</div></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `AsyncContextParts` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, AsyncContextParts"><title>actix_web::actix::actix::dev::AsyncContextParts - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait AsyncContextParts</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.parts">parts</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'AsyncContextParts', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>AsyncContextParts</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait AsyncContextParts<A>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ActorContext.html" title="trait actix_web::actix::actix::dev::ActorContext">ActorContext</a> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.AsyncContext.html" title="trait actix_web::actix::actix::dev::AsyncContext">AsyncContext</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = Self>, </span>{
|
||||
<!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="API documentation for the Rust `AsyncContextParts` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, AsyncContextParts"><title>actix_web::actix::actix::dev::AsyncContextParts - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait AsyncContextParts</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.parts">parts</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'AsyncContextParts', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>AsyncContextParts</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait AsyncContextParts<A>: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorContext.html" title="trait actix_web::actix::actix::ActorContext">ActorContext</a> + <a class="trait" href="../../../../actix_web/actix/actix/trait.AsyncContext.html" title="trait actix_web::actix::actix::AsyncContext">AsyncContext</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = Self>, </span>{
|
||||
fn <a href='#tymethod.parts' class='fnname'>parts</a>(&mut self) -> &mut <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.ContextParts.html" title="struct actix_web::actix::actix::dev::ContextParts">ContextParts</a><A>;
|
||||
}</pre></div>
|
||||
<h2 id='required-methods' class='small-section-header'>
|
||||
|
File diff suppressed because one or more lines are too long
@ -1,17 +1,17 @@
|
||||
<!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="API documentation for the Rust `ResponseChannel` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ResponseChannel"><title>actix_web::actix::actix::dev::ResponseChannel - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait ResponseChannel</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.is_canceled">is_canceled</a><a href="#tymethod.send">send</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-ResponseChannel%3CM%3E">()</a><a href="#impl-ResponseChannel%3CM%3E">Sender<<M as Message>::Result></a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ResponseChannel', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>ResponseChannel</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait ResponseChannel<M>: 'static <span class="where fmt-newline">where<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>, </span>{
|
||||
<!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="API documentation for the Rust `ResponseChannel` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ResponseChannel"><title>actix_web::actix::actix::dev::ResponseChannel - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait ResponseChannel</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.is_canceled">is_canceled</a><a href="#tymethod.send">send</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-ResponseChannel%3CM%3E">()</a><a href="#impl-ResponseChannel%3CM%3E">Sender<<M as Message>::Result></a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ResponseChannel', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>ResponseChannel</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait ResponseChannel<M>: 'static <span class="where fmt-newline">where<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>, </span>{
|
||||
fn <a href='#tymethod.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
|
||||
<div class='item-spacer'></div> fn <a href='#tymethod.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>);
|
||||
<div class='item-spacer'></div> fn <a href='#tymethod.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>);
|
||||
}</pre></div><div class='docblock'><p>Trait defines message response channel</p>
|
||||
</div>
|
||||
<h2 id='required-methods' class='small-section-header'>
|
||||
Required Methods<a href='#required-methods' class='anchor'></a>
|
||||
</h2>
|
||||
<div class='methods'>
|
||||
<h3 id='tymethod.is_canceled' class='method'><span id='is_canceled.v' class='invisible'><code>fn <a href='#tymethod.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><h3 id='tymethod.send' class='method'><span id='send.v' class='invisible'><code>fn <a href='#tymethod.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>)</code></span></h3></div>
|
||||
<h3 id='tymethod.is_canceled' class='method'><span id='is_canceled.v' class='invisible'><code>fn <a href='#tymethod.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><h3 id='tymethod.send' class='method'><span id='send.v' class='invisible'><code>fn <a href='#tymethod.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>)</code></span></h3></div>
|
||||
<h2 id='foreign-impls' class='small-section-header'>
|
||||
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl-ResponseChannel%3CM%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<M> <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ResponseChannel.html" title="trait actix_web::actix::actix::dev::ResponseChannel">ResponseChannel</a><M> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> <span class="where fmt-newline">where<br> M: 'static + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>, </span></code><a href='#impl-ResponseChannel%3CM%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.is_canceled' class="method"><span id='is_canceled.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.send' class="method"><span id='send.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.send' class='fnname'>send</a>(self, <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>)</code></td><td></td></tr></tbody></table></span></h4></div></span><h3 id='impl-ResponseChannel%3CM%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<M> <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ResponseChannel.html" title="trait actix_web::actix::actix::dev::ResponseChannel">ResponseChannel</a><M> for <a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>> <span class="where fmt-newline">where<br> M: 'static + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-ResponseChannel%3CM%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.is_canceled-1' class="method"><span id='is_canceled.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.send-1' class="method"><span id='send.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>)</code></td><td></td></tr></tbody></table></span></h4></div></span>
|
||||
<h3 id='impl-ResponseChannel%3CM%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<M> <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ResponseChannel.html" title="trait actix_web::actix::actix::dev::ResponseChannel">ResponseChannel</a><M> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> <span class="where fmt-newline">where<br> M: 'static + <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>, </span></code><a href='#impl-ResponseChannel%3CM%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.is_canceled' class="method"><span id='is_canceled.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.send' class="method"><span id='send.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.send' class='fnname'>send</a>(self, <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>)</code></td><td></td></tr></tbody></table></span></h4></div></span><h3 id='impl-ResponseChannel%3CM%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<M> <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ResponseChannel.html" title="trait actix_web::actix::actix::dev::ResponseChannel">ResponseChannel</a><M> for <a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>> <span class="where fmt-newline">where<br> M: 'static + <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-ResponseChannel%3CM%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.is_canceled-1' class="method"><span id='is_canceled.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_canceled' class='fnname'>is_canceled</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.send-1' class="method"><span id='send.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.send' class='fnname'>send</a>(self, response: <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>)</code></td><td></td></tr></tbody></table></span></h4></div></span>
|
||||
<h2 id='implementors' class='small-section-header'>
|
||||
Implementors<a href='#implementors' class='anchor'></a>
|
||||
</h2>
|
||||
|
@ -1,21 +1,21 @@
|
||||
<!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="API documentation for the Rust `ToEnvelope` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ToEnvelope"><title>actix_web::actix::actix::dev::ToEnvelope - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait ToEnvelope</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.pack">pack</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ToEnvelope', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>ToEnvelope</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait ToEnvelope<A, M> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ToEnvelope.html" title="trait actix_web::actix::actix::dev::ToEnvelope">ToEnvelope</a><A, M>, </span>{
|
||||
fn <a href='#tymethod.pack' class='fnname'>pack</a>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A>;
|
||||
<!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="API documentation for the Rust `ToEnvelope` trait in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ToEnvelope"><title>actix_web::actix::actix::dev::ToEnvelope - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Trait ToEnvelope</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.pack">pack</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a></p><script>window.sidebarCurrent = {name: 'ToEnvelope', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Trait <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>dev</a>::<wbr><a class="trait" href=''>ToEnvelope</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait ToEnvelope<A, M> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a> + <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>,<br> <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.ToEnvelope.html" title="trait actix_web::actix::actix::dev::ToEnvelope">ToEnvelope</a><A, M>, </span>{
|
||||
fn <a href='#tymethod.pack' class='fnname'>pack</a>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A>;
|
||||
}</pre></div><div class='docblock'><p>Converter trait, packs message to suitable envelope</p>
|
||||
</div>
|
||||
<h2 id='required-methods' class='small-section-header'>
|
||||
Required Methods<a href='#required-methods' class='anchor'></a>
|
||||
</h2>
|
||||
<div class='methods'>
|
||||
<h3 id='tymethod.pack' class='method'><span id='pack.v' class='invisible'><code>fn <a href='#tymethod.pack' class='fnname'>pack</a>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A></code></span></h3><div class='docblock'><p>Pack message into suitable envelope</p>
|
||||
<h3 id='tymethod.pack' class='method'><span id='pack.v' class='invisible'><code>fn <a href='#tymethod.pack' class='fnname'>pack</a>(msg: M, tx: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="https://docs.rs/futures/0.1/futures/sync/oneshot/struct.Sender.html" title="struct futures::sync::oneshot::Sender">Sender</a><<M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>>>) -> <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.Envelope.html" title="struct actix_web::actix::actix::dev::Envelope">Envelope</a><A></code></span></h3><div class='docblock'><p>Pack message into suitable envelope</p>
|
||||
</div></div>
|
||||
<h2 id='implementors' class='small-section-header'>
|
||||
Implementors<a href='#implementors' class='anchor'></a>
|
||||
</h2>
|
||||
<ul class='item-list' id='implementors-list'>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M, S> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/struct.HttpContext.html" title="struct actix_web::HttpContext">HttpContext</a><A, S> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/struct.HttpContext.html" title="struct actix_web::HttpContext">HttpContext</a><A, S>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> M::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td><div class='out-of-band'><a class='srclink' href='../../../../src/actix_web/context.rs.html#256-265' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.SyncContext.html" title="struct actix_web::actix::actix::dev::SyncContext">SyncContext</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/dev/struct.SyncContext.html" title="struct actix_web::actix::actix::dev::SyncContext">SyncContext</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M, S> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/ws/struct.WebsocketContext.html" title="struct actix_web::ws::WebsocketContext">WebsocketContext</a><A, S> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/ws/struct.WebsocketContext.html" title="struct actix_web::ws::WebsocketContext">WebsocketContext</a><A, S>> + <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Handler.html" title="trait actix_web::actix::actix::dev::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/dev/trait.Message.html" title="trait actix_web::actix::actix::dev::Message">ActixMessage</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> M::<a class="type" href="../../../../actix_web/actix/actix/dev/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::dev::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td><div class='out-of-band'><a class='srclink' href='../../../../src/actix_web/ws/context.rs.html#325-334' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M, S> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/struct.HttpContext.html" title="struct actix_web::HttpContext">HttpContext</a><A, S> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/struct.HttpContext.html" title="struct actix_web::HttpContext">HttpContext</a><A, S>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> M::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td><div class='out-of-band'><a class='srclink' href='../../../../src/actix_web/context.rs.html#256-265' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/actix/actix/struct.SyncContext.html" title="struct actix_web::actix::actix::SyncContext">SyncContext</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.SyncContext.html" title="struct actix_web::actix::actix::SyncContext">SyncContext</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/actix/actix/struct.Context.html" title="struct actix_web::actix::actix::Context">Context</a><A>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> <M as <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">Message</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td></td></tr></tbody></table></li>
|
||||
<li><table class='table-display'><tbody><tr><td><code>impl<A, M, S> ToEnvelope<A, M> for <a class="struct" href="../../../../actix_web/ws/struct.WebsocketContext.html" title="struct actix_web::ws::WebsocketContext">WebsocketContext</a><A, S> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a><Context = <a class="struct" href="../../../../actix_web/ws/struct.WebsocketContext.html" title="struct actix_web::ws::WebsocketContext">WebsocketContext</a><A, S>> + <a class="trait" href="../../../../actix_web/actix/actix/trait.Handler.html" title="trait actix_web::actix::actix::Handler">Handler</a><M>,<br> M: <a class="trait" href="../../../../actix_web/actix/actix/trait.Message.html" title="trait actix_web::actix::actix::Message">ActixMessage</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + 'static,<br> M::<a class="type" href="../../../../actix_web/actix/actix/trait.Message.html#associatedtype.Result" title="type actix_web::actix::actix::Message::Result">Result</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><td><div class='out-of-band'><a class='srclink' href='../../../../src/actix_web/ws/context.rs.html#325-334' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
|
||||
</ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
|
||||
src="../../../../implementors/actix/address/envelope/trait.ToEnvelope.js">
|
||||
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `ActorState` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ActorState"><title>actix_web::actix::actix::ActorState - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum ActorState</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Started">Started</a><a href="#variant.Running">Running</a><a href="#variant.Stopping">Stopping</a><a href="#variant.Stopped">Stopped</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.alive">alive</a><a href="#method.stopping">stopping</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a><a href="#impl-Clone">Clone</a><a href="#impl-PartialEq%3CActorState%3E">PartialEq<ActorState></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'ActorState', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>ActorState</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum ActorState {
|
||||
<!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="API documentation for the Rust `ActorState` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ActorState"><title>actix_web::actix::actix::ActorState - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum ActorState</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Started">Started</a><a href="#variant.Running">Running</a><a href="#variant.Stopping">Stopping</a><a href="#variant.Stopped">Stopped</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.alive">alive</a><a href="#method.stopping">stopping</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-PartialEq%3CActorState%3E">PartialEq<ActorState></a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'ActorState', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>ActorState</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum ActorState {
|
||||
Started,
|
||||
Running,
|
||||
Stopping,
|
||||
@ -20,13 +20,13 @@
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CActorState%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a>> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-PartialEq%3CActorState%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
<div id='implementations-list'><h3 id='impl-PartialEq%3CActorState%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a>> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-PartialEq%3CActorState%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code><div class="docblock attributes">#[must_use]
|
||||
</div>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#126' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div></div>
|
||||
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.ActorState.html" title="enum actix_web::actix::actix::ActorState">ActorState</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
</h2>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `MailboxError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, MailboxError"><title>actix_web::actix::actix::MailboxError - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum MailboxError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Closed">Closed</a><a href="#variant.Timeout">Timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Display">Display</a><a href="#impl-Debug">Debug</a><a href="#impl-Fail">Fail</a><a href="#impl-ResponseError">ResponseError</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'MailboxError', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>MailboxError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum MailboxError {
|
||||
<!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="API documentation for the Rust `MailboxError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, MailboxError"><title>actix_web::actix::actix::MailboxError - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum MailboxError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Closed">Closed</a><a href="#variant.Timeout">Timeout</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a><a href="#impl-Fail">Fail</a><a href="#impl-ResponseError">ResponseError</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'MailboxError', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>MailboxError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum MailboxError {
|
||||
Closed,
|
||||
Timeout,
|
||||
}</pre></div><div class='docblock'><p>Set of error that can occurred during message delivery process</p>
|
||||
@ -8,8 +8,8 @@
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.MailboxError.html" title="enum actix_web::actix::actix::MailboxError">MailboxError</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.MailboxError.html" title="enum actix_web::actix::actix::MailboxError">MailboxError</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.MailboxError.html" title="enum actix_web::actix::actix::MailboxError">MailboxError</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.MailboxError.html" title="enum actix_web::actix::actix::MailboxError">MailboxError</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Fail' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl Fail for <a class="enum" href="../../../actix_web/actix/actix/enum.MailboxError.html" title="enum actix_web::actix::actix::MailboxError">MailboxError</a></code><a href='#impl-Fail' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.cause' class="method"><span id='cause.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.cause' class='fnname'>cause</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&(Fail + 'static)></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. <a href="#method.cause">Read more</a></p>
|
||||
</div><h4 id='method.backtrace' class="method"><span id='backtrace.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.backtrace' class='fnname'>backtrace</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&Backtrace></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a reference to the <code>Backtrace</code> carried by this failure, if it carries one. <a href="#method.backtrace">Read more</a></p>
|
||||
</div><h4 id='method.context' class="method"><span id='context.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.context' class='fnname'>context</a><D>(self, context: D) -> Context<D> <span class="where fmt-newline">where<br> D: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'static, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Provides context for this failure. <a href="#method.context">Read more</a></p>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `Running` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Running"><title>actix_web::actix::actix::Running - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum Running</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Stop">Stop</a><a href="#variant.Continue">Continue</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a><a href="#impl-Clone">Clone</a><a href="#impl-PartialEq%3CRunning%3E">PartialEq<Running></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'Running', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>Running</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum Running {
|
||||
<!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="API documentation for the Rust `Running` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Running"><title>actix_web::actix::actix::Running - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum Running</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Stop">Stop</a><a href="#variant.Continue">Continue</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-PartialEq%3CRunning%3E">PartialEq<Running></a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Copy">Copy</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'Running', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>Running</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum Running {
|
||||
Stop,
|
||||
Continue,
|
||||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||||
@ -7,13 +7,13 @@
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-PartialEq%3CRunning%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a>> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-PartialEq%3CRunning%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
<div id='implementations-list'><h3 id='impl-PartialEq%3CRunning%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a>> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-PartialEq%3CRunning%3E' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&self, other: &<a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
|
||||
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code><div class="docblock attributes">#[must_use]
|
||||
</div>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#126' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
|
||||
</div></div></div>
|
||||
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&self) -> <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
|
||||
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.0.0'>1.0.0</div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.Running.html" title="enum actix_web::actix::actix::Running">Running</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
</h2>
|
||||
|
@ -1,4 +1,4 @@
|
||||
<!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="API documentation for the Rust `SendError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, SendError"><title>actix_web::actix::actix::SendError - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum SendError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Full">Full</a><a href="#variant.Closed">Closed</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.into_inner">into_inner</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Display">Display</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'SendError', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>SendError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum SendError<T> {
|
||||
<!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="API documentation for the Rust `SendError` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, SendError"><title>actix_web::actix::actix::SendError - Rust</title><link rel="stylesheet" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script src="../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum SendError</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Full">Full</a><a href="#variant.Closed">Closed</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.into_inner">into_inner</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Display">Display</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'SendError', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../settings.html"><img src="../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../index.html'>actix_web</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>actix</a>::<wbr><a class="enum" href=''>SendError</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum SendError<T> {
|
||||
Full(T),
|
||||
Closed(T),
|
||||
}</pre></div><h2 id='variants' class='variants small-section-header'>
|
||||
@ -11,8 +11,8 @@
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.SendError.html" title="enum actix_web::actix::actix::SendError">SendError</a><T></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.SendError.html" title="enum actix_web::actix::actix::SendError">SendError</a><T></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.SendError.html" title="enum actix_web::actix::actix::SendError">SendError</a><T></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../../../actix_web/actix/actix/enum.SendError.html" title="enum actix_web::actix::actix::SendError">SendError</a><T></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&self, fmt: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></div>
|
||||
<h2 id='synthetic-implementations' class='small-section-header'>
|
||||
Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
|
||||
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.AndThen.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.AndThen.html">struct.AndThen.html</a>...</p>
|
||||
<script>location.replace("struct.AndThen.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.DropErr.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.DropErr.html">struct.DropErr.html</a>...</p>
|
||||
<script>location.replace("struct.DropErr.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=enum.Either.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="enum.Either.html">enum.Either.html</a>...</p>
|
||||
<script>location.replace("enum.Either.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Finish.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Finish.html">struct.Finish.html</a>...</p>
|
||||
<script>location.replace("struct.Finish.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.FromErr.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.FromErr.html">struct.FromErr.html</a>...</p>
|
||||
<script>location.replace("struct.FromErr.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.FutureResult.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.FutureResult.html">struct.FutureResult.html</a>...</p>
|
||||
<script>location.replace("struct.FutureResult.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.FutureWrap.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.FutureWrap.html">struct.FutureWrap.html</a>...</p>
|
||||
<script>location.replace("struct.FutureWrap.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=trait.IntoActorFuture.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="trait.IntoActorFuture.html">trait.IntoActorFuture.html</a>...</p>
|
||||
<script>location.replace("trait.IntoActorFuture.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Map.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Map.html">struct.Map.html</a>...</p>
|
||||
<script>location.replace("struct.Map.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.MapErr.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.MapErr.html">struct.MapErr.html</a>...</p>
|
||||
<script>location.replace("struct.MapErr.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamAndThen.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamAndThen.html">struct.StreamAndThen.html</a>...</p>
|
||||
<script>location.replace("struct.StreamAndThen.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamFinish.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamFinish.html">struct.StreamFinish.html</a>...</p>
|
||||
<script>location.replace("struct.StreamFinish.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamFold.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamFold.html">struct.StreamFold.html</a>...</p>
|
||||
<script>location.replace("struct.StreamFold.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamMap.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamMap.html">struct.StreamMap.html</a>...</p>
|
||||
<script>location.replace("struct.StreamMap.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamMapErr.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamMapErr.html">struct.StreamMapErr.html</a>...</p>
|
||||
<script>location.replace("struct.StreamMapErr.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamThen.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamThen.html">struct.StreamThen.html</a>...</p>
|
||||
<script>location.replace("struct.StreamThen.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamTimeout.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamTimeout.html">struct.StreamTimeout.html</a>...</p>
|
||||
<script>location.replace("struct.StreamTimeout.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.StreamWrap.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.StreamWrap.html">struct.StreamWrap.html</a>...</p>
|
||||
<script>location.replace("struct.StreamWrap.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Then.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Then.html">struct.Then.html</a>...</p>
|
||||
<script>location.replace("struct.Then.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=struct.Timeout.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="struct.Timeout.html">struct.Timeout.html</a>...</p>
|
||||
<script>location.replace("struct.Timeout.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,40 @@
|
||||
<!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="API documentation for the Rust `Either` enum in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Either"><title>actix_web::actix::actix::fut::Either - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Enum Either</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.A">A</a><a href="#variant.B">B</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.split">split</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'Either', ty: 'enum', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Enum <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="enum" href=''>Either</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust enum'>pub enum Either<A, B> {
|
||||
A(A),
|
||||
B(B),
|
||||
}</pre></div><div class='docblock'><p>Combines two different futures yielding the same item and error
|
||||
types into a single type.</p>
|
||||
</div><h2 id='variants' class='variants small-section-header'>
|
||||
Variants<a href='#variants' class='anchor'></a></h2>
|
||||
<span id="variant.A" class="variant small-section-header"><a href="#variant.A" class="anchor field"></a><span id='A.v' class='invisible'><code>A(A)</code></span></span><div class='docblock'><p>First branch of the type</p>
|
||||
</div><span id="variant.B" class="variant small-section-header"><a href="#variant.B" class="anchor field"></a><span id='B.v' class='invisible'><code>B(B)</code></span></span><div class='docblock'><p>Second branch of the type</p>
|
||||
</div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<T, A, B> <a class="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, A<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, B<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.split' class="method"><span id='split.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.split' class='fnname'>split</a>(self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T, <a class="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><A, B><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Splits out the homogeneous type from an either of tuples.</p>
|
||||
<p>This method is typically useful when combined with the <code>Future::select2</code>
|
||||
combinator.</p>
|
||||
</div></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B> <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> B: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a><Item = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Error = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>, </span></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a></code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> act: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, <br> ctx: &mut <<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>>, <B as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B> <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="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B> <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="enum" href="../../../../actix_web/actix/actix/fut/enum.Either.html" title="enum actix_web::actix::actix::fut::Either">Either</a><A, B> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=fn.err.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="fn.err.html">fn.err.html</a>...</p>
|
||||
<script>location.replace("fn.err.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,14 @@
|
||||
<!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="API documentation for the Rust `err` fn in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, err"><title>actix_web::actix::actix::fut::err - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'err', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="fn" href=''>err</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust fn'>pub fn err<T, E, A>(e: E) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FutureResult.html" title="struct actix_web::actix::actix::fut::FutureResult">FutureResult</a><T, E, A></pre><div class='docblock'><p>Creates a "leaf future" from an immediate value of a failed computation.</p>
|
||||
<p>The returned future is similar to <code>result</code> where it will immediately run a
|
||||
scheduled callback with the provided value.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::{<span class="ident">fut</span>, <span class="ident">Actor</span>, <span class="ident">Context</span>};
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">MyActor</span>;
|
||||
<span class="kw">impl</span> <span class="ident">Actor</span> <span class="kw">for</span> <span class="ident">MyActor</span> {
|
||||
<span class="kw">type</span> <span class="ident">Context</span> <span class="op">=</span> <span class="ident">Context</span><span class="op"><</span><span class="self">Self</span><span class="op">></span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">future_of_err_1</span> <span class="op">=</span> <span class="ident">fut</span>::<span class="ident">err</span>::<span class="op"><</span><span class="ident">u32</span>, <span class="ident">u32</span>, <span class="ident">MyActor</span><span class="op">></span>(<span class="number">1</span>);</pre>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,16 @@
|
||||
<!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="API documentation for the Rust `ok` fn in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, ok"><title>actix_web::actix::actix::fut::ok - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'ok', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="fn" href=''>ok</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust fn'>pub fn ok<T, E, S>(t: T) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FutureResult.html" title="struct actix_web::actix::actix::fut::FutureResult">FutureResult</a><T, E, S></pre><div class='docblock'><p>Creates a "leaf future" from an immediate value of a finished and
|
||||
successful computation.</p>
|
||||
<p>The returned future is similar to <code>result</code> where it will immediately run a
|
||||
scheduled callback with the provided value.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::<span class="ident">fut</span>::<span class="kw-2">*</span>;
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::{<span class="ident">Actor</span>, <span class="ident">Context</span>};
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">MyActor</span>;
|
||||
<span class="kw">impl</span> <span class="ident">Actor</span> <span class="kw">for</span> <span class="ident">MyActor</span> {
|
||||
<span class="kw">type</span> <span class="ident">Context</span> <span class="op">=</span> <span class="ident">Context</span><span class="op"><</span><span class="self">Self</span><span class="op">></span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">future_of_1</span> <span class="op">=</span> <span class="ident">ok</span>::<span class="op"><</span><span class="ident">u32</span>, <span class="ident">u32</span>, <span class="ident">MyActor</span><span class="op">></span>(<span class="number">1</span>);</pre>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,16 @@
|
||||
<!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="API documentation for the Rust `result` fn in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, result"><title>actix_web::actix::actix::fut::result - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'result', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="fn" href=''>result</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust fn'>pub fn result<T, E, A>(r: <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, E>) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FutureResult.html" title="struct actix_web::actix::actix::fut::FutureResult">FutureResult</a><T, E, A></pre><div class='docblock'><p>Creates a new "leaf future" which will resolve with the given result.</p>
|
||||
<p>The returned future represents a computation which is finished immediately.
|
||||
This can be useful with the <code>finished</code> and <code>failed</code> base future types to
|
||||
convert an immediate value to a future to interoperate elsewhere.</p>
|
||||
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
|
||||
<pre class="rust rust-example-rendered">
|
||||
<span class="kw">use</span> <span class="ident">actix</span>::{<span class="ident">fut</span>, <span class="ident">Actor</span>, <span class="ident">Context</span>};
|
||||
|
||||
<span class="kw">struct</span> <span class="ident">MyActor</span>;
|
||||
<span class="kw">impl</span> <span class="ident">Actor</span> <span class="kw">for</span> <span class="ident">MyActor</span> {
|
||||
<span class="kw">type</span> <span class="ident">Context</span> <span class="op">=</span> <span class="ident">Context</span><span class="op"><</span><span class="self">Self</span><span class="op">></span>;
|
||||
}
|
||||
|
||||
<span class="kw">let</span> <span class="ident">future_of_1</span> <span class="op">=</span> <span class="ident">fut</span>::<span class="ident">result</span>::<span class="op"><</span><span class="ident">u32</span>, <span class="ident">u32</span>, <span class="ident">MyActor</span><span class="op">></span>(<span class="prelude-val">Ok</span>(<span class="number">1</span>));
|
||||
<span class="kw">let</span> <span class="ident">future_of_err_2</span> <span class="op">=</span> <span class="ident">fut</span>::<span class="ident">result</span>::<span class="op"><</span><span class="ident">u32</span>, <span class="ident">u32</span>, <span class="ident">MyActor</span><span class="op">></span>(<span class="prelude-val">Err</span>(<span class="number">2</span>));</pre>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,2 @@
|
||||
<!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="API documentation for the Rust `wrap_future` fn in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, wrap_future"><title>actix_web::actix::actix::fut::wrap_future - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'wrap_future', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="fn" href=''>wrap_future</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust fn'>pub fn wrap_future<F, A>(f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FutureWrap.html" title="struct actix_web::actix::actix::fut::FutureWrap">FutureWrap</a><F, A> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html" title="trait futures::future::Future">Future</a>, </span></pre><div class='docblock'><p>Converts normal future into <code>ActorFuture</code></p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,2 @@
|
||||
<!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="API documentation for the Rust `wrap_stream` fn in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, wrap_stream"><title>actix_web::actix::actix::fut::wrap_stream - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc fn"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><div class="sidebar-elems"><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'wrap_stream', ty: 'fn', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Function <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="fn" href=''>wrap_stream</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><pre class='rust fn'>pub fn wrap_stream<S, A>(s: S) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.StreamWrap.html" title="struct actix_web::actix::actix::fut::StreamWrap">StreamWrap</a><S, A> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>, </span></pre><div class='docblock'><p>Converts normal stream into <code>ActorStream</code></p>
|
||||
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
215
static/api/actix-web/stable/actix_web/actix/actix/fut/index.html
Normal file
215
static/api/actix-web/stable/actix_web/actix/actix/fut/index.html
Normal file
@ -0,0 +1,215 @@
|
||||
<!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="API documentation for the Rust `fut` mod in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, fut"><title>actix_web::actix::actix::fut - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc mod"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Module fut</p><div class="sidebar-elems"><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#enums">Enums</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a></p><script>window.sidebarCurrent = {name: 'fut', ty: 'mod', relpath: '../'};</script><script defer src="../sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Module <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a class="mod" href=''>fut</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class='docblock'><p>Custom <code>Future</code> implementation with <code>Actix</code> support</p>
|
||||
</div><h2 id='structs' class='section-header'><a href="#structs">Structs</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.AndThen.html"
|
||||
title='struct actix_web::actix::actix::fut::AndThen'>AndThen</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>and_then</code> combinator, chaining a computation onto the end of
|
||||
another future which completes successfully.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.DropErr.html"
|
||||
title='struct actix_web::actix::actix::fut::DropErr'>DropErr</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Finish.html"
|
||||
title='struct actix_web::actix::actix::fut::Finish'>Finish</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A combinator used to convert stream into a future, future resolves
|
||||
when stream completes.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.FromErr.html"
|
||||
title='struct actix_web::actix::actix::fut::FromErr'>FromErr</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>from_err</code> combinator, changing the error type of a future.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.FutureResult.html"
|
||||
title='struct actix_web::actix::actix::fut::FutureResult'>FutureResult</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A future representing a value that is immediately ready.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.FutureWrap.html"
|
||||
title='struct actix_web::actix::actix::fut::FutureWrap'>FutureWrap</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Map.html"
|
||||
title='struct actix_web::actix::actix::fut::Map'>Map</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>map</code> combinator, changing the type of a future.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.MapErr.html"
|
||||
title='struct actix_web::actix::actix::fut::MapErr'>MapErr</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>map_err</code> combinator, changing the error type of a future.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamAndThen.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamAndThen'>StreamAndThen</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A stream combinator which chains a computation onto values produced by a
|
||||
stream.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamFinish.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamFinish'>StreamFinish</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A combinator used to convert stream into a future, future resolves
|
||||
when stream completes.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamFold.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamFold'>StreamFold</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A future used to collect all the results of a stream into one generic type.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamMap.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamMap'>StreamMap</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A stream combinator which will change the type of a stream from one
|
||||
type to another.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamMapErr.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamMapErr'>StreamMapErr</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A stream combinator which will change the error type of a stream from one
|
||||
type to another.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamThen.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamThen'>StreamThen</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>A stream combinator which chains a computation onto each item produced by a
|
||||
stream.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamTimeout.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamTimeout'>StreamTimeout</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>timeout</code> combinator, interrupts computations if it takes
|
||||
more than <code>timeout</code>.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.StreamWrap.html"
|
||||
title='struct actix_web::actix::actix::fut::StreamWrap'>StreamWrap</a></td>
|
||||
<td class='docblock-short'>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Then.html"
|
||||
title='struct actix_web::actix::actix::fut::Then'>Then</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>then</code> combinator, chaining computations on the end of
|
||||
another future regardless of its outcome.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="struct" href="struct.Timeout.html"
|
||||
title='struct actix_web::actix::actix::fut::Timeout'>Timeout</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Future for the <code>timeout</code> combinator, interrupts computations if it takes
|
||||
more than <code>timeout</code>.</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='enums' class='section-header'><a href="#enums">Enums</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="enum" href="enum.Either.html"
|
||||
title='enum actix_web::actix::actix::fut::Either'>Either</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Combines two different futures yielding the same item and error
|
||||
types into a single type.</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='traits' class='section-header'><a href="#traits">Traits</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="trait" href="trait.IntoActorFuture.html"
|
||||
title='trait actix_web::actix::actix::fut::IntoActorFuture'>IntoActorFuture</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Class of types which can be converted into an actor future.</p>
|
||||
|
||||
</td>
|
||||
</tr></table><h2 id='functions' class='section-header'><a href="#functions">Functions</a></h2>
|
||||
<table>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="fn" href="fn.err.html"
|
||||
title='fn actix_web::actix::actix::fut::err'>err</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Creates a "leaf future" from an immediate value of a failed computation.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="fn" href="fn.ok.html"
|
||||
title='fn actix_web::actix::actix::fut::ok'>ok</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Creates a "leaf future" from an immediate value of a finished and
|
||||
successful computation.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="fn" href="fn.result.html"
|
||||
title='fn actix_web::actix::actix::fut::result'>result</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Creates a new "leaf future" which will resolve with the given result.</p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="fn" href="fn.wrap_future.html"
|
||||
title='fn actix_web::actix::actix::fut::wrap_future'>wrap_future</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Converts normal future into <code>ActorFuture</code></p>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<tr class=' module-item'>
|
||||
<td><a class="fn" href="fn.wrap_stream.html"
|
||||
title='fn actix_web::actix::actix::fut::wrap_stream'>wrap_stream</a></td>
|
||||
<td class='docblock-short'>
|
||||
<p>Converts normal stream into <code>ActorStream</code></p>
|
||||
|
||||
</td>
|
||||
</tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=fn.ok.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="fn.ok.html">fn.ok.html</a>...</p>
|
||||
<script>location.replace("fn.ok.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=fn.result.html">
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="fn.result.html">fn.result.html</a>...</p>
|
||||
<script>location.replace("fn.result.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1 @@
|
||||
initSidebarItems({"enum":[["Either","Combines two different futures yielding the same item and error types into a single type."]],"fn":[["err","Creates a \"leaf future\" from an immediate value of a failed computation."],["ok","Creates a \"leaf future\" from an immediate value of a finished and successful computation."],["result","Creates a new \"leaf future\" which will resolve with the given result."],["wrap_future","Converts normal future into `ActorFuture`"],["wrap_stream","Converts normal stream into `ActorStream`"]],"struct":[["AndThen","Future for the `and_then` combinator, chaining a computation onto the end of another future which completes successfully."],["DropErr",""],["Finish","A combinator used to convert stream into a future, future resolves when stream completes."],["FromErr","Future for the `from_err` combinator, changing the error type of a future."],["FutureResult","A future representing a value that is immediately ready."],["FutureWrap",""],["Map","Future for the `map` combinator, changing the type of a future."],["MapErr","Future for the `map_err` combinator, changing the error type of a future."],["StreamAndThen","A stream combinator which chains a computation onto values produced by a stream."],["StreamFinish","A combinator used to convert stream into a future, future resolves when stream completes."],["StreamFold","A future used to collect all the results of a stream into one generic type."],["StreamMap","A stream combinator which will change the type of a stream from one type to another."],["StreamMapErr","A stream combinator which will change the error type of a stream from one type to another."],["StreamThen","A stream combinator which chains a computation onto each item produced by a stream."],["StreamTimeout","Future for the `timeout` combinator, interrupts computations if it takes more than `timeout`."],["StreamWrap",""],["Then","Future for the `then` combinator, chaining computations on the end of another future regardless of its outcome."],["Timeout","Future for the `timeout` combinator, interrupts computations if it takes more than `timeout`."]],"trait":[["IntoActorFuture","Class of types which can be converted into an actor future."]]});
|
@ -0,0 +1,28 @@
|
||||
<!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="API documentation for the Rust `AndThen` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, AndThen"><title>actix_web::actix::actix::fut::AndThen - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct AndThen</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'AndThen', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="struct" href=''>AndThen</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'><div class="docblock attributes">#[must_use = "futures do nothing unless polled"]
|
||||
</div>pub struct AndThen<A, B, F> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>, </span> { /* fields omitted */ }</pre></div><div class='docblock'><p>Future for the <code>and_then</code> combinator, chaining a computation onto the end of
|
||||
another future which completes successfully.</p>
|
||||
<p>This is created by the <code>Future::and_then</code> method.</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B, F> <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><A, B, F> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, Error = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>,<br> 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>(<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::fut::IntoActorFuture::Item">Item</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::fut::IntoActorFuture::Error">Error</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a></code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> act: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, <br> ctx: &mut <<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::fut::IntoActorFuture::Item">Item</a>>, <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::fut::IntoActorFuture::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><A, B, F> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,<br> <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Future" title="type actix_web::actix::actix::fut::IntoActorFuture::Future">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B, F> <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="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><A, B, F> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Future" title="type actix_web::actix::actix::fut::IntoActorFuture::Future">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, B, F> <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="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><A, B, F> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> <B as <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html#associatedtype.Future" title="type actix_web::actix::actix::fut::IntoActorFuture::Future">Future</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,23 @@
|
||||
<!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="API documentation for the Rust `DropErr` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, DropErr"><title>actix_web::actix::actix::fut::DropErr - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct DropErr</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'DropErr', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="struct" href=''>DropErr</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'>pub struct DropErr<A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>, </span> { /* fields omitted */ }</pre></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>, </span></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a></code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> act: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, <br> ctx: &mut <<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <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="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A> <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="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><A> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,44 @@
|
||||
<!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="API documentation for the Rust `Finish` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, Finish"><title>actix_web::actix::actix::fut::Finish - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct Finish</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Debug">Debug</a><a href="#impl-Future">Future</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'Finish', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="struct" href=''>Finish</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'><div class="docblock attributes">#[must_use = "streams do nothing unless polled"]
|
||||
</div>pub struct Finish<S>(_);</pre></div><div class='docblock'><p>A combinator used to convert stream into a future, future resolves
|
||||
when stream completes.</p>
|
||||
<p>This structure is produced by the <code>Stream::finish</code> method.</p>
|
||||
</div>
|
||||
<h2 id='methods' class='small-section-header'>
|
||||
Methods<a href='#methods' class='anchor'></a>
|
||||
</h2>
|
||||
<h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<S> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.new' class="method"><span id='new.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.new' class='fnname'>new</a>(s: S) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S></code></td><td></td></tr></tbody></table></span></h4></div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<S> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div><h3 id='impl-Future' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<S> <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html" title="trait futures::future::Future">Future</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>, </span></code><a href='#impl-Future' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item' class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error' class="type">Error</a> = <S as <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#tymethod.poll' class='fnname'>poll</a>(&mut self) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>>, <S as <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Query this future to see if its value has become available, registering interest if it is not. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#tymethod.poll">Read more</a></p>
|
||||
</div><h4 id='method.wait' class="method"><span id='wait.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.wait' class='fnname'>wait</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#296-300' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Block the current thread until this future is resolved. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.wait">Read more</a></p>
|
||||
</div><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/map/struct.Map.html" title="struct futures::future::map::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>) -> U, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#370-375' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/map_err/struct.MapErr.html" title="struct futures::future::map_err::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>) -> E, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#410-415' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.map_err">Read more</a></p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/from_err/struct.FromErr.html" title="struct futures::future::from_err::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#440-444' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/then/struct.Then.html" title="struct futures::future::then::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>) -> B, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#484-490' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/and_then/struct.AndThen.html" title="struct futures::future::and_then::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> 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>(Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>) -> B, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#525-531' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.and_then">Read more</a></p>
|
||||
</div><h4 id='method.or_else' class="method"><span id='or_else.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.or_else' class='fnname'>or_else</a><F, B>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/or_else/struct.OrElse.html" title="struct futures::future::or_else::OrElse">OrElse</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Item = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>>,<br> 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>(Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>) -> B, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#566-572' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future if this one resolves with an error. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.or_else">Read more</a></p>
|
||||
</div><h4 id='method.select' class="method"><span id='select.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.select' class='fnname'>select</a><B>(self, other: B) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/select/struct.Select.html" title="struct futures::future::select::Select">Select</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Item = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>, Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#624-631' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Waits for either one of two futures to complete. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.select">Read more</a></p>
|
||||
</div><h4 id='method.select2' class="method"><span id='select2.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.select2' class='fnname'>select2</a><B>(self, other: B) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/select2/struct.Select2.html" title="struct futures::future::select2::Select2">Select2</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#670-674' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Waits for either one of two differently-typed futures to complete. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.select2">Read more</a></p>
|
||||
</div><h4 id='method.join' class="method"><span id='join.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.join' class='fnname'>join</a><B>(self, other: B) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/join/struct.Join.html" title="struct futures::future::join::Join">Join</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#715-721' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Joins the result of two futures, waiting for them both to complete. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.join">Read more</a></p>
|
||||
</div><h4 id='method.join3' class="method"><span id='join3.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.join3' class='fnname'>join3</a><B, C>(<br> self, <br> b: B, <br> c: C<br>) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/join/struct.Join3.html" title="struct futures::future::join::Join3">Join3</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <C as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> C: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#724-730' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
|
||||
</div><h4 id='method.join4' class="method"><span id='join4.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.join4' class='fnname'>join4</a><B, C, D>(<br> self, <br> b: B, <br> c: C, <br> d: D<br>) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/join/struct.Join4.html" title="struct futures::future::join::Join4">Join4</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <C as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <D as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> C: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> D: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#733-741' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
|
||||
</div><h4 id='method.join5' class="method"><span id='join5.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.join5' class='fnname'>join5</a><B, C, D, E>(<br> self, <br> b: B, <br> c: C, <br> d: D, <br> e: E<br>) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/join/struct.Join5.html" title="struct futures::future::join::Join5">Join5</a><Self, <B as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <C as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <D as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>, <E as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Future" title="type futures::future::IntoFuture::Future">Future</a>> <span class="where fmt-newline">where<br> B: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> C: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> D: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>,<br> E: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a><Error = Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#744-754' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Same as <code>join</code>, but with more futures.</p>
|
||||
</div><h4 id='method.into_stream' class="method"><span id='into_stream.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.into_stream' class='fnname'>into_stream</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/into_stream/struct.IntoStream.html" title="struct futures::future::into_stream::IntoStream">IntoStream</a><Self></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#777-781' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Convert this future into a single element stream. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.into_stream">Read more</a></p>
|
||||
</div><h4 id='method.flatten' class="method"><span id='flatten.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.flatten' class='fnname'>flatten</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/flatten/struct.Flatten.html" title="struct futures::future::flatten::Flatten">Flatten</a><Self> <span class="where fmt-newline">where<br> Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>: <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>,<br> <Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a> as <a class="trait" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html" title="trait futures::future::IntoFuture">IntoFuture</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.IntoFuture.html#associatedtype.Error" title="type futures::future::IntoFuture::Error">Error</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#819-829' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Flatten the execution of this future when the successful result of this future is itself another future. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.flatten">Read more</a></p>
|
||||
</div><h4 id='method.flatten_stream' class="method"><span id='flatten_stream.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.flatten_stream' class='fnname'>flatten_stream</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/flatten_stream/struct.FlattenStream.html" title="struct futures::future::flatten_stream::FlattenStream">FlattenStream</a><Self> <span class="where fmt-newline">where<br> Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>: <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>,<br> <Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a> as <a class="trait" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html" title="trait futures::stream::Stream">Stream</a>>::<a class="type" href="https://docs.rs/futures/0.1/futures/stream/trait.Stream.html#associatedtype.Error" title="type futures::stream::Stream::Error">Error</a> == Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Error" title="type futures::future::Future::Error">Error</a>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#859-864' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Flatten the execution of this future when the successful result of this future is a stream. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.flatten_stream">Read more</a></p>
|
||||
</div><h4 id='method.fuse' class="method"><span id='fuse.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.fuse' class='fnname'>fuse</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/fuse/struct.Fuse.html" title="struct futures::future::fuse::Fuse">Fuse</a><Self></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#899-904' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Fuse a future such that <code>poll</code> will never again be called once it has completed. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.fuse">Read more</a></p>
|
||||
</div><h4 id='method.inspect' class="method"><span id='inspect.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.inspect' class='fnname'>inspect</a><F>(self, f: F) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/inspect/struct.Inspect.html" title="struct futures::future::inspect::Inspect">Inspect</a><Self, F> <span class="where fmt-newline">where<br> 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>(&Self::<a class="type" href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#associatedtype.Item" title="type futures::future::Future::Item">Item</a>), </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#922-927' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Do something with the item of a future, passing it on. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.inspect">Read more</a></p>
|
||||
</div><h4 id='method.catch_unwind' class="method"><span id='catch_unwind.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.catch_unwind' class='fnname'>catch_unwind</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/catch_unwind/struct.CatchUnwind.html" title="struct futures::future::catch_unwind::CatchUnwind">CatchUnwind</a><Self> <span class="where fmt-newline">where<br> Self: <a class="trait" href="https://doc.rust-lang.org/nightly/std/panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>, </span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#961-965' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Catches unwinding panics while polling the future. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.catch_unwind">Read more</a></p>
|
||||
</div><h4 id='method.shared' class="method"><span id='shared.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.shared' class='fnname'>shared</a>(self) -> <a class="struct" href="https://docs.rs/futures/0.1/futures/future/shared/struct.Shared.html" title="struct futures::future::shared::Shared">Shared</a><Self></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://docs.rs/futures/0.1/src/futures/future/mod.rs.html#1010-1014' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Create a cloneable handle to this future where all handles will resolve to the same result. <a href="https://docs.rs/futures/0.1/futures/future/trait.Future.html#method.shared">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<S> <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="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<S> <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="../../../../actix_web/actix/actix/fut/struct.Finish.html" title="struct actix_web::actix::actix::fut::Finish">Finish</a><S> <span class="where fmt-newline">where<br> S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
@ -0,0 +1,27 @@
|
||||
<!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="API documentation for the Rust `FromErr` struct in crate `actix_web`."><meta name="keywords" content="rust, rustlang, rust-lang, FromErr"><title>actix_web::actix::actix::fut::FromErr - Rust</title><link rel="stylesheet" type="text/css" href="../../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../../dark.css"><link rel="stylesheet" type="text/css" href="../../../../light.css" id="themeStyle"><script src="../../../../storage.js"></script></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">☰</div><p class='location'>Struct FromErr</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-ActorFuture">ActorFuture</a><a href="#impl-Debug">Debug</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a></p><script>window.sidebarCurrent = {name: 'FromErr', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../../../../settings.html"><img src="../../../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Struct <a href='../../../index.html'>actix_web</a>::<wbr><a href='../../index.html'>actix</a>::<wbr><a href='../index.html'>actix</a>::<wbr><a href='index.html'>fut</a>::<wbr><a class="struct" href=''>FromErr</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span></span></h1><div class="docblock type-decl"><pre class='rust struct'><div class="docblock attributes">#[must_use = "futures do nothing unless polled"]
|
||||
</div>pub struct FromErr<A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>, </span> { /* fields omitted */ }</pre></div><div class='docblock'><p>Future for the <code>from_err</code> combinator, changing the error type of a future.</p>
|
||||
<p>This is created by the <code>Future::from_err</code> method.</p>
|
||||
</div>
|
||||
<h2 id='implementations' class='small-section-header'>
|
||||
Trait Implementations<a href='#implementations' class='anchor'></a>
|
||||
</h2>
|
||||
<div id='implementations-list'><h3 id='impl-ActorFuture' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, E> <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code><a href='#impl-ActorFuture' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item' class="type">Item</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a></code></span></h4>
|
||||
<div class='docblock'><p>The type of value that this future will resolved with if it is successful. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Error' class="type"><span id='Error.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error' class="type">Error</a> = E</code></span></h4>
|
||||
<div class='docblock'><p>The type of error that this future will resolve with if it fails in a normal fashion. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error">Read more</a></p>
|
||||
</div><h4 id='associatedtype.Actor' class="type"><span id='Actor.t' class='invisible'><code>type <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor' class="type">Actor</a> = <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a></code></span></h4>
|
||||
<div class='docblock'><p>The actor within which this future runs</p>
|
||||
</div><h4 id='method.poll' class="method"><span id='poll.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#tymethod.poll' class='fnname'>poll</a>(<br> &mut self, <br> act: &mut <A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, <br> ctx: &mut <<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a><br>) -> <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="https://docs.rs/futures/0.1/futures/poll/enum.Async.html" title="enum futures::poll::Async">Async</a><<A as <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>>, E></code></td><td></td></tr></tbody></table></span></h4><h4 id='method.map' class="method"><span id='map.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map' class='fnname'>map</a><F, U>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Map.html" title="struct actix_web::actix::actix::fut::Map">Map</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> U, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's result to a different type, returning a new future of the resulting type. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map">Read more</a></p>
|
||||
</div><h4 id='method.map_err' class="method"><span id='map_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.map_err' class='fnname'>map_err</a><F, E>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.MapErr.html" title="struct actix_web::actix::actix::fut::MapErr">MapErr</a><Self, F> <span class="where fmt-newline">where<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> E, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to a different error, returning a new future.</p>
|
||||
</div><h4 id='method.drop_err' class="method"><span id='drop_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.drop_err' class='fnname'>drop_err</a>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.DropErr.html" title="struct actix_web::actix::actix::fut::DropErr">DropErr</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Drop this future's error, returning a new future.</p>
|
||||
</div><h4 id='method.from_err' class="method"><span id='from_err.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err' class='fnname'>from_err</a><E>(self) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><Self, E> <span class="where fmt-newline">where<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Map this future's error to any error implementing <code>From</code> for this future's <code>Error</code>, returning a new future. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.from_err">Read more</a></p>
|
||||
</div><h4 id='method.then' class="method"><span id='then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then' class='fnname'>then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Then.html" title="struct actix_web::actix::actix::fut::Then">Then</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(<a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Chain on a computation for when a future finished, passing the result of the future to the provided closure <code>f</code>. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.then">Read more</a></p>
|
||||
</div><h4 id='method.and_then' class="method"><span id='and_then.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.and_then' class='fnname'>and_then</a><F, B>(self, f: F) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.AndThen.html" title="struct actix_web::actix::actix::fut::AndThen">AndThen</a><Self, B, F> <span class="where fmt-newline">where<br> B: <a class="trait" href="../../../../actix_web/actix/actix/fut/trait.IntoActorFuture.html" title="trait actix_web::actix::actix::fut::IntoActorFuture">IntoActorFuture</a><Error = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>, Actor = Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>>,<br> 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>(Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Item" title="type actix_web::actix::actix::ActorFuture::Item">Item</a>, &mut Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a>, &mut <Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Actor" title="type actix_web::actix::actix::ActorFuture::Actor">Actor</a> as <a class="trait" href="../../../../actix_web/actix/actix/trait.Actor.html" title="trait actix_web::actix::actix::Actor">Actor</a>>::<a class="type" href="../../../../actix_web/actix/actix/trait.Actor.html#associatedtype.Context" title="type actix_web::actix::actix::Actor::Context">Context</a>) -> B, </span></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Execute another future after this one has resolved successfully.</p>
|
||||
</div><h4 id='method.timeout' class="method"><span id='timeout.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout' class='fnname'>timeout</a>(self, timeout: <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>, err: Self::<a class="type" href="../../../../actix_web/actix/actix/trait.ActorFuture.html#associatedtype.Error" title="type actix_web::actix::actix::ActorFuture::Error">Error</a>) -> <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.Timeout.html" title="struct actix_web::actix::actix::fut::Timeout">Timeout</a><Self></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Add timeout to futures chain. <a href="../../../../actix_web/actix/actix/trait.ActorFuture.html#method.timeout">Read more</a></p>
|
||||
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, E> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> + <a class="trait" href="../../../../actix_web/actix/actix/trait.ActorFuture.html" title="trait actix_web::actix::actix::ActorFuture">ActorFuture</a>,<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Error.html" title="struct core::fmt::Error">Error</a>></code></td><td></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
|
||||
</div></div></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'>
|
||||
<h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, E> <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="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl<A, E> <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="../../../../actix_web/actix/actix/fut/struct.FromErr.html" title="struct actix_web::actix::actix::fut::FromErr">FromErr</a><A, E> <span class="where fmt-newline">where<br> A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> E: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../../../";window.currentCrate = "actix_web";</script><script src="../../../../aliases.js"></script><script src="../../../../main.js"></script><script defer src="../../../../search-index.js"></script></body></html>
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user