mirror of
https://github.com/actix/actix-extras.git
synced 2024-11-28 01:32:57 +01:00
52 lines
29 KiB
HTML
52 lines
29 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Convenience type alias for `BasicSettings` with no defined application-specific settings."><title>Settings in actix_settings - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-fa3bb1812debf86c.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="actix_settings" data-themes="" data-resource-suffix="" data-rustdoc-version="1.75.0-nightly (2bbb61989 2023-10-04)" data-channel="nightly" data-search-js="search-8be46b629f5f14a8.js" data-settings-js="settings-74424d7eec62a23e.js" ><script src="../static.files/storage-fec3eaa3851e447d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-c5bd66d33317d69f.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-5d8b3c7633ad77ba.css"></noscript><link rel="icon" href="https://actix.rs/favicon.ico"></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">☰</button><a class="logo-container" href="../actix_settings/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a></nav><nav class="sidebar"><a class="logo-container" href="../actix_settings/index.html"><img src="https://actix.rs/img/logo.png" alt="logo"></a><h2 class="location"><a href="#">Settings</a></h2><div class="sidebar-elems"><section><h3><a href="#aliased-type">Aliased type</a></h3><h3><a href="#fields">Fields</a></h3><ul class="block"><li><a href="#structfield.actix">actix</a></li><li><a href="#structfield.application">application</a></li></ul><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.from_default_template">from_default_template</a></li><li><a href="#method.from_template">from_template</a></li><li><a href="#method.override_field">override_field</a></li><li><a href="#method.override_field_with_env_var">override_field_with_env_var</a></li><li><a href="#method.parse_toml">parse_toml</a></li><li><a href="#method.write_toml_file">write_toml_file</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-BasicSettings%3CA%3E">Clone</a></li><li><a href="#impl-Debug-for-BasicSettings%3CA%3E">Debug</a></li><li><a href="#impl-Deserialize%3C'de%3E-for-BasicSettings%3CA%3E">Deserialize<'de></a></li><li><a href="#impl-Eq-for-BasicSettings%3CA%3E">Eq</a></li><li><a href="#impl-Hash-for-BasicSettings%3CA%3E">Hash</a></li><li><a href="#impl-PartialEq%3CBasicSettings%3CA%3E%3E-for-BasicSettings%3CA%3E">PartialEq<BasicSettings<A>></a></li><li><a href="#impl-StructuralEq-for-BasicSettings%3CA%3E">StructuralEq</a></li><li><a href="#impl-StructuralPartialEq-for-BasicSettings%3CA%3E">StructuralPartialEq</a></li></ul></section><h2><a href="index.html">In actix_settings</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>Type Alias <a href="index.html">actix_settings</a>::<wbr><a class="type" href="#">Settings</a><button id="copy-path" title="Copy item path to clipboard"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/actix_settings/lib.rs.html#116">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub type Settings = <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><<a class="struct" href="struct.NoSettings.html" title="struct actix_settings::NoSettings">NoSettings</a>>;</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Convenience type alias for <a href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings"><code>BasicSettings</code></a> with no defined application-specific settings.</p>
|
||
</div></details><h2 id="aliased-type" class="small-section-header">Aliased Type<a href="#aliased-type" class="anchor">§</a></h2><pre class="rust item-decl"><code>struct Settings {
|
||
pub actix: <a class="struct" href="struct.ActixSettings.html" title="struct actix_settings::ActixSettings">ActixSettings</a>,
|
||
pub application: <a class="struct" href="struct.NoSettings.html" title="struct actix_settings::NoSettings">NoSettings</a>,
|
||
}</code></pre><h2 id="fields" class="fields small-section-header">Fields<a href="#fields" class="anchor">§</a></h2><span id="structfield.actix" class="structfield small-section-header"><a href="#structfield.actix" class="anchor field">§</a><code>actix: <a class="struct" href="struct.ActixSettings.html" title="struct actix_settings::ActixSettings">ActixSettings</a></code></span><div class="docblock"><p>Actix Web server settings.</p>
|
||
</div><span id="structfield.application" class="structfield small-section-header"><a href="#structfield.application" class="anchor field">§</a><code>application: <a class="struct" href="struct.NoSettings.html" title="struct actix_settings::NoSettings">NoSettings</a></code></span><div class="docblock"><p>Application-specific settings.</p>
|
||
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#123-242">source</a><a href="#impl-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A> <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A><span class="where fmt-newline">where
|
||
A: <a class="trait" href="https://docs.rs/serde/1.0.188/serde/de/trait.DeserializeOwned.html" title="trait serde::de::DeserializeOwned">DeserializeOwned</a>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.parse_toml" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#137-154">source</a><h4 class="code-header">pub fn <a href="#method.parse_toml" class="fn">parse_toml</a><P>(filepath: P) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>><span class="where fmt-newline">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>,</span></h4></section></summary><div class="docblock"><p>Parse an instance of <code>Self</code> from a TOML file located at <code>filepath</code>.</p>
|
||
<p>If the file doesn’t exist, it is generated from the default TOML template, after which the
|
||
newly generated file is read in and parsed.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_default_template" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#159-161">source</a><h4 class="code-header">pub fn <a href="#method.from_default_template" class="fn">from_default_template</a>() -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>></h4></section></summary><div class="docblock"><p>Parse an instance of <code>Self</code> straight from the default TOML template.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_template" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#165-167">source</a><h4 class="code-header">pub fn <a href="#method.from_template" class="fn">from_template</a>(template: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>></h4></section></summary><div class="docblock"><p>Parse an instance of <code>Self</code> straight from the default TOML template.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_toml_file" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#175-190">source</a><h4 class="code-header">pub fn <a href="#method.write_toml_file" class="fn">write_toml_file</a><P>(filepath: P) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>><span class="where fmt-newline">where
|
||
P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>,</span></h4></section></summary><div class="docblock"><p>Writes the default TOML template to a new file, located at <code>filepath</code>.</p>
|
||
<h5 id="errors"><a href="#errors">Errors</a></h5>
|
||
<p>Returns a <a href="enum.Error.html#variant.FileExists" title="variant actix_settings::Error::FileExists"><code>FileExists</code></a> error if a file already exists at that
|
||
location.</p>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.override_field" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#206-213">source</a><h4 class="code-header">pub fn <a href="#method.override_field" class="fn">override_field</a><F, V>(field: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut F</a>, value: V) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>><span class="where fmt-newline">where
|
||
F: <a class="trait" href="trait.Parse.html" title="trait actix_settings::Parse">Parse</a>,
|
||
V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,</span></h4></section></summary><div class="docblock"><p>Attempts to parse <code>value</code> and override the referenced <code>field</code>.</p>
|
||
<h5 id="examples"><a href="#examples">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_settings::{Settings, Mode};
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>settings = Settings::from_default_template()<span class="question-mark">?</span>;
|
||
<span class="macro">assert_eq!</span>(settings.actix.mode, Mode::Development);
|
||
|
||
Settings::override_field(<span class="kw-2">&mut </span>settings.actix.mode, <span class="string">"production"</span>)<span class="question-mark">?</span>;
|
||
<span class="macro">assert_eq!</span>(settings.actix.mode, Mode::Production);</code></pre></div>
|
||
</div></details><details class="toggle method-toggle" open><summary><section id="method.override_field_with_env_var" class="method"><a class="src rightside" href="../src/actix_settings/lib.rs.html#231-241">source</a><h4 class="code-header">pub fn <a href="#method.override_field_with_env_var" class="fn">override_field_with_env_var</a><F, N>(
|
||
field: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut F</a>,
|
||
var_name: N
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.Error.html" title="enum actix_settings::Error">Error</a>><span class="where fmt-newline">where
|
||
F: <a class="trait" href="trait.Parse.html" title="trait actix_settings::Parse">Parse</a>,
|
||
N: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>,</span></h4></section></summary><div class="docblock"><p>Attempts to read an environment variable, parse it, and override the referenced <code>field</code>.</p>
|
||
<h5 id="examples-1"><a href="#examples-1">Examples</a></h5>
|
||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>actix_settings::{Settings, Mode};
|
||
|
||
std::env::set_var(<span class="string">"OVERRIDE__MODE"</span>, <span class="string">"production"</span>);
|
||
|
||
<span class="kw">let </span><span class="kw-2">mut </span>settings = Settings::from_default_template()<span class="question-mark">?</span>;
|
||
<span class="macro">assert_eq!</span>(settings.actix.mode, Mode::Development);
|
||
|
||
Settings::override_field_with_env_var(<span class="kw-2">&mut </span>settings.actix.mode, <span class="string">"OVERRIDE__MODE"</span>)<span class="question-mark">?</span>;
|
||
<span class="macro">assert_eq!</span>(settings.actix.mode, Mode::Production);</code></pre></div>
|
||
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-Clone-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#169">source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Self</a>)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-Debug-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Deserialize%3C'de%3E-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-Deserialize%3C'de%3E-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<'de, A> <a class="trait" href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A><span class="where fmt-newline">where
|
||
A: <a class="trait" href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserialize.html" title="trait serde::de::Deserialize">Deserialize</a><'de>,</span></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.deserialize" class="method trait-impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#method.deserialize" class="anchor">§</a><h4 class="code-header">fn <a href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserialize.html#tymethod.deserialize" class="fn">deserialize</a><__D>(__deserializer: __D) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, __D::<a class="associatedtype" href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserializer.html#associatedtype.Error" title="type serde::de::Deserializer::Error">Error</a>><span class="where fmt-newline">where
|
||
__D: <a class="trait" href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserializer.html" title="trait serde::de::Deserializer">Deserializer</a><'de>,</span></h4></section></summary><div class='docblock'>Deserialize this value from the given Serde deserializer. <a href="https://docs.rs/serde/1.0.188/serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Hash-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-Hash-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A: <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="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.hash" class="method trait-impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#method.hash" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fn">hash</a><__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut __H</a>)</h4></section></summary><div class='docblock'>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_slice" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#242-244">source</a></span><a href="#method.hash_slice" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fn">hash_slice</a><H>(data: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[Self]</a>, state: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut H</a>)<span class="where fmt-newline">where
|
||
H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,
|
||
Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-PartialEq%3CBasicSettings%3CA%3E%3E-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-PartialEq%3CBasicSettings%3CA%3E%3E-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A>> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
|
||
by <code>==</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#231">source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
|
||
sufficient, and should not be overridden without very good reason.</div></details></div></details><section id="impl-Eq-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-Eq-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A: <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="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section><section id="impl-StructuralEq-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-StructuralEq-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A> <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="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section><section id="impl-StructuralPartialEq-for-BasicSettings%3CA%3E" class="impl"><a class="src rightside" href="../src/actix_settings/lib.rs.html#105">source</a><a href="#impl-StructuralPartialEq-for-BasicSettings%3CA%3E" class="anchor">§</a><h3 class="code-header">impl<A> <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="struct.BasicSettings.html" title="struct actix_settings::BasicSettings">BasicSettings</a><A></h3></section></div></section></div></main></body></html> |