diff --git a/actix_settings/all.html b/actix_settings/all.html index a681b4fc9..5ff9f7410 100644 --- a/actix_settings/all.html +++ b/actix_settings/all.html @@ -1 +1,3 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Typedefs

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Typedefs

\ No newline at end of file diff --git a/actix_settings/enum.AtError.html b/actix_settings/enum.AtError.html index 76ab46053..196a6acf3 100644 --- a/actix_settings/enum.AtError.html +++ b/actix_settings/enum.AtError.html @@ -1,4 +1,6 @@ -AtError in actix_settings - Rust
pub enum AtError {
+AtError in actix_settings - Rust
pub enum AtError {
     EnvVarError(VarError),
     FileExists(PathBuf),
     InvalidValue {
diff --git a/actix_settings/enum.Backlog.html b/actix_settings/enum.Backlog.html
index 329646f15..68ceee527 100644
--- a/actix_settings/enum.Backlog.html
+++ b/actix_settings/enum.Backlog.html
@@ -1,4 +1,6 @@
-Backlog in actix_settings - Rust
pub enum Backlog {
+Backlog in actix_settings - Rust
pub enum Backlog {
     Default,
     Manual(usize),
 }

Variants

Default

Manual(usize)

Trait Implementations

Returns a copy of the value. Read more

diff --git a/actix_settings/enum.KeepAlive.html b/actix_settings/enum.KeepAlive.html index 8bb46516f..59e2529f3 100644 --- a/actix_settings/enum.KeepAlive.html +++ b/actix_settings/enum.KeepAlive.html @@ -1,4 +1,6 @@ -KeepAlive in actix_settings - Rust
pub enum KeepAlive {
+KeepAlive in actix_settings - Rust
pub enum KeepAlive {
     Default,
     Disabled,
     Os,
diff --git a/actix_settings/enum.MaxConnectionRate.html b/actix_settings/enum.MaxConnectionRate.html
index b5a3807a6..91e8caa43 100644
--- a/actix_settings/enum.MaxConnectionRate.html
+++ b/actix_settings/enum.MaxConnectionRate.html
@@ -1,4 +1,6 @@
-MaxConnectionRate in actix_settings - Rust
pub enum MaxConnectionRate {
+MaxConnectionRate in actix_settings - Rust
pub enum MaxConnectionRate {
     Default,
     Manual(usize),
 }

Variants

Default

Manual(usize)

Trait Implementations

Returns a copy of the value. Read more

diff --git a/actix_settings/enum.MaxConnections.html b/actix_settings/enum.MaxConnections.html index 8c64c194f..097cf0172 100644 --- a/actix_settings/enum.MaxConnections.html +++ b/actix_settings/enum.MaxConnections.html @@ -1,4 +1,6 @@ -MaxConnections in actix_settings - Rust
pub enum MaxConnections {
+MaxConnections in actix_settings - Rust
pub enum MaxConnections {
     Default,
     Manual(usize),
 }

Variants

Default

Manual(usize)

Trait Implementations

Returns a copy of the value. Read more

diff --git a/actix_settings/enum.Mode.html b/actix_settings/enum.Mode.html index ec6a72776..2fdc32d97 100644 --- a/actix_settings/enum.Mode.html +++ b/actix_settings/enum.Mode.html @@ -1,16 +1,18 @@ -Mode in actix_settings - Rust

Variants

Development

Production

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Feeds this value into the given Hasher. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/actix_settings/enum.NumWorkers.html b/actix_settings/enum.NumWorkers.html index db99b6482..23c5a5be4 100644 --- a/actix_settings/enum.NumWorkers.html +++ b/actix_settings/enum.NumWorkers.html @@ -1,4 +1,6 @@ -NumWorkers in actix_settings - Rust
pub enum NumWorkers {
+NumWorkers in actix_settings - Rust
pub enum NumWorkers {
     Default,
     Manual(usize),
 }

Variants

Default

Manual(usize)

Trait Implementations

Returns a copy of the value. Read more

diff --git a/actix_settings/enum.Timeout.html b/actix_settings/enum.Timeout.html index bd215be4c..c46b03543 100644 --- a/actix_settings/enum.Timeout.html +++ b/actix_settings/enum.Timeout.html @@ -1,4 +1,6 @@ -Timeout in actix_settings - Rust
pub enum Timeout {
+Timeout in actix_settings - Rust
pub enum Timeout {
     Default,
     Milliseconds(usize),
     Seconds(usize),
diff --git a/actix_settings/index.html b/actix_settings/index.html
index 2bf3849dc..4ea87f048 100644
--- a/actix_settings/index.html
+++ b/actix_settings/index.html
@@ -1,3 +1,5 @@
-actix_settings - Rust
Expand description

Easily manage Actix Web’s settings from a TOML file and environment variables.

+actix_settings - Rust
\ No newline at end of file diff --git a/actix_settings/struct.ActixSettings.html b/actix_settings/struct.ActixSettings.html index 4a32801e9..c016fbb44 100644 --- a/actix_settings/struct.ActixSettings.html +++ b/actix_settings/struct.ActixSettings.html @@ -1,4 +1,6 @@ -ActixSettings in actix_settings - Rust
pub struct ActixSettings {
Show 13 fields +ActixSettings in actix_settings - Rust
pub struct ActixSettings {
Show 13 fields pub hosts: Vec<Address>, pub mode: Mode, pub enable_compression: bool, diff --git a/actix_settings/struct.Address.html b/actix_settings/struct.Address.html index 1e71d8221..e0f929d8b 100644 --- a/actix_settings/struct.Address.html +++ b/actix_settings/struct.Address.html @@ -1,4 +1,6 @@ -Address in actix_settings - Rust
pub struct Address {
+Address in actix_settings - Rust
pub struct Address {
     pub host: String,
     pub port: u16,
 }

Fields

host: Stringport: u16

Trait Implementations

Returns a copy of the value. Read more

diff --git a/actix_settings/struct.BasicSettings.html b/actix_settings/struct.BasicSettings.html index f602beb3c..798addb69 100644 --- a/actix_settings/struct.BasicSettings.html +++ b/actix_settings/struct.BasicSettings.html @@ -1,24 +1,26 @@ -BasicSettings in actix_settings - Rust

Fields

actix: ActixSettingsapplication: A

Implementations

Parse an instance of Self from a TOML file located at filepath. 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.

-

Parse an instance of Self straight from the default TOML template.

-

Parse an instance of Self straight from the default TOML template.

-

Write the default TOML template to a new file, to be located +

Parse an instance of Self straight from the default TOML template.

+

Parse an instance of Self straight from the default TOML template.

+

Write the default TOML template to a new file, to be located at filepath. Return a Error::FileExists(_) error if a file already exists at that location.

-

Trait Implementations

Returns a copy of the value. Read more

+

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Feeds this value into the given Hasher. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

-

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

This method tests for !=.

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/actix_settings/struct.NoSettings.html b/actix_settings/struct.NoSettings.html index b41e63ad3..f59a5a412 100644 --- a/actix_settings/struct.NoSettings.html +++ b/actix_settings/struct.NoSettings.html @@ -1,13 +1,15 @@ -NoSettings in actix_settings - Rust
#[non_exhaustive]
pub struct NoSettings {}

Trait Implementations

Returns a copy of the value. Read more

+NoSettings in actix_settings - Rust
#[non_exhaustive]
pub struct NoSettings {}

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

-

Formats the value using the given formatter. Read more

-

Deserialize this value from the given Serde deserializer. Read more

-

Feeds this value into the given Hasher. Read more

+

Formats the value using the given formatter. Read more

+

Deserialize this value from the given Serde deserializer. Read more

+

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

-

This method tests for self and other values to be equal, and is used +

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

-

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

+

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

diff --git a/actix_settings/struct.Tls.html b/actix_settings/struct.Tls.html index a74177cd4..4b5585943 100644 --- a/actix_settings/struct.Tls.html +++ b/actix_settings/struct.Tls.html @@ -1,4 +1,6 @@ -Tls in actix_settings - Rust
pub struct Tls {
+Tls in actix_settings - Rust
pub struct Tls {
     pub enabled: bool,
     pub certificate: PathBuf,
     pub private_key: PathBuf,
diff --git a/actix_settings/trait.ApplySettings.html b/actix_settings/trait.ApplySettings.html
index 856bf903e..4f0bb8dce 100644
--- a/actix_settings/trait.ApplySettings.html
+++ b/actix_settings/trait.ApplySettings.html
@@ -1,4 +1,6 @@
-ApplySettings in actix_settings - Rust
pub trait ApplySettings {
+ApplySettings in actix_settings - Rust
pub trait ApplySettings {
     fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Self
    where
        A: DeserializeOwned
; -}

Required Methods

Apply a BasicSettings value to self.

-

Implementations on Foreign Types

Implementors

\ No newline at end of file +}

Required Methods

Apply a BasicSettings value to self.

+

Implementations on Foreign Types

Implementors

\ No newline at end of file diff --git a/actix_settings/trait.Parse.html b/actix_settings/trait.Parse.html index 943d0ec4a..d731c80c9 100644 --- a/actix_settings/trait.Parse.html +++ b/actix_settings/trait.Parse.html @@ -1,3 +1,5 @@ -Parse in actix_settings - Rust
pub trait Parse: Sized {
+Parse in actix_settings - Rust
pub trait Parse: Sized {
     fn parse(string: &str) -> Result<Self, AtError>;
-}

Required Methods

Implementations on Foreign Types

Implementors

\ No newline at end of file +}

Required Methods

Implementations on Foreign Types

Implementors

\ No newline at end of file diff --git a/actix_settings/type.AtResult.html b/actix_settings/type.AtResult.html index 41b91d6cf..d89318c16 100644 --- a/actix_settings/type.AtResult.html +++ b/actix_settings/type.AtResult.html @@ -1 +1,3 @@ -AtResult in actix_settings - Rust

Type Definition actix_settings::AtResult

source · []
pub type AtResult<T> = Result<T, AtError>;
\ No newline at end of file +AtResult in actix_settings - Rust

Type Definition actix_settings::AtResult

source · []
pub type AtResult<T> = Result<T, AtError>;
\ No newline at end of file diff --git a/actix_settings/type.Settings.html b/actix_settings/type.Settings.html index 16cf43806..e041b97a0 100644 --- a/actix_settings/type.Settings.html +++ b/actix_settings/type.Settings.html @@ -1 +1,3 @@ -Settings in actix_settings - Rust

Type Definition actix_settings::Settings

source · []
pub type Settings = BasicSettings<NoSettings>;
\ No newline at end of file +Settings in actix_settings - Rust

Type Definition actix_settings::Settings

source · []
pub type Settings = BasicSettings<NoSettings>;
\ No newline at end of file diff --git a/settings.html b/settings.html index 81e8d5def..3ec4ed1bf 100644 --- a/settings.html +++ b/settings.html @@ -1 +1,3 @@ -Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file +Rustdoc settings

Rustdoc settings

Back
\ No newline at end of file diff --git a/src/actix_settings/error.rs.html b/src/actix_settings/error.rs.html index 6a9718aa3..0515f2f1b 100644 --- a/src/actix_settings/error.rs.html +++ b/src/actix_settings/error.rs.html @@ -1,4 +1,6 @@ -error.rs - source
1
+error.rs - source
1
 2
 3
 4
diff --git a/src/actix_settings/lib.rs.html b/src/actix_settings/lib.rs.html
index 76530d36c..044204f92 100644
--- a/src/actix_settings/lib.rs.html
+++ b/src/actix_settings/lib.rs.html
@@ -1,4 +1,6 @@
-lib.rs - source
1
+lib.rs - source
1
 2
 3
 4
@@ -693,8 +695,22 @@
 693
 694
 695
+696
+697
+698
+699
+700
+701
+702
 
//! Easily manage Actix Web's settings from a TOML file and environment variables.
 
+#![forbid(unsafe_code)]
+#![deny(rust_2018_idioms, nonstandard_style)]
+#![warn(future_incompatible, missing_debug_implementations)]
+// #![warn(missing_docs)]
+#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
+#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
+
 use std::{
     env, fmt,
     fs::File,
diff --git a/src/actix_settings/parse.rs.html b/src/actix_settings/parse.rs.html
index fadca3366..4bfb92bce 100644
--- a/src/actix_settings/parse.rs.html
+++ b/src/actix_settings/parse.rs.html
@@ -1,4 +1,6 @@
-parse.rs - source
1
+parse.rs - source
1
 2
 3
 4
diff --git a/src/actix_settings/settings/address.rs.html b/src/actix_settings/settings/address.rs.html
index 17cc882d2..3222e0600 100644
--- a/src/actix_settings/settings/address.rs.html
+++ b/src/actix_settings/settings/address.rs.html
@@ -1,4 +1,6 @@
-address.rs - source
1
+address.rs - source
1
 2
 3
 4
diff --git a/src/actix_settings/settings/backlog.rs.html b/src/actix_settings/settings/backlog.rs.html
index bb8909c1e..0b958d946 100644
--- a/src/actix_settings/settings/backlog.rs.html
+++ b/src/actix_settings/settings/backlog.rs.html
@@ -1,4 +1,6 @@
-backlog.rs - source
1
+backlog.rs - source
1
 2
 3
 4
@@ -94,9 +96,9 @@
         impl<'de> de::Visitor<'de> for BacklogVisitor {
             type Value = Backlog;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\" or a string containing an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/keep_alive.rs.html b/src/actix_settings/settings/keep_alive.rs.html
index 02a95e51a..646c31fc0 100644
--- a/src/actix_settings/settings/keep_alive.rs.html
+++ b/src/actix_settings/settings/keep_alive.rs.html
@@ -1,4 +1,6 @@
-keep_alive.rs - source
1
+keep_alive.rs - source
1
 2
 3
 4
@@ -113,7 +115,7 @@
             };
         }
 
-        let digits_in = |m: regex::Match| &string[m.start()..m.end()];
+        let digits_in = |m: regex::Match<'_>| &string[m.start()..m.end()];
         match string {
             "default" => Ok(KeepAlive::Default),
             "disabled" => Ok(KeepAlive::Disabled),
@@ -140,9 +142,9 @@
         impl<'de> de::Visitor<'de> for KeepAliveVisitor {
             type Value = KeepAlive;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\", \"disabled\", \"os\", or a string of the format \"N seconds\" where N is an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/max_connection_rate.rs.html b/src/actix_settings/settings/max_connection_rate.rs.html
index c43d75d88..ab6118917 100644
--- a/src/actix_settings/settings/max_connection_rate.rs.html
+++ b/src/actix_settings/settings/max_connection_rate.rs.html
@@ -1,4 +1,6 @@
-max_connection_rate.rs - source
1
+max_connection_rate.rs - source
1
 2
 3
 4
@@ -94,9 +96,9 @@
         impl<'de> de::Visitor<'de> for MaxConnectionRateVisitor {
             type Value = MaxConnectionRate;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\" or a string containing an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/max_connections.rs.html b/src/actix_settings/settings/max_connections.rs.html
index e59695376..c92103c5c 100644
--- a/src/actix_settings/settings/max_connections.rs.html
+++ b/src/actix_settings/settings/max_connections.rs.html
@@ -1,4 +1,6 @@
-max_connections.rs - source
1
+max_connections.rs - source
1
 2
 3
 4
@@ -94,9 +96,9 @@
         impl<'de> de::Visitor<'de> for MaxConnectionsVisitor {
             type Value = MaxConnections;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\" or a string containing an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/mod.rs.html b/src/actix_settings/settings/mod.rs.html
index 19baba8dc..32f55e6b1 100644
--- a/src/actix_settings/settings/mod.rs.html
+++ b/src/actix_settings/settings/mod.rs.html
@@ -1,4 +1,6 @@
-mod.rs - source
1
+mod.rs - source
1
 2
 3
 4
diff --git a/src/actix_settings/settings/mode.rs.html b/src/actix_settings/settings/mode.rs.html
index 64720634c..1e449b406 100644
--- a/src/actix_settings/settings/mode.rs.html
+++ b/src/actix_settings/settings/mode.rs.html
@@ -1,4 +1,6 @@
-mode.rs - source
1
+mode.rs - source
1
 2
 3
 4
@@ -21,12 +23,10 @@
 21
 22
 23
-24
 
use serde::Deserialize;
 
 use crate::{AtResult, Parse};
 
-///
 #[derive(Debug, Clone, PartialEq, Eq, Hash, Deserialize)]
 #[serde(rename_all = "lowercase")]
 pub enum Mode {
diff --git a/src/actix_settings/settings/num_workers.rs.html b/src/actix_settings/settings/num_workers.rs.html
index e2adae49c..6f7cb5a42 100644
--- a/src/actix_settings/settings/num_workers.rs.html
+++ b/src/actix_settings/settings/num_workers.rs.html
@@ -1,4 +1,6 @@
-num_workers.rs - source
1
+num_workers.rs - source
1
 2
 3
 4
@@ -94,9 +96,9 @@
         impl<'de> de::Visitor<'de> for NumWorkersVisitor {
             type Value = NumWorkers;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\" or a string containing an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/timeout.rs.html b/src/actix_settings/settings/timeout.rs.html
index d171da96e..9ac0dd584 100644
--- a/src/actix_settings/settings/timeout.rs.html
+++ b/src/actix_settings/settings/timeout.rs.html
@@ -1,4 +1,6 @@
-timeout.rs - source
1
+timeout.rs - source
1
 2
 3
 4
@@ -152,9 +154,9 @@
         impl<'de> de::Visitor<'de> for TimeoutVisitor {
             type Value = Timeout;
 
-            fn expecting(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
+            fn expecting(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
                 let msg = "Either \"default\", \"disabled\", \"os\", or a string of the format \"N seconds\" where N is an integer > 0";
-                formatter.write_str(msg)
+                f.write_str(msg)
             }
 
             fn visit_str<E>(self, value: &str) -> Result<Self::Value, E>
diff --git a/src/actix_settings/settings/tls.rs.html b/src/actix_settings/settings/tls.rs.html
index 6143f7939..7fbdff2dd 100644
--- a/src/actix_settings/settings/tls.rs.html
+++ b/src/actix_settings/settings/tls.rs.html
@@ -1,4 +1,6 @@
-tls.rs - source
1
+tls.rs - source
1
 2
 3
 4