1
0
mirror of https://github.com/actix/actix-extras.git synced 2024-11-27 17:22:57 +01:00

Deploying to gh-pages from @ 90766e5d68 🚀

This commit is contained in:
robjtede 2022-07-31 14:23:22 +00:00
parent 0ce7fd4d9d
commit b51b005466
61 changed files with 1444 additions and 1325 deletions

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/struct.Address.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/struct.Address.html">../../../actix_settings/struct.Address.html</a>...</p>
<script>location.replace("../../../actix_settings/struct.Address.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.Backlog.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.Backlog.html">../../../actix_settings/enum.Backlog.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.Backlog.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.Backlog.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.Backlog.html">../../actix_settings/enum.Backlog.html</a>...</p>
<script>location.replace("../../actix_settings/enum.Backlog.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.KeepAlive.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.KeepAlive.html">../../actix_settings/enum.KeepAlive.html</a>...</p>
<script>location.replace("../../actix_settings/enum.KeepAlive.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.MaxConnectionRate.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.MaxConnectionRate.html">../../actix_settings/enum.MaxConnectionRate.html</a>...</p>
<script>location.replace("../../actix_settings/enum.MaxConnectionRate.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.MaxConnections.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.MaxConnections.html">../../actix_settings/enum.MaxConnections.html</a>...</p>
<script>location.replace("../../actix_settings/enum.MaxConnections.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.Mode.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.Mode.html">../../actix_settings/enum.Mode.html</a>...</p>
<script>location.replace("../../actix_settings/enum.Mode.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.NumWorkers.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.NumWorkers.html">../../actix_settings/enum.NumWorkers.html</a>...</p>
<script>location.replace("../../actix_settings/enum.NumWorkers.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/enum.Timeout.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/enum.Timeout.html">../../actix_settings/enum.Timeout.html</a>...</p>
<script>location.replace("../../actix_settings/enum.Timeout.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.KeepAlive.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.KeepAlive.html">../../../actix_settings/enum.KeepAlive.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.KeepAlive.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.MaxConnectionRate.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.MaxConnectionRate.html">../../../actix_settings/enum.MaxConnectionRate.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.MaxConnectionRate.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.MaxConnections.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.MaxConnections.html">../../../actix_settings/enum.MaxConnections.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.MaxConnections.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.Mode.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.Mode.html">../../../actix_settings/enum.Mode.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.Mode.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.NumWorkers.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.NumWorkers.html">../../../actix_settings/enum.NumWorkers.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.NumWorkers.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/struct.Address.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/struct.Address.html">../../actix_settings/struct.Address.html</a>...</p>
<script>location.replace("../../actix_settings/struct.Address.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -1,11 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../actix_settings/struct.Tls.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../actix_settings/struct.Tls.html">../../actix_settings/struct.Tls.html</a>...</p>
<script>location.replace("../../actix_settings/struct.Tls.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/enum.Timeout.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/enum.Timeout.html">../../../actix_settings/enum.Timeout.html</a>...</p>
<script>location.replace("../../../actix_settings/enum.Timeout.html" + location.search + location.hash);</script>
</body>
</html>

View File

@ -0,0 +1,11 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../../actix_settings/struct.Tls.html">
<title>Redirection</title>
</head>
<body>
<p>Redirecting to <a href="../../../actix_settings/struct.Tls.html">../../../actix_settings/struct.Tls.html</a>...</p>
<script>location.replace("../../../actix_settings/struct.Tls.html" + location.search + location.hash);</script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,3 @@
<!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 `actix_settings` crate."><meta name="keywords" content="rust, rustlang, rust-lang, actix_settings"><title>actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="../crates.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Crate actix_settings</a></h2><div class="sidebar-elems"><div class="block"><ul><li class="version">Version 0.5.2</li><li><a id="all-types" href="all.html">All Items</a></li></ul></div><section><div class="block"><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="#types">Type Definitions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">actix_settings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#1-705">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ActixSettings.html" title="actix_settings::ActixSettings struct">ActixSettings</a></div><div class="item-right docblock-short"><p>Settings types for Actix Web.</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="Easily manage Actix Webs settings from a TOML file and environment variables."><meta name="keywords" content="rust, rustlang, rust-lang, actix_settings"><title>actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="../crates.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Crate actix_settings</a></h2><div class="sidebar-elems"><div class="block"><ul><li class="version">Version 0.5.2</li><li><a id="all-types" href="all.html">All Items</a></li></ul></div><section><div class="block"><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="#types">Type Definitions</a></li></ul></div></section></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="#">actix_settings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#1-696">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Easily manage Actix Webs settings from a TOML file and environment variables.</p>
</div></details><h2 id="structs" class="small-section-header"><a href="#structs">Structs</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.ActixSettings.html" title="actix_settings::ActixSettings struct">ActixSettings</a></div><div class="item-right docblock-short"><p>Settings types for Actix Web.</p>
</div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Address.html" title="actix_settings::Address struct">Address</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.BasicSettings.html" title="actix_settings::BasicSettings struct">BasicSettings</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.NoSettings.html" title="actix_settings::NoSettings struct">NoSettings</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="struct" href="struct.Tls.html" title="actix_settings::Tls struct">Tls</a></div><div class="item-right docblock-short"></div></div></div><h2 id="enums" class="small-section-header"><a href="#enums">Enums</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.AtError.html" title="actix_settings::AtError enum">AtError</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Backlog.html" title="actix_settings::Backlog enum">Backlog</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.KeepAlive.html" title="actix_settings::KeepAlive enum">KeepAlive</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.MaxConnectionRate.html" title="actix_settings::MaxConnectionRate enum">MaxConnectionRate</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.MaxConnections.html" title="actix_settings::MaxConnections enum">MaxConnections</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Mode.html" title="actix_settings::Mode enum">Mode</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.NumWorkers.html" title="actix_settings::NumWorkers enum">NumWorkers</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="enum" href="enum.Timeout.html" title="actix_settings::Timeout enum">Timeout</a></div><div class="item-right docblock-short"></div></div></div><h2 id="traits" class="small-section-header"><a href="#traits">Traits</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.ApplySettings.html" title="actix_settings::ApplySettings trait">ApplySettings</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="trait" href="trait.Parse.html" title="actix_settings::Parse trait">Parse</a></div><div class="item-right docblock-short"></div></div></div><h2 id="types" class="small-section-header"><a href="#types">Type Definitions</a></h2><div class="item-table"><div class="item-row"><div class="item-left module-item"><a class="type" href="type.AtResult.html" title="actix_settings::AtResult type">AtResult</a></div><div class="item-right docblock-short"></div></div><div class="item-row"><div class="item-left module-item"><a class="type" href="type.Settings.html" title="actix_settings::Settings type">Settings</a></div><div class="item-right docblock-short"></div></div></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -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 `ApplySettings` trait in crate `actix_settings`."><meta name="keywords" content="rust, rustlang, rust-lang, ApplySettings"><title>ApplySettings in actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ApplySettings</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.apply_settings">apply_settings</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E">HttpServer&lt;F, I, S, B&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In actix_settings</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">actix_settings</a>::<wbr><a class="trait" href="#">ApplySettings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#124-132">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait ApplySettings {
<!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 `ApplySettings` trait in crate `actix_settings`."><meta name="keywords" content="rust, rustlang, rust-lang, ApplySettings"><title>ApplySettings in actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">ApplySettings</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><ul><li><a href="#tymethod.apply_settings">apply_settings</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul><li><a href="#impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E">HttpServer&lt;F, I, S, B&gt;</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div></section><h2 class="location"><a href="index.html">In actix_settings</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">actix_settings</a>::<wbr><a class="trait" href="#">ApplySettings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#128-136">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust trait"><code>pub trait ApplySettings {
fn <a href="#tymethod.apply_settings" class="fnname">apply_settings</a>&lt;A&gt;(self, settings: &amp;<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;A&gt;) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://docs.rs/serde/1.0.140/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a></span>;
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.apply_settings" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#129-131">source</a></div><h4 class="code-header">fn <a href="#tymethod.apply_settings" class="fnname">apply_settings</a>&lt;A&gt;(self, settings: &amp;<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;A&gt;) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://docs.rs/serde/1.0.140/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,&nbsp;</span></h4></div></summary><div class="docblock"><p>Apply a <a href="./struct.BasicSettings.html"><code>BasicSettings</code></a> value to <code>self</code>.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#134-213">source</a></span><a href="#impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;F, I, S, B&gt; <a class="trait" href="trait.ApplySettings.html" title="trait actix_settings::ApplySettings">ApplySettings</a> for HttpServer&lt;F, I, S, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -&gt; I + <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/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: IntoServiceFactory&lt;S, Request&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: ServiceFactory&lt;Request, Config = AppConfig&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Error: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;WebError&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::InitError: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Response: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Response&lt;B&gt;&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Future: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: MessageBody + 'static,&nbsp;</span></h3></section></summary><div class="impl-items"><section id="method.apply_settings" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#145-212">source</a></span><a href="#method.apply_settings" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.apply_settings" class="fnname">apply_settings</a>&lt;A&gt;(self, settings: &amp;<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;A&gt;) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://docs.rs/serde/1.0.140/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,&nbsp;</span></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../implementors/actix_settings/trait.ApplySettings.js" data-ignore-extern-crates="actix_web" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>
}</code></pre></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.apply_settings" class="method has-srclink"><div class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#133-135">source</a></div><h4 class="code-header">fn <a href="#tymethod.apply_settings" class="fnname">apply_settings</a>&lt;A&gt;(self, settings: &amp;<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;A&gt;) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://docs.rs/serde/1.0.140/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,&nbsp;</span></h4></div></summary><div class="docblock"><p>Apply a <a href="./struct.BasicSettings.html"><code>BasicSettings</code></a> value to <code>self</code>.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#138-217">source</a></span><a href="#impl-ApplySettings-for-HttpServer%3CF%2C%20I%2C%20S%2C%20B%3E" class="anchor"></a><h3 class="code-header in-band">impl&lt;F, I, S, B&gt; <a class="trait" href="trait.ApplySettings.html" title="trait actix_settings::ApplySettings">ApplySettings</a> for HttpServer&lt;F, I, S, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>() -&gt; I + <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/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: IntoServiceFactory&lt;S, Request&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: ServiceFactory&lt;Request, Config = AppConfig&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Error: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;WebError&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::InitError: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Response: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;Response&lt;B&gt;&gt; + 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;S::Future: 'static,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: MessageBody + 'static,&nbsp;</span></h3></section></summary><div class="impl-items"><section id="method.apply_settings" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/actix_settings/lib.rs.html#149-216">source</a></span><a href="#method.apply_settings" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.apply_settings" class="fnname">apply_settings</a>&lt;A&gt;(self, settings: &amp;<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;A&gt;) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://docs.rs/serde/1.0.140/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,&nbsp;</span></h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../implementors/actix_settings/trait.ApplySettings.js" data-ignore-extern-crates="actix_web" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
<!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 `Settings` type in crate `actix_settings`."><meta name="keywords" content="rust, rustlang, rust-lang, Settings"><title>Settings in actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Settings</a></h2><div class="sidebar-elems"><h2 class="location"><a href="index.html">In actix_settings</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">actix_settings</a>::<wbr><a class="type" href="#">Settings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#36">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>pub type Settings = <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;<a class="struct" href="struct.NoSettings.html" title="struct actix_settings::NoSettings">NoSettings</a>&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `Settings` type in crate `actix_settings`."><meta name="keywords" content="rust, rustlang, rust-lang, Settings"><title>Settings in actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><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="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Settings</a></h2><div class="sidebar-elems"><h2 class="location"><a href="index.html">In actix_settings</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../actix_settings/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">actix_settings</a>::<wbr><a class="type" href="#">Settings</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/actix_settings/lib.rs.html#40">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust typedef"><code>pub type Settings = <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a>&lt;<a class="struct" href="struct.NoSettings.html" title="struct actix_settings::NoSettings">NoSettings</a>&gt;;</code></pre></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
(function() {var implementors = {};
implementors["actix_session"] = [{"text":"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=\"enum\" href=\"actix_session/enum.SessionStatus.html\" title=\"enum actix_session::SessionStatus\">SessionStatus</a>","synthetic":false,"types":["actix_session::session::SessionStatus"]},{"text":"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_session/storage/struct.SessionKey.html\" title=\"struct actix_session::storage::SessionKey\">SessionKey</a>","synthetic":false,"types":["actix_session::storage::session_key::SessionKey"]}];
implementors["actix_settings"] = [{"text":"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_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"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_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::Address"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::Mode"]},{"text":"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=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::NumWorkers"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::Backlog"]},{"text":"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=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::MaxConnections"]},{"text":"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=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::MaxConnectionRate"]},{"text":"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=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::KeepAlive"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::Timeout"]},{"text":"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_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::Tls"]},{"text":"impl&lt;A:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>&gt; <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_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"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_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_settings"] = [{"text":"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_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::address::Address"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::backlog::Backlog"]},{"text":"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=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::keep_alive::KeepAlive"]},{"text":"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=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::max_connection_rate::MaxConnectionRate"]},{"text":"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=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::max_connections::MaxConnections"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::mode::Mode"]},{"text":"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=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::num_workers::NumWorkers"]},{"text":"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=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::timeout::Timeout"]},{"text":"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_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::tls::Tls"]},{"text":"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_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;A:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a>&gt; <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_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"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_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_web_httpauth"] = [{"text":"impl&lt;S:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> + <a class=\"trait\" href=\"actix_web_httpauth/headers/authorization/trait.Scheme.html\" title=\"trait actix_web_httpauth::headers::authorization::Scheme\">Scheme</a>&gt; <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_httpauth/headers/authorization/struct.Authorization.html\" title=\"struct actix_web_httpauth::headers::authorization::Authorization\">Authorization</a>&lt;S&gt;","synthetic":false,"types":["actix_web_httpauth::headers::authorization::header::Authorization"]},{"text":"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_httpauth/headers/authorization/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::authorization::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::basic::Basic"]},{"text":"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_httpauth/headers/authorization/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::authorization::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::bearer::Bearer"]},{"text":"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_httpauth/headers/www_authenticate/basic/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::basic::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::basic::Basic"]},{"text":"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_httpauth/headers/www_authenticate/bearer/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::bearer::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::challenge::Bearer"]},{"text":"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=\"enum\" href=\"actix_web_httpauth/extractors/bearer/enum.Error.html\" title=\"enum actix_web_httpauth::extractors::bearer::Error\">Error</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::errors::Error"]},{"text":"impl&lt;C:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> + <a class=\"trait\" href=\"actix_web_httpauth/headers/www_authenticate/trait.Challenge.html\" title=\"trait actix_web_httpauth::headers::www_authenticate::Challenge\">Challenge</a>&gt; <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_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::WwwAuthenticate\">WwwAuthenticate</a>&lt;C&gt;","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::header::WwwAuthenticate"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,4 @@
(function() {var implementors = {};
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::Tls"]},{"text":"impl&lt;A:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::address::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::backlog::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::keep_alive::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::max_connection_rate::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::max_connections::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::mode::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::num_workers::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::timeout::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::tls::Tls"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;A:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_web_httpauth"] = [{"text":"impl&lt;S:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> + <a class=\"trait\" href=\"actix_web_httpauth/headers/authorization/trait.Scheme.html\" title=\"trait actix_web_httpauth::headers::authorization::Scheme\">Scheme</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Authorization.html\" title=\"struct actix_web_httpauth::headers::authorization::Authorization\">Authorization</a>&lt;S&gt;","synthetic":false,"types":["actix_web_httpauth::headers::authorization::header::Authorization"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::basic::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::basic::Basic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::bearer::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::challenge::Bearer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"enum\" href=\"actix_web_httpauth/extractors/bearer/enum.Error.html\" title=\"enum actix_web_httpauth::extractors::bearer::Error\">Error</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::errors::Error"]},{"text":"impl&lt;C:&nbsp;<a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> + <a class=\"trait\" href=\"actix_web_httpauth/headers/www_authenticate/trait.Challenge.html\" title=\"trait actix_web_httpauth::headers::www_authenticate::Challenge\">Challenge</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::WwwAuthenticate\">WwwAuthenticate</a>&lt;C&gt;","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::header::WwwAuthenticate"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
(function() {var implementors = {};
implementors["actix_session"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_session/enum.SessionStatus.html\" title=\"enum actix_session::SessionStatus\">SessionStatus</a>","synthetic":false,"types":["actix_session::session::SessionStatus"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_session/storage/struct.SessionKey.html\" title=\"struct actix_session::storage::SessionKey\">SessionKey</a>","synthetic":false,"types":["actix_session::storage::session_key::SessionKey"]}];
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::Tls"]},{"text":"impl&lt;A&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::address::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::backlog::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::keep_alive::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::max_connection_rate::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::max_connections::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::mode::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::num_workers::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::timeout::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::tls::Tls"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;A&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_web_httpauth"] = [{"text":"impl&lt;S:&nbsp;<a class=\"trait\" href=\"actix_web_httpauth/headers/authorization/trait.Scheme.html\" title=\"trait actix_web_httpauth::headers::authorization::Scheme\">Scheme</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Authorization.html\" title=\"struct actix_web_httpauth::headers::authorization::Authorization\">Authorization</a>&lt;S&gt;","synthetic":false,"types":["actix_web_httpauth::headers::authorization::header::Authorization"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::authorization::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::basic::Basic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::authorization::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::bearer::Bearer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::basic::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::basic::Basic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::bearer::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::challenge::Bearer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"enum\" href=\"actix_web_httpauth/extractors/bearer/enum.Error.html\" title=\"enum actix_web_httpauth::extractors::bearer::Error\">Error</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::errors::Error"]},{"text":"impl&lt;C:&nbsp;<a class=\"trait\" href=\"actix_web_httpauth/headers/www_authenticate/trait.Challenge.html\" title=\"trait actix_web_httpauth::headers::www_authenticate::Challenge\">Challenge</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html\" title=\"trait core::marker::StructuralEq\">StructuralEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::WwwAuthenticate\">WwwAuthenticate</a>&lt;C&gt;","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::header::WwwAuthenticate"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

View File

@ -1,5 +1,5 @@
(function() {var implementors = {};
implementors["actix_session"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_session/enum.SessionStatus.html\" title=\"enum actix_session::SessionStatus\">SessionStatus</a>","synthetic":false,"types":["actix_session::session::SessionStatus"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_session/storage/struct.SessionKey.html\" title=\"struct actix_session::storage::SessionKey\">SessionKey</a>","synthetic":false,"types":["actix_session::storage::session_key::SessionKey"]}];
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::Tls"]},{"text":"impl&lt;A&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_settings"] = [{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::address::Address"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::backlog::Backlog"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::keep_alive::KeepAlive"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::max_connection_rate::MaxConnectionRate"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::max_connections::MaxConnections"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::mode::Mode"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::num_workers::NumWorkers"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::timeout::Timeout"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::tls::Tls"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;A&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt;","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_web_httpauth"] = [{"text":"impl&lt;S:&nbsp;<a class=\"trait\" href=\"actix_web_httpauth/headers/authorization/trait.Scheme.html\" title=\"trait actix_web_httpauth::headers::authorization::Scheme\">Scheme</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Authorization.html\" title=\"struct actix_web_httpauth::headers::authorization::Authorization\">Authorization</a>&lt;S&gt;","synthetic":false,"types":["actix_web_httpauth::headers::authorization::header::Authorization"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::authorization::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::basic::Basic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/authorization/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::authorization::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::authorization::scheme::bearer::Bearer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::basic::Basic\">Basic</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::basic::Basic"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::bearer::Bearer\">Bearer</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::challenge::Bearer"]},{"text":"impl <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"enum\" href=\"actix_web_httpauth/extractors/bearer/enum.Error.html\" title=\"enum actix_web_httpauth::extractors::bearer::Error\">Error</a>","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::challenge::bearer::errors::Error"]},{"text":"impl&lt;C:&nbsp;<a class=\"trait\" href=\"actix_web_httpauth/headers/www_authenticate/trait.Challenge.html\" title=\"trait actix_web_httpauth::headers::www_authenticate::Challenge\">Challenge</a>&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html\" title=\"trait core::marker::StructuralPartialEq\">StructuralPartialEq</a> for <a class=\"struct\" href=\"actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html\" title=\"struct actix_web_httpauth::headers::www_authenticate::WwwAuthenticate\">WwwAuthenticate</a>&lt;C&gt;","synthetic":false,"types":["actix_web_httpauth::headers::www_authenticate::header::WwwAuthenticate"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,3 @@
(function() {var implementors = {};
implementors["actix_settings"] = [{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::Address"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::Mode"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::NumWorkers"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::Backlog"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::MaxConnections"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::MaxConnectionRate"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::KeepAlive"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::Timeout"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::Tls"]},{"text":"impl&lt;'de, A&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt; <span class=\"where fmt-newline\">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt;,&nbsp;</span>","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
implementors["actix_settings"] = [{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.Address.html\" title=\"struct actix_settings::Address\">Address</a>","synthetic":false,"types":["actix_settings::actix::address::Address"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Backlog.html\" title=\"enum actix_settings::Backlog\">Backlog</a>","synthetic":false,"types":["actix_settings::actix::backlog::Backlog"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.KeepAlive.html\" title=\"enum actix_settings::KeepAlive\">KeepAlive</a>","synthetic":false,"types":["actix_settings::actix::keep_alive::KeepAlive"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.MaxConnectionRate.html\" title=\"enum actix_settings::MaxConnectionRate\">MaxConnectionRate</a>","synthetic":false,"types":["actix_settings::actix::max_connection_rate::MaxConnectionRate"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.MaxConnections.html\" title=\"enum actix_settings::MaxConnections\">MaxConnections</a>","synthetic":false,"types":["actix_settings::actix::max_connections::MaxConnections"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Mode.html\" title=\"enum actix_settings::Mode\">Mode</a>","synthetic":false,"types":["actix_settings::actix::mode::Mode"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.NumWorkers.html\" title=\"enum actix_settings::NumWorkers\">NumWorkers</a>","synthetic":false,"types":["actix_settings::actix::num_workers::NumWorkers"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"enum\" href=\"actix_settings/enum.Timeout.html\" title=\"enum actix_settings::Timeout\">Timeout</a>","synthetic":false,"types":["actix_settings::actix::timeout::Timeout"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.Tls.html\" title=\"struct actix_settings::Tls\">Tls</a>","synthetic":false,"types":["actix_settings::actix::tls::Tls"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.ActixSettings.html\" title=\"struct actix_settings::ActixSettings\">ActixSettings</a>","synthetic":false,"types":["actix_settings::actix::ActixSettings"]},{"text":"impl&lt;'de, A&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.BasicSettings.html\" title=\"struct actix_settings::BasicSettings\">BasicSettings</a>&lt;A&gt; <span class=\"where fmt-newline\">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt;,&nbsp;</span>","synthetic":false,"types":["actix_settings::BasicSettings"]},{"text":"impl&lt;'de&gt; <a class=\"trait\" href=\"https://docs.rs/serde/1.0.140/serde/de/trait.Deserialize.html\" title=\"trait serde::de::Deserialize\">Deserialize</a>&lt;'de&gt; for <a class=\"struct\" href=\"actix_settings/struct.NoSettings.html\" title=\"struct actix_settings::NoSettings\">NoSettings</a>","synthetic":false,"types":["actix_settings::NoSettings"]}];
if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})()

File diff suppressed because one or more lines are too long

View File

@ -5,6 +5,6 @@ sourcesIndex["actix_limitation"] = {"name":"","files":["builder.rs","errors.rs",
sourcesIndex["actix_protobuf"] = {"name":"","files":["lib.rs"]};
sourcesIndex["actix_redis"] = {"name":"","files":["lib.rs","redis.rs"]};
sourcesIndex["actix_session"] = {"name":"","dirs":[{"name":"storage","files":["cookie.rs","interface.rs","mod.rs","redis_actor.rs","redis_rs.rs","session_key.rs","utils.rs"]}],"files":["config.rs","lib.rs","middleware.rs","session.rs","session_ext.rs"]};
sourcesIndex["actix_settings"] = {"name":"","files":["actix.rs","core.rs","error.rs","lib.rs"]};
sourcesIndex["actix_settings"] = {"name":"","dirs":[{"name":"actix","files":["address.rs","backlog.rs","keep_alive.rs","max_connection_rate.rs","max_connections.rs","mode.rs","num_workers.rs","timeout.rs","tls.rs"]}],"files":["actix.rs","core.rs","error.rs","lib.rs"]};
sourcesIndex["actix_web_httpauth"] = {"name":"","dirs":[{"name":"extractors","files":["basic.rs","bearer.rs","config.rs","errors.rs","mod.rs"]},{"name":"headers","dirs":[{"name":"authorization","dirs":[{"name":"scheme","files":["basic.rs","bearer.rs","mod.rs"]}],"files":["errors.rs","header.rs","mod.rs"]},{"name":"www_authenticate","dirs":[{"name":"challenge","dirs":[{"name":"bearer","files":["builder.rs","challenge.rs","errors.rs","mod.rs"]}],"files":["basic.rs","mod.rs"]}],"files":["header.rs","mod.rs"]}],"files":["mod.rs"]}],"files":["lib.rs","middleware.rs","utils.rs"]};
createSourceSidebar();

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,180 @@
<!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="Source of the Rust file `actix-settings/src/actix/address.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>address.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
<span id="60">60</span>
<span id="61">61</span>
<span id="62">62</span>
<span id="63">63</span>
<span id="64">64</span>
<span id="65">65</span>
<span id="66">66</span>
<span id="67">67</span>
<span id="68">68</span>
<span id="69">69</span>
<span id="70">70</span>
<span id="71">71</span>
<span id="72">72</span>
<span id="73">73</span>
<span id="74">74</span>
<span id="75">75</span>
<span id="76">76</span>
<span id="77">77</span>
<span id="78">78</span>
<span id="79">79</span>
<span id="80">80</span>
<span id="81">81</span>
<span id="82">82</span>
<span id="83">83</span>
<span id="84">84</span>
<span id="85">85</span>
<span id="86">86</span>
<span id="87">87</span>
<span id="88">88</span>
<span id="89">89</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">once_cell::sync::Lazy</span>;
<span class="kw">use</span> <span class="ident">regex::Regex</span>;
<span class="kw">use</span> <span class="ident">serde::Deserialize</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="kw">static</span> <span class="ident">ADDR_REGEX</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">Regex::new</span>(
<span class="string">r#&quot;(?x)
\[ # opening square bracket
(\s)* # optional whitespace
&quot;(?P&lt;host&gt;[^&quot;]+)&quot; # host name (string)
, # separating comma
(\s)* # optional whitespace
(?P&lt;port&gt;\d+) # port number (integer)
(\s)* # optional whitespace
\] # closing square bracket
&quot;#</span>,
)
.<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: ADDR_REGEX&quot;</span>)
});
<span class="kw">static</span> <span class="ident">ADDR_LIST_REGEX</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">Regex::new</span>(
<span class="string">r#&quot;(?x)
\[ # opening square bracket (list)
(\s)* # optional whitespace
(?P&lt;elements&gt;(
\[&quot;.*&quot;, (\s)* \d+\] # element
(,)? # element separator
(\s)* # optional whitespace
)*)
(\s)* # optional whitespace
\] # closing square bracket (list)
&quot;#</span>,
)
.<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: ADDRS_REGEX&quot;</span>)
});
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>, <span class="ident">Deserialize</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Address</span> {
<span class="kw">pub</span> <span class="ident">host</span>: <span class="ident">String</span>,
<span class="kw">pub</span> <span class="ident">port</span>: <span class="ident">u16</span>,
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">Address</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">items</span> <span class="op">=</span> <span class="ident">string</span>
.<span class="ident">trim</span>()
.<span class="ident">trim_start_matches</span>(<span class="string">&#39;[&#39;</span>)
.<span class="ident">trim_end_matches</span>(<span class="string">&#39;]&#39;</span>)
.<span class="ident">split</span>(<span class="string">&#39;,&#39;</span>);
<span class="kw">let</span> <span class="ident">parse_error</span> <span class="op">=</span> <span class="op">|</span><span class="op">|</span> <span class="ident">AtError::ParseAddressError</span>(<span class="ident">string</span>.<span class="ident">to_string</span>());
<span class="kw">if</span> <span class="op">!</span><span class="ident">ADDR_REGEX</span>.<span class="ident">is_match</span>(<span class="ident">string</span>) {
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">parse_error</span>());
}
<span class="prelude-val">Ok</span>(<span class="self">Self</span> {
<span class="ident">host</span>: <span class="ident">items</span>.<span class="ident">next</span>().<span class="ident">ok_or_else</span>(<span class="ident">parse_error</span>)<span class="question-mark">?</span>.<span class="ident">trim</span>().<span class="ident">to_string</span>(),
<span class="ident">port</span>: <span class="ident">items</span>.<span class="ident">next</span>().<span class="ident">ok_or_else</span>(<span class="ident">parse_error</span>)<span class="question-mark">?</span>.<span class="ident">trim</span>().<span class="ident">parse</span>()<span class="question-mark">?</span>,
})
}
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">Vec</span><span class="op">&lt;</span><span class="ident">Address</span><span class="op">&gt;</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">parse_error</span> <span class="op">=</span> <span class="op">|</span><span class="op">|</span> <span class="ident">AtError::ParseAddressError</span>(<span class="ident">string</span>.<span class="ident">to_string</span>());
<span class="kw">if</span> <span class="op">!</span><span class="ident">ADDR_LIST_REGEX</span>.<span class="ident">is_match</span>(<span class="ident">string</span>) {
<span class="kw">return</span> <span class="prelude-val">Err</span>(<span class="ident">parse_error</span>());
}
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">addrs</span> <span class="op">=</span> <span class="macro">vec!</span>[];
<span class="kw">for</span> <span class="ident">list_caps</span> <span class="kw">in</span> <span class="ident">ADDR_LIST_REGEX</span>.<span class="ident">captures_iter</span>(<span class="ident">string</span>) {
<span class="kw">let</span> <span class="ident">elements</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">list_caps</span>[<span class="string">&quot;elements&quot;</span>].<span class="ident">trim</span>();
<span class="kw">for</span> <span class="ident">elt_caps</span> <span class="kw">in</span> <span class="ident">ADDR_REGEX</span>.<span class="ident">captures_iter</span>(<span class="ident">elements</span>) {
<span class="ident">addrs</span>.<span class="ident">push</span>(<span class="ident">Address</span> {
<span class="ident">host</span>: <span class="ident">elt_caps</span>[<span class="string">&quot;host&quot;</span>].<span class="ident">to_string</span>(),
<span class="ident">port</span>: <span class="ident">elt_caps</span>[<span class="string">&quot;port&quot;</span>].<span class="ident">parse</span>()<span class="question-mark">?</span>,
});
}
}
<span class="prelude-val">Ok</span>(<span class="ident">addrs</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,120 @@
<!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="Source of the Rust file `actix-settings/src/actix/backlog.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>backlog.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">Backlog</span> {
<span class="ident">Default</span>,
<span class="ident">Manual</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">Backlog</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">Backlog::Default</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> <span class="ident">string</span>.<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>() {
<span class="prelude-val">Ok</span>(<span class="ident">val</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">Backlog::Manual</span>(<span class="ident">val</span>)),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;an integer &gt; 0&quot;</span>,
<span class="ident">got</span>: <span class="ident">string</span>,
}),
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Backlog</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">BacklogVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">BacklogVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">Backlog</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot; or a string containing an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">Backlog::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">backlog</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">backlog</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">BacklogVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,166 @@
<!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="Source of the Rust file `actix-settings/src/actix/keep_alive.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>keep_alive.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
<span id="60">60</span>
<span id="61">61</span>
<span id="62">62</span>
<span id="63">63</span>
<span id="64">64</span>
<span id="65">65</span>
<span id="66">66</span>
<span id="67">67</span>
<span id="68">68</span>
<span id="69">69</span>
<span id="70">70</span>
<span id="71">71</span>
<span id="72">72</span>
<span id="73">73</span>
<span id="74">74</span>
<span id="75">75</span>
<span id="76">76</span>
<span id="77">77</span>
<span id="78">78</span>
<span id="79">79</span>
<span id="80">80</span>
<span id="81">81</span>
<span id="82">82</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">once_cell::sync::Lazy</span>;
<span class="kw">use</span> <span class="ident">regex::Regex</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">KeepAlive</span> {
<span class="ident">Default</span>,
<span class="ident">Disabled</span>,
<span class="ident">Os</span>,
<span class="ident">Seconds</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">KeepAlive</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">static</span> <span class="ident">FMT</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> <span class="ident">Regex::new</span>(<span class="string">r&quot;^\d+ seconds$&quot;</span>).<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: FMT&quot;</span>));
<span class="kw">pub</span>(<span class="kw">crate</span>) <span class="kw">static</span> <span class="ident">DIGITS</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> <span class="ident">Regex::new</span>(<span class="string">r&quot;^\d+&quot;</span>).<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: FMT&quot;</span>));
<span class="macro">macro_rules!</span> <span class="ident">invalid_value</span> {
(<span class="macro-nonterminal">$</span><span class="macro-nonterminal">got</span>:<span class="ident">expr</span>) =&gt; {
<span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;a string of the format \&quot;N seconds\&quot; where N is an integer &gt; 0&quot;</span>,
<span class="ident">got</span>: <span class="macro-nonterminal">$</span><span class="macro-nonterminal">got</span>,
})
};
}
<span class="kw">let</span> <span class="ident">digits_in</span> <span class="op">=</span> <span class="op">|</span><span class="ident">m</span>: <span class="ident">regex::Match</span><span class="op">|</span> <span class="kw-2">&amp;</span><span class="ident">string</span>[<span class="ident">m</span>.<span class="ident">start</span>()..<span class="ident">m</span>.<span class="ident">end</span>()];
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">KeepAlive::Default</span>),
<span class="string">&quot;disabled&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">KeepAlive::Disabled</span>),
<span class="string">&quot;OS&quot;</span> <span class="op">|</span> <span class="string">&quot;os&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">KeepAlive::Os</span>),
<span class="ident">string</span> <span class="kw">if</span> <span class="op">!</span><span class="ident">FMT</span>.<span class="ident">is_match</span>(<span class="ident">string</span>) =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> <span class="ident">DIGITS</span>.<span class="ident">find</span>(<span class="ident">string</span>) {
<span class="prelude-val">None</span> =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
<span class="prelude-val">Some</span>(<span class="ident">mat</span>) =&gt; <span class="kw">match</span> <span class="ident">digits_in</span>(<span class="ident">mat</span>).<span class="ident">parse</span>() {
<span class="prelude-val">Ok</span>(<span class="ident">val</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">KeepAlive::Seconds</span>(<span class="ident">val</span>)),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
},
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">KeepAlive</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">KeepAliveVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">KeepAliveVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">KeepAlive</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot;, \&quot;disabled\&quot;, \&quot;os\&quot;, or a string of the format \&quot;N seconds\&quot; where N is an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">KeepAlive::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">keep_alive</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">keep_alive</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">KeepAliveVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,120 @@
<!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="Source of the Rust file `actix-settings/src/actix/max_connection_rate.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>max_connection_rate.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">MaxConnectionRate</span> {
<span class="ident">Default</span>,
<span class="ident">Manual</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">MaxConnectionRate</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">MaxConnectionRate::Default</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> <span class="ident">string</span>.<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>() {
<span class="prelude-val">Ok</span>(<span class="ident">val</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">MaxConnectionRate::Manual</span>(<span class="ident">val</span>)),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;an integer &gt; 0&quot;</span>,
<span class="ident">got</span>: <span class="ident">string</span>,
}),
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">MaxConnectionRate</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">MaxConnectionRateVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">MaxConnectionRateVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">MaxConnectionRate</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot; or a string containing an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">MaxConnectionRate::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">max_connection_rate</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">max_connection_rate</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">MaxConnectionRateVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,120 @@
<!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="Source of the Rust file `actix-settings/src/actix/max_connections.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>max_connections.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">MaxConnections</span> {
<span class="ident">Default</span>,
<span class="ident">Manual</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">MaxConnections</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">MaxConnections::Default</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> <span class="ident">string</span>.<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>() {
<span class="prelude-val">Ok</span>(<span class="ident">val</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">MaxConnections::Manual</span>(<span class="ident">val</span>)),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;an integer &gt; 0&quot;</span>,
<span class="ident">got</span>: <span class="ident">string</span>,
}),
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">MaxConnections</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">MaxConnectionsVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">MaxConnectionsVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">MaxConnections</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot; or a string containing an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">MaxConnections::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">max_connections</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">max_connections</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">MaxConnectionsVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,52 @@
<!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="Source of the Rust file `actix-settings/src/actix/mode.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>mode.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">serde::Deserialize</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>, <span class="ident">Deserialize</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">Mode</span> {
<span class="attribute">#[<span class="ident">serde</span>(<span class="ident">rename</span> <span class="op">=</span> <span class="string">&quot;development&quot;</span>)]</span>
<span class="ident">Development</span>,
<span class="attribute">#[<span class="ident">serde</span>(<span class="ident">rename</span> <span class="op">=</span> <span class="string">&quot;production&quot;</span>)]</span>
<span class="ident">Production</span>,
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">Mode</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;development&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident"><span class="self">Self</span>::Development</span>),
<span class="string">&quot;production&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident"><span class="self">Self</span>::Production</span>),
<span class="kw">_</span> =&gt; <span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;\&quot;development\&quot; | \&quot;production\&quot;.&quot;</span>,
<span class="ident">got</span>: <span class="ident">string</span>,
}),
}
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,120 @@
<!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="Source of the Rust file `actix-settings/src/actix/num_workers.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>num_workers.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">NumWorkers</span> {
<span class="ident">Default</span>,
<span class="ident">Manual</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">NumWorkers</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">NumWorkers::Default</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> <span class="ident">string</span>.<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">usize</span><span class="op">&gt;</span>() {
<span class="prelude-val">Ok</span>(<span class="ident">val</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">NumWorkers::Manual</span>(<span class="ident">val</span>)),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;a positive integer&quot;</span>,
<span class="ident">got</span>: <span class="ident">string</span>,
}),
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">NumWorkers</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">NumWorkersVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">NumWorkersVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">NumWorkers</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot; or a string containing an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">NumWorkers::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">num_workers</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">num_workers</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">NumWorkersVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -0,0 +1,178 @@
<!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="Source of the Rust file `actix-settings/src/actix/timeout.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>timeout.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
<span id="12">12</span>
<span id="13">13</span>
<span id="14">14</span>
<span id="15">15</span>
<span id="16">16</span>
<span id="17">17</span>
<span id="18">18</span>
<span id="19">19</span>
<span id="20">20</span>
<span id="21">21</span>
<span id="22">22</span>
<span id="23">23</span>
<span id="24">24</span>
<span id="25">25</span>
<span id="26">26</span>
<span id="27">27</span>
<span id="28">28</span>
<span id="29">29</span>
<span id="30">30</span>
<span id="31">31</span>
<span id="32">32</span>
<span id="33">33</span>
<span id="34">34</span>
<span id="35">35</span>
<span id="36">36</span>
<span id="37">37</span>
<span id="38">38</span>
<span id="39">39</span>
<span id="40">40</span>
<span id="41">41</span>
<span id="42">42</span>
<span id="43">43</span>
<span id="44">44</span>
<span id="45">45</span>
<span id="46">46</span>
<span id="47">47</span>
<span id="48">48</span>
<span id="49">49</span>
<span id="50">50</span>
<span id="51">51</span>
<span id="52">52</span>
<span id="53">53</span>
<span id="54">54</span>
<span id="55">55</span>
<span id="56">56</span>
<span id="57">57</span>
<span id="58">58</span>
<span id="59">59</span>
<span id="60">60</span>
<span id="61">61</span>
<span id="62">62</span>
<span id="63">63</span>
<span id="64">64</span>
<span id="65">65</span>
<span id="66">66</span>
<span id="67">67</span>
<span id="68">68</span>
<span id="69">69</span>
<span id="70">70</span>
<span id="71">71</span>
<span id="72">72</span>
<span id="73">73</span>
<span id="74">74</span>
<span id="75">75</span>
<span id="76">76</span>
<span id="77">77</span>
<span id="78">78</span>
<span id="79">79</span>
<span id="80">80</span>
<span id="81">81</span>
<span id="82">82</span>
<span id="83">83</span>
<span id="84">84</span>
<span id="85">85</span>
<span id="86">86</span>
<span id="87">87</span>
<span id="88">88</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::fmt</span>;
<span class="kw">use</span> <span class="ident">once_cell::sync::Lazy</span>;
<span class="kw">use</span> <span class="ident">regex::Regex</span>;
<span class="kw">use</span> <span class="ident">serde::de</span>;
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">core::Parse</span>, <span class="ident">error::AtError</span>};
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>)]</span>
<span class="kw">pub</span> <span class="kw">enum</span> <span class="ident">Timeout</span> {
<span class="ident">Default</span>,
<span class="ident">Milliseconds</span>(<span class="ident">usize</span>),
<span class="ident">Seconds</span>(<span class="ident">usize</span>),
}
<span class="kw">impl</span> <span class="ident">Parse</span> <span class="kw">for</span> <span class="ident">Timeout</span> {
<span class="kw">fn</span> <span class="ident">parse</span>(<span class="ident">string</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="ident">std::result::Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">AtError</span><span class="op">&gt;</span> {
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">FMT</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">Regex::new</span>(<span class="string">r&quot;^\d+ (milliseconds|seconds)$&quot;</span>).<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: FMT&quot;</span>)
});
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">DIGITS</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span>
<span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> <span class="ident">Regex::new</span>(<span class="string">r&quot;^\d+&quot;</span>).<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: DIGITS&quot;</span>));
<span class="kw">pub</span> <span class="kw">static</span> <span class="ident">UNIT</span>: <span class="ident">Lazy</span><span class="op">&lt;</span><span class="ident">Regex</span><span class="op">&gt;</span> <span class="op">=</span> <span class="ident">Lazy::new</span>(<span class="op">|</span><span class="op">|</span> {
<span class="ident">Regex::new</span>(<span class="string">r&quot;(milliseconds|seconds)$&quot;</span>).<span class="ident">expect</span>(<span class="string">&quot;Failed to compile regex: UNIT&quot;</span>)
});
<span class="macro">macro_rules!</span> <span class="ident">invalid_value</span> {
(<span class="macro-nonterminal">$</span><span class="macro-nonterminal">got</span>:<span class="ident">expr</span>) =&gt; {
<span class="prelude-val">Err</span>(<span class="macro">InvalidValue!</span> {
<span class="ident">expected</span>: <span class="string">&quot;a string of the format \&quot;N seconds\&quot; or \&quot;N milliseconds\&quot; where N is an integer &gt; 0&quot;</span>,
<span class="ident">got</span>: <span class="macro-nonterminal">$</span><span class="macro-nonterminal">got</span>,
})
}
}
<span class="kw">match</span> <span class="ident">string</span> {
<span class="string">&quot;default&quot;</span> =&gt; <span class="prelude-val">Ok</span>(<span class="ident">Timeout::Default</span>),
<span class="ident">string</span> <span class="kw">if</span> <span class="op">!</span><span class="ident">FMT</span>.<span class="ident">is_match</span>(<span class="ident">string</span>) =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
<span class="ident">string</span> =&gt; <span class="kw">match</span> (<span class="ident">DIGITS</span>.<span class="ident">find</span>(<span class="ident">string</span>), <span class="ident">UNIT</span>.<span class="ident">find</span>(<span class="ident">string</span>)) {
(<span class="prelude-val">None</span>, <span class="kw">_</span>) =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
(<span class="kw">_</span>, <span class="prelude-val">None</span>) =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
(<span class="prelude-val">Some</span>(<span class="ident">dmatch</span>), <span class="prelude-val">Some</span>(<span class="ident">umatch</span>)) =&gt; {
<span class="kw">let</span> <span class="ident">digits</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">string</span>[<span class="ident">dmatch</span>.<span class="ident">start</span>()..<span class="ident">dmatch</span>.<span class="ident">end</span>()];
<span class="kw">let</span> <span class="ident">unit</span> <span class="op">=</span> <span class="kw-2">&amp;</span><span class="ident">string</span>[<span class="ident">umatch</span>.<span class="ident">start</span>()..<span class="ident">umatch</span>.<span class="ident">end</span>()];
<span class="kw">match</span> (<span class="ident">digits</span>.<span class="ident">parse</span>(), <span class="ident">unit</span>) {
(<span class="prelude-val">Ok</span>(<span class="ident">v</span>), <span class="string">&quot;milliseconds&quot;</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">Timeout::Milliseconds</span>(<span class="ident">v</span>)),
(<span class="prelude-val">Ok</span>(<span class="ident">v</span>), <span class="string">&quot;seconds&quot;</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">Timeout::Seconds</span>(<span class="ident">v</span>)),
<span class="kw">_</span> =&gt; <span class="macro">invalid_value!</span>(<span class="ident">string</span>),
}
}
},
}
}
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Deserialize</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">Timeout</span> {
<span class="kw">fn</span> <span class="ident">deserialize</span><span class="op">&lt;</span><span class="ident">D</span><span class="op">&gt;</span>(<span class="ident">deserializer</span>: <span class="ident">D</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="self">Self</span>, <span class="ident">D::Error</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">D</span>: <span class="ident">de::Deserializer</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span>,
{
<span class="kw">struct</span> <span class="ident">TimeoutVisitor</span>;
<span class="kw">impl</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="ident">de::Visitor</span><span class="op">&lt;</span><span class="lifetime">&#39;de</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">TimeoutVisitor</span> {
<span class="kw">type</span> <span class="ident">Value</span> <span class="op">=</span> <span class="ident">Timeout</span>;
<span class="kw">fn</span> <span class="ident">expecting</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">formatter</span>: <span class="kw-2">&amp;mut</span> <span class="ident">fmt::Formatter</span>) -&gt; <span class="ident">fmt::Result</span> {
<span class="kw">let</span> <span class="ident">msg</span> <span class="op">=</span> <span class="string">&quot;Either \&quot;default\&quot;, \&quot;disabled\&quot;, \&quot;os\&quot;, or a string of the format \&quot;N seconds\&quot; where N is an integer &gt; 0&quot;</span>;
<span class="ident">formatter</span>.<span class="ident">write_str</span>(<span class="ident">msg</span>)
}
<span class="kw">fn</span> <span class="ident">visit_str</span><span class="op">&lt;</span><span class="ident">E</span><span class="op">&gt;</span>(<span class="self">self</span>, <span class="ident">value</span>: <span class="kw-2">&amp;</span><span class="ident">str</span>) -&gt; <span class="prelude-ty">Result</span><span class="op">&lt;</span><span class="ident"><span class="self">Self</span>::Value</span>, <span class="ident">E</span><span class="op">&gt;</span>
<span class="kw">where</span>
<span class="ident">E</span>: <span class="ident">de::Error</span>,
{
<span class="kw">match</span> <span class="ident">Timeout::parse</span>(<span class="ident">value</span>) {
<span class="prelude-val">Ok</span>(<span class="ident">num_workers</span>) =&gt; <span class="prelude-val">Ok</span>(<span class="ident">num_workers</span>),
<span class="prelude-val">Err</span>(<span class="ident">AtError::InvalidValue</span> { <span class="ident">expected</span>, <span class="ident">got</span>, .. }) =&gt; <span class="prelude-val">Err</span>(
<span class="ident">de::Error::invalid_value</span>(<span class="ident">de::Unexpected::Str</span>(<span class="kw-2">&amp;</span><span class="ident">got</span>), <span class="kw-2">&amp;</span><span class="ident">expected</span>),
),
<span class="prelude-val">Err</span>(<span class="kw">_</span>) =&gt; <span class="macro">unreachable!</span>(),
}
}
}
<span class="ident">deserializer</span>.<span class="ident">deserialize_string</span>(<span class="ident">TimeoutVisitor</span>)
}
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -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="Source of the Rust file `actix-settings/src/actix/tls.rs`."><meta name="keywords" content="rust, rustlang, rust-lang"><title>tls.rs - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../SourceCodePro-Semibold.ttf.woff2"><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="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script defer src="../../../source-script.js"></script><script defer src="../../../source-files.js"></script><script defer src="../../../main.js"></script><noscript><link rel="stylesheet" href="../../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../../favicon.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../../actix_settings/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></div></a></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../actix_settings/index.html"><img class="rust-logo" src="../../../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="example-wrap"><pre class="line-numbers"><span id="1">1</span>
<span id="2">2</span>
<span id="3">3</span>
<span id="4">4</span>
<span id="5">5</span>
<span id="6">6</span>
<span id="7">7</span>
<span id="8">8</span>
<span id="9">9</span>
<span id="10">10</span>
<span id="11">11</span>
</pre><pre class="rust"><code><span class="kw">use</span> <span class="ident">std::path::PathBuf</span>;
<span class="kw">use</span> <span class="ident">serde::Deserialize</span>;
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Hash</span>, <span class="ident">Deserialize</span>)]</span>
<span class="attribute">#[<span class="ident">serde</span>(<span class="ident">rename_all</span> <span class="op">=</span> <span class="string">&quot;kebab-case&quot;</span>)]</span>
<span class="kw">pub</span> <span class="kw">struct</span> <span class="ident">Tls</span> {
<span class="kw">pub</span> <span class="ident">enabled</span>: <span class="ident">bool</span>,
<span class="kw">pub</span> <span class="ident">certificate</span>: <span class="ident">PathBuf</span>,
<span class="kw">pub</span> <span class="ident">private_key</span>: <span class="ident">PathBuf</span>,
}
</code></pre></div>
</section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="actix_settings" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0-nightly (0f4bcadb4 2022-07-30)" ></div></body></html>

View File

@ -694,16 +694,8 @@
<span id="694">694</span>
<span id="695">695</span>
<span id="696">696</span>
<span id="697">697</span>
<span id="698">698</span>
<span id="699">699</span>
<span id="700">700</span>
<span id="701">701</span>
<span id="702">702</span>
<span id="703">703</span>
<span id="704">704</span>
<span id="705">705</span>
</pre><pre class="rust"><code><span class="doccomment">/// A library to process Server.toml files</span>
</pre><pre class="rust"><code><span class="doccomment">//! Easily manage Actix Web&#39;s settings from a TOML file and environment variables.</span>
<span class="kw">use</span> <span class="ident">std</span>::{
<span class="ident">env</span>, <span class="ident">fmt</span>,
<span class="ident">fs::File</span>,
@ -727,7 +719,10 @@
<span class="kw">mod</span> <span class="ident">actix</span>;
<span class="kw">mod</span> <span class="ident">core</span>;
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="self">self</span>::actix</span>::<span class="kw-2">*</span>;
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="self">self</span>::actix</span>::{
<span class="ident">ActixSettings</span>, <span class="ident">Address</span>, <span class="ident">Backlog</span>, <span class="ident">KeepAlive</span>, <span class="ident">MaxConnectionRate</span>, <span class="ident">MaxConnections</span>, <span class="ident">Mode</span>,
<span class="ident">NumWorkers</span>, <span class="ident">Timeout</span>, <span class="ident">Tls</span>,
};
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="self">self</span>::core::Parse</span>;
<span class="kw">pub</span> <span class="kw">use</span> <span class="ident"><span class="self">self</span>::error</span>::{<span class="ident">AtError</span>, <span class="ident">AtResult</span>};
@ -919,25 +914,18 @@
<span class="attribute">#[<span class="ident">cfg</span>(<span class="ident">test</span>)]</span>
<span class="kw">mod</span> <span class="ident">tests</span> {
<span class="attribute">#![<span class="ident">allow</span>(<span class="ident">non_snake_case</span>)]</span>
<span class="kw">use</span> <span class="ident">actix_web::App</span>;
<span class="kw">use</span> <span class="ident">std::path::Path</span>;
<span class="kw">use</span> <span class="ident">actix_web</span>::{<span class="ident">App</span>, <span class="ident">HttpServer</span>};
<span class="kw">use</span> <span class="ident">serde::Deserialize</span>;
<span class="kw">use</span> <span class="ident"><span class="kw">crate</span>::actix</span>::<span class="kw-2">*</span>; <span class="comment">// used for value construction in assertions</span>
<span class="kw">use</span> <span class="kw">crate</span>::{<span class="ident">ApplySettings</span>, <span class="ident">AtResult</span>, <span class="ident">BasicSettings</span>, <span class="ident">Settings</span>};
<span class="kw">use</span> <span class="kw">super</span>::<span class="kw-2">*</span>;
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">apply_settings</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::parse_toml</span>(<span class="string">&quot;Server.toml&quot;</span>)<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">apply_settings</span>() {
<span class="kw">let</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::parse_toml</span>(<span class="string">&quot;Server.toml&quot;</span>).<span class="ident">unwrap</span>();
<span class="kw">let</span> <span class="kw">_</span> <span class="op">=</span> <span class="ident">HttpServer::new</span>(<span class="ident">App::new</span>).<span class="ident">apply_settings</span>(<span class="kw-2">&amp;</span><span class="ident">settings</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__hosts</span>() {
<span class="kw">fn</span> <span class="ident">override_field_hosts</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
@ -973,7 +961,7 @@
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__hosts</span>() {
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_hosts</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
@ -1011,149 +999,141 @@
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__mode</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_mode</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="ident">Mode::Development</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="string">&quot;production&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="string">&quot;production&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="ident">Mode::Production</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__mode</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_mode</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="ident">Mode::Development</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__MODE&quot;</span>, <span class="string">&quot;production&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="string">&quot;OVERRIDE__MODE&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field_with_env_var</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="string">&quot;OVERRIDE__MODE&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">mode</span>, <span class="ident">Mode::Production</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__enable_compression</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_enable_compression</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>, <span class="string">&quot;false&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>, <span class="string">&quot;false&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__enable_compression</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_enable_compression</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__ENABLE_COMPRESSION&quot;</span>, <span class="string">&quot;false&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>,
<span class="string">&quot;OVERRIDE__ENABLE_COMPRESSION&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_compression</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__enable_log</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_enable_log</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>, <span class="string">&quot;false&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>, <span class="string">&quot;false&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__enable_log</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_enable_log</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__ENABLE_LOG&quot;</span>, <span class="string">&quot;false&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>,
<span class="string">&quot;OVERRIDE__ENABLE_LOG&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">enable_log</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__num_workers</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_num_workers</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="ident">NumWorkers::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="string">&quot;42&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="string">&quot;42&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="ident">NumWorkers::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__num_workers</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_num_workers</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="ident">NumWorkers::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__NUM_WORKERS&quot;</span>, <span class="string">&quot;42&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>,
<span class="string">&quot;OVERRIDE__NUM_WORKERS&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">num_workers</span>, <span class="ident">NumWorkers::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__backlog</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_backlog</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="ident">Backlog::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="string">&quot;42&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="string">&quot;42&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="ident">Backlog::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__backlog</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_backlog</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="ident">Backlog::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__BACKLOG&quot;</span>, <span class="string">&quot;42&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="string">&quot;OVERRIDE__BACKLOG&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field_with_env_var</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="string">&quot;OVERRIDE__BACKLOG&quot;</span>)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">backlog</span>, <span class="ident">Backlog::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__max_connections</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_max_connections</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="ident">MaxConnections::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="string">&quot;42&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="string">&quot;42&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="ident">MaxConnections::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__max_connections</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_max_connections</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="ident">MaxConnections::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__MAX_CONNECTIONS&quot;</span>, <span class="string">&quot;42&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>,
<span class="string">&quot;OVERRIDE__MAX_CONNECTIONS&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connections</span>, <span class="ident">MaxConnections::Manual</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__max_connection_rate</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_max_connection_rate</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>,
<span class="ident">MaxConnectionRate::Default</span>
);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>, <span class="string">&quot;42&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>, <span class="string">&quot;42&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>,
<span class="ident">MaxConnectionRate::Manual</span>(<span class="number">42</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__max_connection_rate</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_max_connection_rate</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>,
<span class="ident">MaxConnectionRate::Default</span>
@ -1162,127 +1142,122 @@
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>,
<span class="string">&quot;OVERRIDE__MAX_CONNECTION_RATE&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">max_connection_rate</span>,
<span class="ident">MaxConnectionRate::Manual</span>(<span class="number">42</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__keep_alive</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_keep_alive</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="ident">KeepAlive::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="string">&quot;42 seconds&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="string">&quot;42 seconds&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="ident">KeepAlive::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__keep_alive</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_keep_alive</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="ident">KeepAlive::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__KEEP_ALIVE&quot;</span>, <span class="string">&quot;42 seconds&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>,
<span class="string">&quot;OVERRIDE__KEEP_ALIVE&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">keep_alive</span>, <span class="ident">KeepAlive::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__client_timeout</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_client_timeout</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="string">&quot;42 seconds&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="string">&quot;42 seconds&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__client_timeout</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_client_timeout</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__CLIENT_TIMEOUT&quot;</span>, <span class="string">&quot;42 seconds&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>,
<span class="string">&quot;OVERRIDE__CLIENT_TIMEOUT&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_timeout</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__client_shutdown</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_client_shutdown</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="string">&quot;42 seconds&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="string">&quot;42 seconds&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__client_shutdown</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_client_shutdown</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__CLIENT_SHUTDOWN&quot;</span>, <span class="string">&quot;42 seconds&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>,
<span class="string">&quot;OVERRIDE__CLIENT_SHUTDOWN&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">client_shutdown</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__shutdown_timeout</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_shutdown_timeout</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="string">&quot;42 seconds&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="string">&quot;42 seconds&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__shutdown_timeout</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_shutdown_timeout</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="ident">Timeout::Default</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__SHUTDOWN_TIMEOUT&quot;</span>, <span class="string">&quot;42 seconds&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>,
<span class="string">&quot;OVERRIDE__SHUTDOWN_TIMEOUT&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">shutdown_timeout</span>, <span class="ident">Timeout::Seconds</span>(<span class="number">42</span>));
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__tls__enabled</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_tls_enabled</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>);
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>, <span class="string">&quot;true&quot;</span>)<span class="question-mark">?</span>;
<span class="ident">Settings::override_field</span>(<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>, <span class="string">&quot;true&quot;</span>).<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__tls__enabled</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_tls_enabled</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="op">!</span><span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>);
<span class="ident">std::env::set_var</span>(<span class="string">&quot;OVERRIDE__TLS_ENABLED&quot;</span>, <span class="string">&quot;true&quot;</span>);
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>,
<span class="string">&quot;OVERRIDE__TLS_ENABLED&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert!</span>(<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">enabled</span>);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__tls__certificate</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_tls_certificate</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;path/to/cert/cert.pem&quot;</span>)
@ -1290,17 +1265,17 @@
<span class="ident">Settings::override_field</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="string">&quot;/overridden/path/to/cert/cert.pem&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;/overridden/path/to/cert/cert.pem&quot;</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__tls__certificate</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_tls_certificate</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;path/to/cert/cert.pem&quot;</span>)
@ -1312,17 +1287,17 @@
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="string">&quot;OVERRIDE__TLS_CERTIFICATE&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">certificate</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;/overridden/path/to/cert/cert.pem&quot;</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field__tls__private_key</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_tls_private_key</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;path/to/cert/key.pem&quot;</span>)
@ -1330,17 +1305,17 @@
<span class="ident">Settings::override_field</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="string">&quot;/overridden/path/to/cert/key.pem&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;/overridden/path/to/cert/key.pem&quot;</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_field_with_env_var__tls__private_key</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>()<span class="question-mark">?</span>;
<span class="kw">fn</span> <span class="ident">override_field_with_env_var_tls_private_key</span>() {
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">Settings::from_default_template</span>().<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;path/to/cert/key.pem&quot;</span>)
@ -1352,35 +1327,40 @@
<span class="ident">Settings::override_field_with_env_var</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="string">&quot;OVERRIDE__TLS_PRIVATE_KEY&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">actix</span>.<span class="ident">tls</span>.<span class="ident">private_key</span>,
<span class="ident">Path::new</span>(<span class="string">&quot;/overridden/path/to/cert/key.pem&quot;</span>)
);
<span class="prelude-val">Ok</span>(())
}
<span class="attribute">#[<span class="ident">test</span>]</span>
<span class="kw">fn</span> <span class="ident">override_extended_field_with_custom_type</span>() -&gt; <span class="ident">AtResult</span><span class="op">&lt;</span>()<span class="op">&gt;</span> {
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">Deserialize</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>)]</span>
<span class="kw">fn</span> <span class="ident">override_extended_field_with_custom_type</span>() {
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Deserialize</span>)]</span>
<span class="kw">struct</span> <span class="ident">NestedSetting</span> {
<span class="ident">foo</span>: <span class="ident">String</span>,
<span class="ident">bar</span>: <span class="ident">bool</span>,
}
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">Deserialize</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>)]</span>
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">Clone</span>, <span class="ident">PartialEq</span>, <span class="ident">Eq</span>, <span class="ident">Deserialize</span>)]</span>
<span class="kw">struct</span> <span class="ident">AppSettings</span> {
<span class="attribute">#[<span class="ident">serde</span>(<span class="ident">rename</span> <span class="op">=</span> <span class="string">&quot;example-name&quot;</span>)]</span>
<span class="ident">example_name</span>: <span class="ident">String</span>,
<span class="attribute">#[<span class="ident">serde</span>(<span class="ident">rename</span> <span class="op">=</span> <span class="string">&quot;nested-field&quot;</span>)]</span>
<span class="ident">nested_field</span>: <span class="ident">NestedSetting</span>,
}
<span class="kw">type</span> <span class="ident">CustomSettings</span> <span class="op">=</span> <span class="ident">BasicSettings</span><span class="op">&lt;</span><span class="ident">AppSettings</span><span class="op">&gt;</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">settings</span> <span class="op">=</span> <span class="ident">CustomSettings::from_template</span>(
<span class="kw-2">&amp;</span>(<span class="ident">CustomSettings::DEFAULT_TOML_TEMPLATE</span>.<span class="ident">to_string</span>()
<span class="comment">// NOTE: Add these entries to the `[application]` table:</span>
<span class="op">+</span> <span class="string">&quot;\nexample-name = \&quot;example value\&quot;&quot;</span>
<span class="op">+</span> <span class="string">&quot;\nnested-field = { foo = \&quot;foo\&quot;, bar = false }&quot;</span>),
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">application</span>,
<span class="ident">AppSettings</span> {
@ -1391,10 +1371,13 @@
},
}
);
<span class="ident">CustomSettings::override_field</span>(
<span class="kw-2">&amp;mut</span> <span class="ident">settings</span>.<span class="ident">application</span>.<span class="ident">example_name</span>,
<span class="string">&quot;/overridden/path/to/cert/key.pem&quot;</span>,
)<span class="question-mark">?</span>;
)
.<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(
<span class="ident">settings</span>.<span class="ident">application</span>,
<span class="ident">AppSettings</span> {
@ -1405,7 +1388,6 @@
},
}
);
<span class="prelude-val">Ok</span>(())
}
}
</code></pre></div>