diff --git a/actix_identity/all.html b/actix_identity/all.html index 96ce3ade3..f0a5c1b4d 100644 --- a/actix_identity/all.html +++ b/actix_identity/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

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

List of all items

Structs

Enums

Traits

\ No newline at end of file diff --git a/actix_identity/config/enum.LogoutBehaviour.html b/actix_identity/config/enum.LogoutBehaviour.html index 55d30f983..8022c6190 100644 --- a/actix_identity/config/enum.LogoutBehaviour.html +++ b/actix_identity/config/enum.LogoutBehaviour.html @@ -1,4 +1,4 @@ -LogoutBehaviour in actix_identity::config - Rust
#[non_exhaustive]
pub enum LogoutBehaviour { +LogoutBehaviour in actix_identity::config - Rust
#[non_exhaustive]
pub enum LogoutBehaviour { PurgeSession, DeleteIdentityKeys, }
Expand description

LogoutBehaviour controls what actions are going to be performed when Identity::logout is diff --git a/actix_identity/config/index.html b/actix_identity/config/index.html index 812b7b363..cb4d61eca 100644 --- a/actix_identity/config/index.html +++ b/actix_identity/config/index.html @@ -1,4 +1,4 @@ -actix_identity::config - Rust

Module actix_identity::config

source ·
Expand description

Configuration options to tune the behaviour of IdentityMiddleware.

+actix_identity::config - Rust

Module actix_identity::config

source ·
Expand description

Configuration options to tune the behaviour of IdentityMiddleware.

Structs

Enums

\ No newline at end of file diff --git a/actix_identity/config/struct.IdentityMiddlewareBuilder.html b/actix_identity/config/struct.IdentityMiddlewareBuilder.html index b3cc28acf..83867e554 100644 --- a/actix_identity/config/struct.IdentityMiddlewareBuilder.html +++ b/actix_identity/config/struct.IdentityMiddlewareBuilder.html @@ -1,4 +1,4 @@ -IdentityMiddlewareBuilder in actix_identity::config - Rust
pub struct IdentityMiddlewareBuilder { /* private fields */ }
Expand description

A fluent builder to construct an IdentityMiddleware instance with custom configuration +IdentityMiddlewareBuilder in actix_identity::config - Rust

pub struct IdentityMiddlewareBuilder { /* private fields */ }
Expand description

A fluent builder to construct an IdentityMiddleware instance with custom configuration parameters.

Use IdentityMiddleware::builder to get started!

Implementations§

source§

impl IdentityMiddlewareBuilder

source

pub fn logout_behaviour(self, logout_behaviour: LogoutBehaviour) -> Self

Determines how Identity::logout affects the current session.

diff --git a/actix_identity/error/enum.GetIdentityError.html b/actix_identity/error/enum.GetIdentityError.html index 6622a20fa..1e96d7c2b 100644 --- a/actix_identity/error/enum.GetIdentityError.html +++ b/actix_identity/error/enum.GetIdentityError.html @@ -1,4 +1,4 @@ -GetIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub enum GetIdentityError { +GetIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub enum GetIdentityError { SessionExpiryError(SessionExpiryError), MissingIdentityError(MissingIdentityError), SessionGetError(SessionGetError), diff --git a/actix_identity/error/index.html b/actix_identity/error/index.html index b7a3ea807..eacd0f10a 100644 --- a/actix_identity/error/index.html +++ b/actix_identity/error/index.html @@ -1,2 +1,2 @@ -actix_identity::error - Rust

Module actix_identity::error

source ·
Expand description

Failure modes of identity operations.

+actix_identity::error - Rust

Module actix_identity::error

source ·
Expand description

Failure modes of identity operations.

Structs

Enums

\ No newline at end of file diff --git a/actix_identity/error/struct.LoginError.html b/actix_identity/error/struct.LoginError.html index 8cc3b6281..2ab2072af 100644 --- a/actix_identity/error/struct.LoginError.html +++ b/actix_identity/error/struct.LoginError.html @@ -1,4 +1,4 @@ -LoginError in actix_identity::error - Rust
pub struct LoginError(/* private fields */);
Expand description

Error that can occur during login attempts.

+LoginError in actix_identity::error - Rust
pub struct LoginError(/* private fields */);
Expand description

Error that can occur during login attempts.

Trait Implementations§

source§

impl Debug for LoginError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LoginError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for LoginError

source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<SessionInsertError> for LoginError

source§

fn from(original: SessionInsertError) -> LoginError

Converts to this type from the input type.
source§

impl ResponseError for LoginError

source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
§

fn error_response(&self) -> HttpResponse

Creates full response for error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/actix_identity/error/struct.LostIdentityError.html b/actix_identity/error/struct.LostIdentityError.html index 67af56593..319f5e4b1 100644 --- a/actix_identity/error/struct.LostIdentityError.html +++ b/actix_identity/error/struct.LostIdentityError.html @@ -1,4 +1,4 @@ -LostIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub struct LostIdentityError;
Expand description

The identity information has been lost.

+LostIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub struct LostIdentityError;
Expand description

The identity information has been lost.

Seeing this error in user code indicates a bug in actix-identity.

Trait Implementations§

source§

impl Debug for LostIdentityError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for LostIdentityError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for LostIdentityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<LostIdentityError> for GetIdentityError

source§

fn from(original: LostIdentityError) -> GetIdentityError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere diff --git a/actix_identity/error/struct.MissingIdentityError.html b/actix_identity/error/struct.MissingIdentityError.html index 285573237..fda096f56 100644 --- a/actix_identity/error/struct.MissingIdentityError.html +++ b/actix_identity/error/struct.MissingIdentityError.html @@ -1,4 +1,4 @@ -MissingIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub struct MissingIdentityError;
Expand description

There is no identity information attached to the current session.

+MissingIdentityError in actix_identity::error - Rust
#[non_exhaustive]
pub struct MissingIdentityError;
Expand description

There is no identity information attached to the current session.

Trait Implementations§

source§

impl Debug for MissingIdentityError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for MissingIdentityError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for MissingIdentityError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<MissingIdentityError> for GetIdentityError

source§

fn from(original: MissingIdentityError) -> GetIdentityError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/actix_identity/error/struct.SessionExpiryError.html b/actix_identity/error/struct.SessionExpiryError.html index 98c1890fa..871e505a4 100644 --- a/actix_identity/error/struct.SessionExpiryError.html +++ b/actix_identity/error/struct.SessionExpiryError.html @@ -1,4 +1,4 @@ -SessionExpiryError in actix_identity::error - Rust
pub struct SessionExpiryError(/* private fields */);
Expand description

Error encountered when working with a session that has expired.

+SessionExpiryError in actix_identity::error - Rust
pub struct SessionExpiryError(/* private fields */);
Expand description

Error encountered when working with a session that has expired.

Trait Implementations§

source§

impl Debug for SessionExpiryError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for SessionExpiryError

source§

fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Error for SessionExpiryError

1.30.0 · source§

fn source(&self) -> Option<&(dyn Error + 'static)>

The lower-level source of this error, if any. Read more
1.0.0 · source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type based access to context intended for error reports. Read more
source§

impl From<SessionExpiryError> for GetIdentityError

source§

fn from(original: SessionExpiryError) -> GetIdentityError

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere diff --git a/actix_identity/index.html b/actix_identity/index.html index 7dcf401b5..adad0ccaa 100644 --- a/actix_identity/index.html +++ b/actix_identity/index.html @@ -1,5 +1,5 @@ -actix_identity - Rust

Crate actix_identity

source ·
Expand description

Identity management for Actix Web.

+actix_identity - Rust

Crate actix_identity

source ·
Expand description

Identity management for Actix Web.

actix-identity can be used to track identity of a user across multiple requests. It is built on top of HTTP sessions, via actix-session.

Getting started

diff --git a/actix_identity/struct.Identity.html b/actix_identity/struct.Identity.html index 95cfc4b0d..d12e694cc 100644 --- a/actix_identity/struct.Identity.html +++ b/actix_identity/struct.Identity.html @@ -1,4 +1,4 @@ -Identity in actix_identity - Rust
pub struct Identity(/* private fields */);
Expand description

A verified user identity. It can be used as a request extractor.

+Identity in actix_identity - Rust
pub struct Identity(/* private fields */);
Expand description

A verified user identity. It can be used as a request extractor.

The lifecycle of a user identity is tied to the lifecycle of the underlying session. If the session is destroyed (e.g. the session expired), the user identity will be forgotten, de-facto forcing a user log out.

diff --git a/actix_identity/struct.IdentityMiddleware.html b/actix_identity/struct.IdentityMiddleware.html index b0220f0d3..042fc8816 100644 --- a/actix_identity/struct.IdentityMiddleware.html +++ b/actix_identity/struct.IdentityMiddleware.html @@ -1,4 +1,4 @@ -IdentityMiddleware in actix_identity - Rust
pub struct IdentityMiddleware { /* private fields */ }
Expand description

Identity management middleware.

+IdentityMiddleware in actix_identity - Rust
pub struct IdentityMiddleware { /* private fields */ }
Expand description

Identity management middleware.

use actix_web::{cookie::Key, App, HttpServer};
 use actix_session::storage::RedisSessionStore;
diff --git a/actix_identity/trait.IdentityExt.html b/actix_identity/trait.IdentityExt.html
index 829ed36af..c61bdde78 100644
--- a/actix_identity/trait.IdentityExt.html
+++ b/actix_identity/trait.IdentityExt.html
@@ -1,4 +1,4 @@
-IdentityExt in actix_identity - Rust
pub trait IdentityExt {
+IdentityExt in actix_identity - Rust
pub trait IdentityExt {
     // Required method
     fn get_identity(&self) -> Result<Identity, GetIdentityError>;
 }
Expand description

Helper trait to retrieve an Identity instance from various actix-web’s types.

diff --git a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html index a5ac032dc..9080a31b7 100644 --- a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html +++ b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html @@ -1,2 +1,2 @@ -DEFAULT_COOKIE_NAME in actix_limitation - Rust
pub const DEFAULT_COOKIE_NAME: &str = "sid";
Expand description

Default cookie name.

+DEFAULT_COOKIE_NAME in actix_limitation - Rust
pub const DEFAULT_COOKIE_NAME: &str = "sid";
Expand description

Default cookie name.

\ No newline at end of file diff --git a/actix_limitation/constant.DEFAULT_PERIOD_SECS.html b/actix_limitation/constant.DEFAULT_PERIOD_SECS.html index 789b8383c..dc52c828b 100644 --- a/actix_limitation/constant.DEFAULT_PERIOD_SECS.html +++ b/actix_limitation/constant.DEFAULT_PERIOD_SECS.html @@ -1,2 +1,2 @@ -DEFAULT_PERIOD_SECS in actix_limitation - Rust
pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Expand description

Default period (in seconds).

+DEFAULT_PERIOD_SECS in actix_limitation - Rust
pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Expand description

Default period (in seconds).

\ No newline at end of file diff --git a/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html b/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html index 242eac811..6c5074ad2 100644 --- a/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html +++ b/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html @@ -1,2 +1,2 @@ -DEFAULT_REQUEST_LIMIT in actix_limitation - Rust
pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Expand description

Default request limit.

+DEFAULT_REQUEST_LIMIT in actix_limitation - Rust
pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Expand description

Default request limit.

\ No newline at end of file diff --git a/actix_limitation/constant.DEFAULT_SESSION_KEY.html b/actix_limitation/constant.DEFAULT_SESSION_KEY.html index ea89da562..003368c2a 100644 --- a/actix_limitation/constant.DEFAULT_SESSION_KEY.html +++ b/actix_limitation/constant.DEFAULT_SESSION_KEY.html @@ -1,2 +1,2 @@ -DEFAULT_SESSION_KEY in actix_limitation - Rust
pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Expand description

Default session key.

+DEFAULT_SESSION_KEY in actix_limitation - Rust
pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Expand description

Default session key.

\ No newline at end of file diff --git a/actix_limitation/index.html b/actix_limitation/index.html index 7c2037d5b..94d1d3e93 100644 --- a/actix_limitation/index.html +++ b/actix_limitation/index.html @@ -1,5 +1,5 @@ actix_limitation - Rust

Crate actix_limitation

source ·
Expand description

Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.

+
  • All Items
  • Crate actix_limitation

    source ·
    Expand description

    Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.

    [dependencies]
     actix-web = "4"
     actix-limitation = "0.5"
    diff --git a/actix_limitation/struct.Limiter.html b/actix_limitation/struct.Limiter.html
    index dc4c5e180..e58c2049e 100644
    --- a/actix_limitation/struct.Limiter.html
    +++ b/actix_limitation/struct.Limiter.html
    @@ -1,9 +1,9 @@
    -Limiter in actix_limitation - Rust
    pub struct Limiter { /* private fields */ }
    Expand description

    Rate limiter.

    -

    Implementations§

    source§

    impl Limiter

    source

    pub fn builder(redis_url: impl Into<String>) -> Builder

    Construct rate limiter builder with defaults.

    +Limiter in actix_limitation - Rust
    pub struct Limiter { /* private fields */ }
    Expand description

    Rate limiter.

    +

    Implementations§

    source§

    impl Limiter

    source

    pub fn builder(redis_url: impl Into<String>) -> Builder

    Construct rate limiter builder with defaults.

    See redis-rs docs on connection parameters for how to set the Redis URL.

    -
    source

    pub async fn count(&self, key: impl Into<String>) -> Result<Status, Error>

    Consumes one rate limit unit, returning the status.

    -

    Trait Implementations§

    source§

    impl Clone for Limiter

    source§

    fn clone(&self) -> Limiter

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Limiter

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    source

    pub async fn count(&self, key: impl Into<String>) -> Result<Status, Error>

    Consumes one rate limit unit, returning the status.

    +

    Trait Implementations§

    source§

    impl Clone for Limiter

    source§

    fn clone(&self) -> Limiter

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Limiter

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/actix_protobuf/all.html b/actix_protobuf/all.html index 726d5dbf3..2aad7ad90 100644 --- a/actix_protobuf/all.html +++ b/actix_protobuf/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_protobuf/enum.ProtoBufPayloadError.html b/actix_protobuf/enum.ProtoBufPayloadError.html index 1ef56c4a6..4c8f18d83 100644 --- a/actix_protobuf/enum.ProtoBufPayloadError.html +++ b/actix_protobuf/enum.ProtoBufPayloadError.html @@ -1,4 +1,4 @@ -ProtoBufPayloadError in actix_protobuf - Rust

    Trait Implementations§

    source§

    impl Debug for ProtoBufPayloadError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for ProtoBufPayloadError

    source§

    fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<DecodeError> for ProtoBufPayloadError

    source§

    fn from(err: ProtoBufDecodeError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl From<PayloadError> for ProtoBufPayloadError

    source§

    fn from(err: PayloadError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl ResponseError for ProtoBufPayloadError

    source§

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more
    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Debug for ProtoBufPayloadError

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for ProtoBufPayloadError

    source§

    fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl From<DecodeError> for ProtoBufPayloadError

    source§

    fn from(err: ProtoBufDecodeError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl From<PayloadError> for ProtoBufPayloadError

    source§

    fn from(err: PayloadError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl ResponseError for ProtoBufPayloadError

    source§

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more
    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/actix_protobuf/index.html b/actix_protobuf/index.html index 9dd70aab3..a0b158799 100644 --- a/actix_protobuf/index.html +++ b/actix_protobuf/index.html @@ -1,3 +1,3 @@ -actix_protobuf - Rust

    Crate actix_protobuf

    source ·
    Expand description

    Protobuf payload extractor for Actix Web.

    +actix_protobuf - Rust
    \ No newline at end of file diff --git a/actix_protobuf/struct.ProtoBuf.html b/actix_protobuf/struct.ProtoBuf.html index 7e7f5b8e4..ed8d2bab5 100644 --- a/actix_protobuf/struct.ProtoBuf.html +++ b/actix_protobuf/struct.ProtoBuf.html @@ -1,7 +1,7 @@ -ProtoBuf in actix_protobuf - Rust
    pub struct ProtoBuf<T: Message>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Debug for ProtoBuf<T>where - T: Debug + Message,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T: Message> Deref for ProtoBuf<T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    source§

    impl<T: Message> DerefMut for ProtoBuf<T>

    source§

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    source§

    impl<T> Display for ProtoBuf<T>where - T: Display + Message,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> FromRequest for ProtoBuf<T>where - T: Message + Default + 'static,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Pin<Box<dyn Future<Output = Result<ProtoBuf<T>, Error>>>>

    Future that resolves to a Self. Read more
    source§

    fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T: Message + Default> Responder for ProtoBuf<T>

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>where +ProtoBuf in actix_protobuf - Rust
    pub struct ProtoBuf<T: Message>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

    impl<T> Debug for ProtoBuf<T>where + T: Debug + Message,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T: Message> Deref for ProtoBuf<T>

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    source§

    impl<T: Message> DerefMut for ProtoBuf<T>

    source§

    fn deref_mut(&mut self) -> &mut T

    Mutably dereferences the value.
    source§

    impl<T> Display for ProtoBuf<T>where + T: Display + Message,

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<T> FromRequest for ProtoBuf<T>where + T: Message + Default + 'static,

    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Pin<Box<dyn Future<Output = Result<ProtoBuf<T>, Error>>>>

    Future that resolves to a Self. Read more
    source§

    fn from_request(req: &HttpRequest, payload: &mut Payload) -> Self::Future

    Create a Self from request parts asynchronously.
    §

    fn extract(req: &HttpRequest) -> Self::Future

    Create a Self from request head asynchronously. Read more
    source§

    impl<T: Message + Default> Responder for ProtoBuf<T>

    §

    type Body = BoxBody

    source§

    fn respond_to(self, _: &HttpRequest) -> HttpResponse

    Convert self to HttpResponse.
    §

    fn customize(self) -> CustomizeResponder<Self>where Self: Sized,

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

    impl<T> RefUnwindSafe for ProtoBuf<T>where T: RefUnwindSafe,

    §

    impl<T> Send for ProtoBuf<T>

    §

    impl<T> Sync for ProtoBuf<T>

    §

    impl<T> Unpin for ProtoBuf<T>where T: Unpin,

    §

    impl<T> UnwindSafe for ProtoBuf<T>where diff --git a/actix_protobuf/struct.ProtoBufConfig.html b/actix_protobuf/struct.ProtoBufConfig.html index c52036d9d..d5f416e5f 100644 --- a/actix_protobuf/struct.ProtoBufConfig.html +++ b/actix_protobuf/struct.ProtoBufConfig.html @@ -1,5 +1,5 @@ -ProtoBufConfig in actix_protobuf - Rust
    pub struct ProtoBufConfig { /* private fields */ }

    Implementations§

    source§

    impl ProtoBufConfig

    source

    pub fn limit(&mut self, limit: usize) -> &mut Self

    Change max size of payload. By default max size is 256Kb

    -

    Trait Implementations§

    source§

    impl Default for ProtoBufConfig

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +ProtoBufConfig in actix_protobuf - Rust
    pub struct ProtoBufConfig { /* private fields */ }

    Implementations§

    source§

    impl ProtoBufConfig

    source

    pub fn limit(&mut self, limit: usize) -> &mut Self

    Change max size of payload. By default max size is 256Kb

    +

    Trait Implementations§

    source§

    impl Default for ProtoBufConfig

    source§

    fn default() -> Self

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/actix_protobuf/struct.ProtoBufMessage.html b/actix_protobuf/struct.ProtoBufMessage.html index a28bff049..361be4074 100644 --- a/actix_protobuf/struct.ProtoBufMessage.html +++ b/actix_protobuf/struct.ProtoBufMessage.html @@ -1,6 +1,6 @@ -ProtoBufMessage in actix_protobuf - Rust
    pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }

    Implementations§

    source§

    impl<T: Message + Default> ProtoBufMessage<T>

    source

    pub fn new(req: &HttpRequest, payload: &mut Payload) -> Self

    Create ProtoBufMessage for request.

    -
    source

    pub fn limit(self, limit: usize) -> Self

    Change max size of payload. By default max size is 256Kb

    -

    Trait Implementations§

    source§

    impl<T: Message + Default + 'static> Future for ProtoBufMessage<T>

    §

    type Output = Result<T, ProtoBufPayloadError>

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, task: &mut Context<'_>) -> Poll<Self::Output>

    Attempt to resolve the future to a final value, registering +ProtoBufMessage in actix_protobuf - Rust
    pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }

    Implementations§

    source§

    impl<T: Message + Default> ProtoBufMessage<T>

    source

    pub fn new(req: &HttpRequest, payload: &mut Payload) -> Self

    Create ProtoBufMessage for request.

    +
    source

    pub fn limit(self, limit: usize) -> Self

    Change max size of payload. By default max size is 256Kb

    +

    Trait Implementations§

    source§

    impl<T: Message + Default + 'static> Future for ProtoBufMessage<T>

    §

    type Output = Result<T, ProtoBufPayloadError>

    The type of value produced on completion.
    source§

    fn poll(self: Pin<&mut Self>, task: &mut Context<'_>) -> Poll<Self::Output>

    Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

    Auto Trait Implementations§

    §

    impl<T> !RefUnwindSafe for ProtoBufMessage<T>

    §

    impl<T> !Send for ProtoBufMessage<T>

    §

    impl<T> !Sync for ProtoBufMessage<T>

    §

    impl<T> Unpin for ProtoBufMessage<T>

    §

    impl<T> !UnwindSafe for ProtoBufMessage<T>

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere diff --git a/actix_protobuf/trait.ProtoBufResponseBuilder.html b/actix_protobuf/trait.ProtoBufResponseBuilder.html index eca61766f..0185168c9 100644 --- a/actix_protobuf/trait.ProtoBufResponseBuilder.html +++ b/actix_protobuf/trait.ProtoBufResponseBuilder.html @@ -1,4 +1,4 @@ -ProtoBufResponseBuilder in actix_protobuf - Rust
    pub trait ProtoBufResponseBuilder {
    +ProtoBufResponseBuilder in actix_protobuf - Rust
    pub trait ProtoBufResponseBuilder {
         // Required method
         fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>;
    -}

    Required Methods§

    source

    fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl ProtoBufResponseBuilder for HttpResponseBuilder

    source§

    fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>

    Implementors§

    \ No newline at end of file +}

    Required Methods§

    source

    fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl ProtoBufResponseBuilder for HttpResponseBuilder

    source§

    fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>

    Implementors§

    \ No newline at end of file diff --git a/actix_redis/all.html b/actix_redis/all.html index b19328328..b4135cb3a 100644 --- a/actix_redis/all.html +++ b/actix_redis/all.html @@ -1 +1 @@ -List of all items in this crate

    List of all items

    Structs

    Enums

    Macros

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

    List of all items

    Structs

    Enums

    Macros

    \ No newline at end of file diff --git a/actix_redis/enum.Error.html b/actix_redis/enum.Error.html index c55652447..707fdba24 100644 --- a/actix_redis/enum.Error.html +++ b/actix_redis/enum.Error.html @@ -1,11 +1,11 @@ -Error in actix_redis - Rust

    Enum actix_redis::Error

    source ·
    pub enum Error {
    +Error in actix_redis - Rust

    Enum actix_redis::Error

    source ·
    pub enum Error {
         Redis(Error),
         NotConnected,
         Disconnected,
     }
    Expand description

    General purpose actix-redis error.

    Variants§

    §

    Redis(Error)

    §

    NotConnected

    Receiving message during reconnecting.

    §

    Disconnected

    Cancel all waiters when connection is dropped.

    -

    Trait Implementations§

    source§

    impl Debug for Error

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for Error

    source§

    fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for Error

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    source§

    impl ResponseError for Error

    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Debug for Error

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for Error

    source§

    fn fmt(&self, _derive_more_display_formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Error for Error

    source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    source§

    impl ResponseError for Error

    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/actix_redis/enum.RespError.html b/actix_redis/enum.RespError.html index 4162e4bc6..9fc1ae435 100644 --- a/actix_redis/enum.RespError.html +++ b/actix_redis/enum.RespError.html @@ -1,4 +1,4 @@ -RespError in actix_redis - Rust
    pub enum RespError {
    +RespError in actix_redis - Rust
    pub enum RespError {
         Internal(String),
         IO(Arc<Error>),
         Resp(String, Option<RespValue>),
    @@ -16,7 +16,7 @@ chains of futures; but it occurring at runtime should be considered a catastroph
     failure.

    If any error is propagated this way that needs to be handled, then it should be made into a proper option.

    -

    Trait Implementations§

    §

    impl Clone for Error

    §

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Display for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Error for Error

    §

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    §

    impl From<Error> for Error

    §

    fn from(err: Error) -> Error

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    §

    impl<T> From<TrySendError<T>> for Errorwhere +

    Trait Implementations§

    §

    impl Clone for Error

    §

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Display for Error

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Error for Error

    §

    fn source(&self) -> Option<&(dyn Error + 'static)>

    The lower-level source of this error, if any. Read more
    1.0.0 · source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type based access to context intended for error reports. Read more
    §

    impl From<Error> for Error

    §

    fn from(err: Error) -> Error

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    §

    impl<T> From<TrySendError<T>> for Errorwhere T: 'static + Send,

    §

    fn from(err: TrySendError<T>) -> Error

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere diff --git a/actix_redis/enum.RespValue.html b/actix_redis/enum.RespValue.html index e8bd2b1a9..38fceb398 100644 --- a/actix_redis/enum.RespValue.html +++ b/actix_redis/enum.RespValue.html @@ -1,4 +1,4 @@ -RespValue in actix_redis - Rust
    pub enum RespValue {
    +RespValue in actix_redis - Rust
    pub enum RespValue {
         Nil,
         Array(Vec<RespValue>),
         BulkString(Vec<u8>),
    diff --git a/actix_redis/index.html b/actix_redis/index.html
    index 13267d141..6b106df96 100644
    --- a/actix_redis/index.html
    +++ b/actix_redis/index.html
    @@ -1,4 +1,4 @@
    -actix_redis - Rust

    Crate actix_redis

    source ·
    Expand description

    Redis integration for actix.

    +actix_redis - Rust

    Crate actix_redis

    source ·
    Expand description

    Redis integration for actix.

    Macros

    • Macro to create a RESP array, useful for preparing commands to send. Elements can be any type, or a mixture of types, that satisfy Into<RespValue>.

    Structs

    Enums

    • General purpose actix-redis error.
    • A single RESP value, this owns the data that is read/to-be written to Redis.
    \ No newline at end of file diff --git a/actix_redis/macro.resp_array.html b/actix_redis/macro.resp_array.html index 9bbf38743..14290667d 100644 --- a/actix_redis/macro.resp_array.html +++ b/actix_redis/macro.resp_array.html @@ -1,4 +1,4 @@ -resp_array in actix_redis - Rust
    macro_rules! resp_array {
    +resp_array in actix_redis - Rust
    macro_rules! resp_array {
         ($($e:expr),* $(,)?) => { ... };
     }
    Expand description

    Macro to create a RESP array, useful for preparing commands to send. Elements can be any type, or a mixture of types, that satisfy Into<RespValue>.

    diff --git a/actix_redis/struct.Command.html b/actix_redis/struct.Command.html index 485a980a1..0a6dab06b 100644 --- a/actix_redis/struct.Command.html +++ b/actix_redis/struct.Command.html @@ -1,4 +1,4 @@ -Command in actix_redis - Rust

    Struct actix_redis::Command

    source ·
    pub struct Command(pub RespValue);
    Expand description

    Command for sending data to Redis.

    +Command in actix_redis - Rust

    Struct actix_redis::Command

    source ·
    pub struct Command(pub RespValue);
    Expand description

    Command for sending data to Redis.

    Tuple Fields§

    §0: RespValue

    Trait Implementations§

    source§

    impl Debug for Command

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Handler<Command> for RedisActor

    §

    type Result = Pin<Box<dyn Future<Output = Result<RespValue, Error>>>>

    The type of value that this handler will return. Read more
    source§

    fn handle(&mut self, msg: Command, _: &mut Self::Context) -> Self::Result

    This method is called for every message received by this actor.
    source§

    impl Message for Command

    §

    type Result = Result<RespValue, Error>

    The type of value that this message will resolved with if it is successful.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere diff --git a/actix_redis/struct.RedisActor.html b/actix_redis/struct.RedisActor.html index b26978cfa..341689583 100644 --- a/actix_redis/struct.RedisActor.html +++ b/actix_redis/struct.RedisActor.html @@ -1,4 +1,4 @@ -RedisActor in actix_redis - Rust

    Struct actix_redis::RedisActor

    source ·
    pub struct RedisActor { /* private fields */ }
    Expand description

    Redis communication actor.

    +RedisActor in actix_redis - Rust

    Struct actix_redis::RedisActor

    source ·
    pub struct RedisActor { /* private fields */ }
    Expand description

    Redis communication actor.

    Implementations§

    source§

    impl RedisActor

    source

    pub fn start<S: Into<String>>(addr: S) -> Addr<RedisActor>

    Start new Supervisor with RedisActor.

    Trait Implementations§

    source§

    impl Actor for RedisActor

    §

    type Context = Context<RedisActor>

    Actor execution context type
    source§

    fn started(&mut self, ctx: &mut Context<Self>)

    Called when an actor gets polled the first time.
    §

    fn stopping(&mut self, ctx: &mut Self::Context) -> Running

    Called after an actor is in Actor::Stopping state. Read more
    §

    fn stopped(&mut self, ctx: &mut Self::Context)

    Called after an actor is stopped. Read more
    §

    fn start(self) -> Addr<Self>where Self: Actor<Context = Context<Self>>,

    Start a new asynchronous actor, returning its address. Read more
    §

    fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where diff --git a/actix_settings/index.html b/actix_settings/index.html index f69700497..dfbee107d 100644 --- a/actix_settings/index.html +++ b/actix_settings/index.html @@ -1,5 +1,5 @@ actix_settings - Rust

    Crate actix_settings

    source ·
    Expand description

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

    +
  • All Items
  • Crate actix_settings

    source ·
    Expand description

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

    To get started add a Settings::parse_toml("./Server.toml") call to the top of your main function. This will create a template file with descriptions of all the configurable settings. You can change or remove anything in that file and it will be picked up diff --git a/actix_settings/struct.ActixSettings.html b/actix_settings/struct.ActixSettings.html index bb1d9144f..d8b30283f 100644 --- a/actix_settings/struct.ActixSettings.html +++ b/actix_settings/struct.ActixSettings.html @@ -15,7 +15,7 @@

    }

    Expand description

    Settings types for Actix Web.

    Fields§

    §hosts: Vec<Address>

    List of addresses for the server to bind to.

    §mode: Mode

    Marker of intended deployment environment.

    -
    §enable_compression: bool

    True if the Compress middleware should be enabled.

    +
    §enable_compression: bool

    True if the Compress middleware should be enabled.

    §enable_log: bool

    True if the Logger middleware should be enabled.

    §num_workers: NumWorkers

    The number of workers that the server should start.

    §backlog: Backlog

    The maximum number of pending connections.

    diff --git a/actix_settings/struct.BasicSettings.html b/actix_settings/struct.BasicSettings.html index c32e95841..1514d9bc1 100644 --- a/actix_settings/struct.BasicSettings.html +++ b/actix_settings/struct.BasicSettings.html @@ -1,22 +1,22 @@ -BasicSettings in actix_settings - Rust
    pub struct BasicSettings<A> {
    +BasicSettings in actix_settings - Rust
    pub struct BasicSettings<A> {
         pub actix: ActixSettings,
         pub application: A,
     }
    Expand description

    Wrapper for server and application-specific settings.

    Fields§

    §actix: ActixSettings

    Actix Web server settings.

    §application: A

    Application-specific settings.

    -

    Implementations§

    source§

    impl<A> BasicSettings<A>where - A: DeserializeOwned,

    source

    pub fn parse_toml<P>(filepath: P) -> Result<Self, Error>where +

    Implementations§

    source§

    impl<A> BasicSettings<A>where + A: DeserializeOwned,

    source

    pub fn parse_toml<P>(filepath: P) -> Result<Self, Error>where P: AsRef<Path>,

    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.

    -
    source

    pub fn from_default_template() -> Result<Self, Error>

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

    -
    source

    pub fn from_template(template: &str) -> Result<Self, Error>

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

    -
    source

    pub fn write_toml_file<P>(filepath: P) -> Result<(), Error>where +

    source

    pub fn from_default_template() -> Result<Self, Error>

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

    +
    source

    pub fn from_template(template: &str) -> Result<Self, Error>

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

    +
    source

    pub fn write_toml_file<P>(filepath: P) -> Result<(), Error>where P: AsRef<Path>,

    Writes the default TOML template to a new file, located at filepath.

    Errors

    Returns a FileExists error if a file already exists at that location.

    -
    source

    pub fn override_field<F, V>(field: &mut F, value: V) -> Result<(), Error>where +

    source

    pub fn override_field<F, V>(field: &mut F, value: V) -> Result<(), Error>where F: Parse, V: AsRef<str>,

    Attempts to parse value and override the referenced field.

    Examples
    @@ -27,7 +27,7 @@ location.

    Settings::override_field(&mut settings.actix.mode, "production")?; assert_eq!(settings.actix.mode, Mode::Production);
    -
    source

    pub fn override_field_with_env_var<F, N>( +

    source

    pub fn override_field_with_env_var<F, N>( field: &mut F, var_name: N ) -> Result<(), Error>where @@ -43,13 +43,13 @@ std::env::set_var("OVERRIDE__MODE", &mut settings.actix.mode, "OVERRIDE__MODE")?; assert_eq!(settings.actix.mode, Mode::Production);

    -

    Trait Implementations§

    source§

    impl<A: Clone> Clone for BasicSettings<A>

    source§

    fn clone(&self) -> BasicSettings<A>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<A: Debug> Debug for BasicSettings<A>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de, A> Deserialize<'de> for BasicSettings<A>where - A: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<A: Hash> Hash for BasicSettings<A>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Trait Implementations§

    source§

    impl<A: Clone> Clone for BasicSettings<A>

    source§

    fn clone(&self) -> BasicSettings<A>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<A: Debug> Debug for BasicSettings<A>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de, A> Deserialize<'de> for BasicSettings<A>where + A: Deserialize<'de>,

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl<A: Hash> Hash for BasicSettings<A>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

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

    impl<A: PartialEq> PartialEq for BasicSettings<A>

    source§

    fn eq(&self, other: &BasicSettings<A>) -> bool

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

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

    source§

    impl<A: PartialEq> PartialEq for BasicSettings<A>

    source§

    fn eq(&self, other: &BasicSettings<A>) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl<A: Eq> Eq for BasicSettings<A>

    source§

    impl<A> StructuralEq for BasicSettings<A>

    source§

    impl<A> StructuralPartialEq for BasicSettings<A>

    Auto Trait Implementations§

    §

    impl<A> RefUnwindSafe for BasicSettings<A>where +sufficient, and should not be overridden without very good reason.

    source§

    impl<A: Eq> Eq for BasicSettings<A>

    source§

    impl<A> StructuralEq for BasicSettings<A>

    source§

    impl<A> StructuralPartialEq for BasicSettings<A>

    Auto Trait Implementations§

    §

    impl<A> RefUnwindSafe for BasicSettings<A>where A: RefUnwindSafe,

    §

    impl<A> Send for BasicSettings<A>where A: Send,

    §

    impl<A> Sync for BasicSettings<A>where A: Sync,

    §

    impl<A> Unpin for BasicSettings<A>where diff --git a/actix_settings/struct.NoSettings.html b/actix_settings/struct.NoSettings.html index a06db7d45..668018fe9 100644 --- a/actix_settings/struct.NoSettings.html +++ b/actix_settings/struct.NoSettings.html @@ -1,10 +1,10 @@ -NoSettings in actix_settings - Rust
    #[non_exhaustive]
    pub struct NoSettings {}
    Expand description

    Marker type representing no defined application-specific settings.

    -

    Trait Implementations§

    source§

    impl Clone for NoSettings

    source§

    fn clone(&self) -> NoSettings

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NoSettings

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NoSettings

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where - __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Hash for NoSettings

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +NoSettings in actix_settings - Rust
    #[non_exhaustive]
    pub struct NoSettings {}
    Expand description

    Marker type representing no defined application-specific settings.

    +

    Trait Implementations§

    source§

    impl Clone for NoSettings

    source§

    fn clone(&self) -> NoSettings

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for NoSettings

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<'de> Deserialize<'de> for NoSettings

    source§

    fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where + __D: Deserializer<'de>,

    Deserialize this value from the given Serde deserializer. Read more
    source§

    impl Hash for NoSettings

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

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

    impl PartialEq for NoSettings

    source§

    fn eq(&self, other: &NoSettings) -> bool

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

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

    impl PartialEq for NoSettings

    source§

    fn eq(&self, other: &NoSettings) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for NoSettings

    source§

    impl StructuralEq for NoSettings

    source§

    impl StructuralPartialEq for NoSettings

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +sufficient, and should not be overridden without very good reason.

    source§

    impl Eq for NoSettings

    source§

    impl StructuralEq for NoSettings

    source§

    impl StructuralPartialEq for NoSettings

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<Q, K> Equivalent<K> for Qwhere diff --git a/actix_settings/trait.ApplySettings.html b/actix_settings/trait.ApplySettings.html index a6b7e6be7..415438219 100644 --- a/actix_settings/trait.ApplySettings.html +++ b/actix_settings/trait.ApplySettings.html @@ -1,11 +1,11 @@ -ApplySettings in actix_settings - Rust
    pub trait ApplySettings {
    +ApplySettings in actix_settings - Rust
    pub trait ApplySettings {
         // Required method
         fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Self
            where A: DeserializeOwned;
     }
    Expand description

    Extension trait for applying parsed settings to the server object.

    -

    Required Methods§

    source

    fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Selfwhere +

    Required Methods§

    source

    fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Selfwhere A: DeserializeOwned,

    Apply a BasicSettings value to self.

    -

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<F, I, S, B> ApplySettings for HttpServer<F, I, S, B>where +

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl<F, I, S, B> ApplySettings for HttpServer<F, I, S, B>where F: Fn() -> I + Send + Clone + 'static, I: IntoServiceFactory<S, Request>, S: ServiceFactory<Request, Config = AppConfig> + 'static, @@ -13,5 +13,5 @@ S::InitError: Debug, S::Response: Into<Response<B>> + 'static, S::Future: 'static, - B: MessageBody + 'static,

    source§

    fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Selfwhere + B: MessageBody + 'static,

    source§

    fn apply_settings<A>(self, settings: &BasicSettings<A>) -> Selfwhere A: DeserializeOwned,

    Implementors§

    \ No newline at end of file diff --git a/actix_settings/type.Settings.html b/actix_settings/type.Settings.html index 8f641478d..88463ee7d 100644 --- a/actix_settings/type.Settings.html +++ b/actix_settings/type.Settings.html @@ -1,4 +1,4 @@ -Settings in actix_settings - Rust

    Type Alias actix_settings::Settings

    source ·
    pub type Settings = BasicSettings<NoSettings>;
    Expand description

    Convenience type alias for BasicSettings with no defined application-specific settings.

    +Settings in actix_settings - Rust

    Type Alias actix_settings::Settings

    source ·
    pub type Settings = BasicSettings<NoSettings>;
    Expand description

    Convenience type alias for BasicSettings with no defined application-specific settings.

    Aliased Type§

    struct Settings {
         pub actix: ActixSettings,
         pub application: NoSettings,
    diff --git a/actix_web_httpauth/all.html b/actix_web_httpauth/all.html
    index 26470d02d..bf0325e20 100644
    --- a/actix_web_httpauth/all.html
    +++ b/actix_web_httpauth/all.html
    @@ -1 +1 @@
    -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_web_httpauth/extractors/basic/index.html b/actix_web_httpauth/extractors/basic/index.html index 16531a9c3..cb3fd8eee 100644 --- a/actix_web_httpauth/extractors/basic/index.html +++ b/actix_web_httpauth/extractors/basic/index.html @@ -1,2 +1,2 @@ -actix_web_httpauth::extractors::basic - Rust
    Expand description

    Extractor for the “Basic” HTTP Authentication Scheme.

    +actix_web_httpauth::extractors::basic - Rust
    Expand description

    Extractor for the “Basic” HTTP Authentication Scheme.

    Structs

    \ No newline at end of file diff --git a/actix_web_httpauth/extractors/basic/struct.BasicAuth.html b/actix_web_httpauth/extractors/basic/struct.BasicAuth.html index 13cd28244..1f1c5865c 100644 --- a/actix_web_httpauth/extractors/basic/struct.BasicAuth.html +++ b/actix_web_httpauth/extractors/basic/struct.BasicAuth.html @@ -1,4 +1,4 @@ -BasicAuth in actix_web_httpauth::extractors::basic - Rust
    pub struct BasicAuth(/* private fields */);
    Expand description

    Extractor for HTTP Basic auth.

    +BasicAuth in actix_web_httpauth::extractors::basic - Rust
    pub struct BasicAuth(/* private fields */);
    Expand description

    Extractor for HTTP Basic auth.

    Examples

    use actix_web_httpauth::extractors::basic::BasicAuth;
     
    diff --git a/actix_web_httpauth/extractors/basic/struct.Config.html b/actix_web_httpauth/extractors/basic/struct.Config.html
    index af1c97f79..0b6264f2e 100644
    --- a/actix_web_httpauth/extractors/basic/struct.Config.html
    +++ b/actix_web_httpauth/extractors/basic/struct.Config.html
    @@ -1,4 +1,4 @@
    -Config in actix_web_httpauth::extractors::basic - Rust
    pub struct Config(/* private fields */);
    Expand description

    BasicAuth extractor configuration used for WWW-Authenticate header later.

    +Config in actix_web_httpauth::extractors::basic - Rust
    pub struct Config(/* private fields */);
    Expand description

    BasicAuth extractor configuration used for WWW-Authenticate header later.

    Implementations§

    source§

    impl Config

    source

    pub fn realm<T>(self, value: T) -> Configwhere T: Into<Cow<'static, str>>,

    Set challenge realm attribute.

    The “realm” attribute indicates the scope of protection in the manner described in HTTP/1.1 diff --git a/actix_web_httpauth/extractors/bearer/enum.Error.html b/actix_web_httpauth/extractors/bearer/enum.Error.html index 1806ef90f..86bae5fb8 100644 --- a/actix_web_httpauth/extractors/bearer/enum.Error.html +++ b/actix_web_httpauth/extractors/bearer/enum.Error.html @@ -1,4 +1,4 @@ -Error in actix_web_httpauth::extractors::bearer - Rust

    pub enum Error {
    +Error in actix_web_httpauth::extractors::bearer - Rust
    pub enum Error {
         InvalidRequest,
         InvalidToken,
         InsufficientScope,
    diff --git a/actix_web_httpauth/extractors/bearer/index.html b/actix_web_httpauth/extractors/bearer/index.html
    index 2889a61a8..df61ed459 100644
    --- a/actix_web_httpauth/extractors/bearer/index.html
    +++ b/actix_web_httpauth/extractors/bearer/index.html
    @@ -1,2 +1,2 @@
    -actix_web_httpauth::extractors::bearer - Rust
    Expand description

    Extractor for the “Bearer” HTTP Authentication Scheme.

    +actix_web_httpauth::extractors::bearer - Rust
    Expand description

    Extractor for the “Bearer” HTTP Authentication Scheme.

    Structs

    Enums

    \ No newline at end of file diff --git a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html index fab504e6b..73c77da6c 100644 --- a/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html +++ b/actix_web_httpauth/extractors/bearer/struct.BearerAuth.html @@ -1,4 +1,4 @@ -BearerAuth in actix_web_httpauth::extractors::bearer - Rust
    pub struct BearerAuth(/* private fields */);
    Expand description

    Extractor for HTTP Bearer auth

    +BearerAuth in actix_web_httpauth::extractors::bearer - Rust
    pub struct BearerAuth(/* private fields */);
    Expand description

    Extractor for HTTP Bearer auth

    Examples

    use actix_web_httpauth::extractors::bearer::BearerAuth;
     
    diff --git a/actix_web_httpauth/extractors/bearer/struct.Config.html b/actix_web_httpauth/extractors/bearer/struct.Config.html
    index d3e1fc1ff..7164d581d 100644
    --- a/actix_web_httpauth/extractors/bearer/struct.Config.html
    +++ b/actix_web_httpauth/extractors/bearer/struct.Config.html
    @@ -1,4 +1,4 @@
    -Config in actix_web_httpauth::extractors::bearer - Rust
    pub struct Config(/* private fields */);
    Expand description

    BearerAuth extractor configuration.

    +Config in actix_web_httpauth::extractors::bearer - Rust
    pub struct Config(/* private fields */);
    Expand description

    BearerAuth extractor configuration.

    Implementations§

    source§

    impl Config

    source

    pub fn scope<T: Into<Cow<'static, str>>>(self, value: T) -> Config

    Set challenge scope attribute.

    The "scope" attribute is a space-delimited list of case-sensitive scope values indicating the required scope of the access token for diff --git a/actix_web_httpauth/extractors/index.html b/actix_web_httpauth/extractors/index.html index 1b818d522..6c39e1404 100644 --- a/actix_web_httpauth/extractors/index.html +++ b/actix_web_httpauth/extractors/index.html @@ -1,3 +1,3 @@ -actix_web_httpauth::extractors - Rust

    Expand description

    Type-safe authentication information extractors.

    +actix_web_httpauth::extractors - Rust
    Expand description

    Type-safe authentication information extractors.

    Modules

    • Extractor for the “Basic” HTTP Authentication Scheme.
    • Extractor for the “Bearer” HTTP Authentication Scheme.

    Structs

    Traits

    \ No newline at end of file +extractors.
    \ No newline at end of file diff --git a/actix_web_httpauth/extractors/struct.AuthenticationError.html b/actix_web_httpauth/extractors/struct.AuthenticationError.html index 10e8bde2c..e120dad58 100644 --- a/actix_web_httpauth/extractors/struct.AuthenticationError.html +++ b/actix_web_httpauth/extractors/struct.AuthenticationError.html @@ -1,4 +1,4 @@ -AuthenticationError in actix_web_httpauth::extractors - Rust
    pub struct AuthenticationError<C: Challenge> { /* private fields */ }
    Expand description

    Authentication error returned by authentication extractors.

    +AuthenticationError in actix_web_httpauth::extractors - Rust
    pub struct AuthenticationError<C: Challenge> { /* private fields */ }
    Expand description

    Authentication error returned by authentication extractors.

    Different extractors may extend AuthenticationError implementation in order to provide access inner challenge fields.

    Implementations§

    source§

    impl AuthenticationError<Bearer>

    Extended error customization for HTTP Bearer auth.

    diff --git a/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html b/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html index 1471f4ff7..60c26bf4d 100644 --- a/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html +++ b/actix_web_httpauth/extractors/trait.AuthExtractorConfig.html @@ -1,10 +1,10 @@ -AuthExtractorConfig in actix_web_httpauth::extractors - Rust
    pub trait AuthExtractorConfig {
    +AuthExtractorConfig in actix_web_httpauth::extractors - Rust
    pub trait AuthExtractorConfig {
         type Inner: Challenge;
     
         // Required method
         fn into_inner(self) -> Self::Inner;
     }
    Expand description

    Trait implemented for types that provides configuration for the authentication -extractors.

    +extractors.

    Required Associated Types§

    source

    type Inner: Challenge

    Associated challenge type.

    Required Methods§

    source

    fn into_inner(self) -> Self::Inner

    Convert the config instance into a HTTP challenge.

    Implementors§

    source§

    impl AuthExtractorConfig for actix_web_httpauth::extractors::basic::Config

    §

    type Inner = Basic

    source§

    impl AuthExtractorConfig for actix_web_httpauth::extractors::bearer::Config

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/authorization/enum.ParseError.html b/actix_web_httpauth/headers/authorization/enum.ParseError.html index b7ae9ff75..1d13e1e3e 100644 --- a/actix_web_httpauth/headers/authorization/enum.ParseError.html +++ b/actix_web_httpauth/headers/authorization/enum.ParseError.html @@ -1,4 +1,4 @@ -ParseError in actix_web_httpauth::headers::authorization - Rust
    pub enum ParseError {
    +ParseError in actix_web_httpauth::headers::authorization - Rust
    pub enum ParseError {
         Invalid,
         MissingScheme,
         MissingField(&'static str),
    diff --git a/actix_web_httpauth/headers/authorization/index.html b/actix_web_httpauth/headers/authorization/index.html
    index f3252d926..ccd8c75b0 100644
    --- a/actix_web_httpauth/headers/authorization/index.html
    +++ b/actix_web_httpauth/headers/authorization/index.html
    @@ -1,2 +1,2 @@
    -actix_web_httpauth::headers::authorization - Rust
    Expand description

    Authorization header and various auth schemes.

    +actix_web_httpauth::headers::authorization - Rust
    Expand description

    Authorization header and various auth schemes.

    Structs

    Enums

    • Possible errors while parsing Authorization header.

    Traits

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/authorization/struct.Authorization.html b/actix_web_httpauth/headers/authorization/struct.Authorization.html index 5d3891f89..9e67ec604 100644 --- a/actix_web_httpauth/headers/authorization/struct.Authorization.html +++ b/actix_web_httpauth/headers/authorization/struct.Authorization.html @@ -1,4 +1,4 @@ -Authorization in actix_web_httpauth::headers::authorization - Rust
    pub struct Authorization<S: Scheme>(/* private fields */);
    Expand description

    Authorization header, defined in RFC 7235

    +Authorization in actix_web_httpauth::headers::authorization - Rust
    pub struct Authorization<S: Scheme>(/* private fields */);
    Expand description

    Authorization header, defined in RFC 7235

    The “Authorization” header field allows a user agent to authenticate itself with an origin server—usually, but not necessarily, after receiving a 401 (Unauthorized) response. Its value consists of credentials containing the authentication information of the user agent for the diff --git a/actix_web_httpauth/headers/authorization/struct.Basic.html b/actix_web_httpauth/headers/authorization/struct.Basic.html index 4ee211650..27b1d254a 100644 --- a/actix_web_httpauth/headers/authorization/struct.Basic.html +++ b/actix_web_httpauth/headers/authorization/struct.Basic.html @@ -1,4 +1,4 @@ -Basic in actix_web_httpauth::headers::authorization - Rust

    pub struct Basic { /* private fields */ }
    Expand description

    Credentials for Basic authentication scheme, defined in RFC 7617

    +Basic in actix_web_httpauth::headers::authorization - Rust
    pub struct Basic { /* private fields */ }
    Expand description

    Credentials for Basic authentication scheme, defined in RFC 7617

    Implementations§

    source§

    impl Basic

    source

    pub fn new<U, P>(user_id: U, password: Option<P>) -> Basicwhere U: Into<Cow<'static, str>>, P: Into<Cow<'static, str>>,

    Creates Basic credentials with provided user_id and optional diff --git a/actix_web_httpauth/headers/authorization/struct.Bearer.html b/actix_web_httpauth/headers/authorization/struct.Bearer.html index f04308ccf..125193e95 100644 --- a/actix_web_httpauth/headers/authorization/struct.Bearer.html +++ b/actix_web_httpauth/headers/authorization/struct.Bearer.html @@ -1,18 +1,18 @@ -Bearer in actix_web_httpauth::headers::authorization - Rust

    pub struct Bearer { /* private fields */ }
    Expand description

    Credentials for Bearer authentication scheme, defined in RFC 6750.

    -

    Should be used in combination with Authorization header.

    -

    Implementations§

    source§

    impl Bearer

    source

    pub fn new<T>(token: T) -> Bearerwhere +Bearer in actix_web_httpauth::headers::authorization - Rust
    pub struct Bearer { /* private fields */ }
    Expand description

    Credentials for Bearer authentication scheme, defined in RFC 6750.

    +

    Should be used in combination with Authorization header.

    +

    Implementations§

    source§

    impl Bearer

    source

    pub fn new<T>(token: T) -> Bearerwhere T: Into<Cow<'static, str>>,

    Creates new Bearer credentials with the token provided.

    Example
    let credentials = Bearer::new("mF_9.B5f-4.1JqM");
    -
    source

    pub fn token(&self) -> &str

    Gets reference to the credentials token.

    -

    Trait Implementations§

    source§

    impl Clone for Bearer

    source§

    fn clone(&self) -> Bearer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Bearer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for Bearer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Ord for Bearer

    source§

    fn cmp(&self, other: &Bearer) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere +

    source

    pub fn token(&self) -> &str

    Gets reference to the credentials token.

    +

    Trait Implementations§

    source§

    impl Clone for Bearer

    source§

    fn clone(&self) -> Bearer

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Bearer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Display for Bearer

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Ord for Bearer

    source§

    fn cmp(&self, other: &Bearer) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · source§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · source§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · source§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Bearer

    source§

    fn eq(&self, other: &Bearer) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq for Bearer

    source§

    fn eq(&self, other: &Bearer) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Bearer

    source§

    fn partial_cmp(&self, other: &Bearer) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd for Bearer

    source§

    fn partial_cmp(&self, other: &Bearer) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · source§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · source§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · source§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · source§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Scheme for Bearer

    source§

    fn parse(header: &HeaderValue) -> Result<Self, ParseError>

    Try to parse an authentication scheme from the Authorization header.
    source§

    impl TryIntoHeaderValue for Bearer

    §

    type Error = InvalidHeaderValue

    The type returned in the event of a conversion error.
    source§

    fn try_into_value(self) -> Result<HeaderValue, Self::Error>

    Try to convert value to a HeaderValue.
    source§

    impl Eq for Bearer

    source§

    impl StructuralEq for Bearer

    source§

    impl StructuralPartialEq for Bearer

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Scheme for Bearer

    source§

    fn parse(header: &HeaderValue) -> Result<Self, ParseError>

    Try to parse an authentication scheme from the Authorization header.
    source§

    impl TryIntoHeaderValue for Bearer

    §

    type Error = InvalidHeaderValue

    The type returned in the event of a conversion error.
    source§

    fn try_into_value(self) -> Result<HeaderValue, Self::Error>

    Try to convert value to a HeaderValue.
    source§

    impl Eq for Bearer

    source§

    impl StructuralEq for Bearer

    source§

    impl StructuralPartialEq for Bearer

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<T> Any for Twhere T: 'static + ?Sized,

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for Twhere T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    source§

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/actix_web_httpauth/headers/authorization/trait.Scheme.html b/actix_web_httpauth/headers/authorization/trait.Scheme.html index dcaa5c534..ed2d919f7 100644 --- a/actix_web_httpauth/headers/authorization/trait.Scheme.html +++ b/actix_web_httpauth/headers/authorization/trait.Scheme.html @@ -1,6 +1,6 @@ -Scheme in actix_web_httpauth::headers::authorization - Rust
    pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
    +Scheme in actix_web_httpauth::headers::authorization - Rust
    pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
         // Required method
         fn parse(header: &HeaderValue) -> Result<Self, ParseError>;
     }
    Expand description

    Authentication scheme for Authorization header.

    Required Methods§

    source

    fn parse(header: &HeaderValue) -> Result<Self, ParseError>

    Try to parse an authentication scheme from the Authorization header.

    -

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file +

    Object Safety§

    This trait is not object safe.

    Implementors§

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/index.html b/actix_web_httpauth/headers/index.html index 9cdd2270d..923764ce0 100644 --- a/actix_web_httpauth/headers/index.html +++ b/actix_web_httpauth/headers/index.html @@ -1,2 +1,2 @@ -actix_web_httpauth::headers - Rust
    Expand description

    Typed HTTP headers.

    +actix_web_httpauth::headers - Rust
    Expand description

    Typed HTTP headers.

    Modules

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/www_authenticate/basic/index.html b/actix_web_httpauth/headers/www_authenticate/basic/index.html index b25b070e9..a1638175f 100644 --- a/actix_web_httpauth/headers/www_authenticate/basic/index.html +++ b/actix_web_httpauth/headers/www_authenticate/basic/index.html @@ -1,3 +1,3 @@ -actix_web_httpauth::headers::www_authenticate::basic - Rust
    Expand description

    Challenge for the “Basic” HTTP Authentication Scheme.

    +actix_web_httpauth::headers::www_authenticate::basic - Rust
    Expand description

    Challenge for the “Basic” HTTP Authentication Scheme.

    Structs

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html b/actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html index 30c5eaded..eec8fe0c6 100644 --- a/actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html +++ b/actix_web_httpauth/headers/www_authenticate/basic/struct.Basic.html @@ -1,4 +1,4 @@ -Basic in actix_web_httpauth::headers::www_authenticate::basic - Rust
    pub struct Basic { /* private fields */ }
    Expand description

    Challenge for WWW-Authenticate header with HTTP Basic auth scheme, +Basic in actix_web_httpauth::headers::www_authenticate::basic - Rust

    pub struct Basic { /* private fields */ }
    Expand description

    Challenge for WWW-Authenticate header with HTTP Basic auth scheme, described in RFC 7617

    Examples

    use actix_web_httpauth::headers::www_authenticate::basic::Basic;
    diff --git a/actix_web_httpauth/headers/www_authenticate/bearer/enum.Error.html b/actix_web_httpauth/headers/www_authenticate/bearer/enum.Error.html
    index 505eb0df8..117edaecf 100644
    --- a/actix_web_httpauth/headers/www_authenticate/bearer/enum.Error.html
    +++ b/actix_web_httpauth/headers/www_authenticate/bearer/enum.Error.html
    @@ -1,4 +1,4 @@
    -Error in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub enum Error {
    +Error in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub enum Error {
         InvalidRequest,
         InvalidToken,
         InsufficientScope,
    diff --git a/actix_web_httpauth/headers/www_authenticate/bearer/index.html b/actix_web_httpauth/headers/www_authenticate/bearer/index.html
    index 37f7b9324..fe7926c62 100644
    --- a/actix_web_httpauth/headers/www_authenticate/bearer/index.html
    +++ b/actix_web_httpauth/headers/www_authenticate/bearer/index.html
    @@ -1,2 +1,2 @@
    -actix_web_httpauth::headers::www_authenticate::bearer - Rust
    Expand description

    Challenge for the “Bearer” HTTP Authentication Scheme.

    +actix_web_httpauth::headers::www_authenticate::bearer - Rust
    Expand description

    Challenge for the “Bearer” HTTP Authentication Scheme.

    Structs

    Enums

    \ No newline at end of file diff --git a/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html b/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html index 97b551f12..4190561e3 100644 --- a/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html +++ b/actix_web_httpauth/headers/www_authenticate/bearer/struct.Bearer.html @@ -1,4 +1,4 @@ -Bearer in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub struct Bearer { /* private fields */ }
    Expand description

    Challenge for WWW-Authenticate header with HTTP Bearer auth scheme, described in RFC 6750.

    +Bearer in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub struct Bearer { /* private fields */ }
    Expand description

    Challenge for WWW-Authenticate header with HTTP Bearer auth scheme, described in RFC 6750.

    Examples

    use actix_web_httpauth::headers::www_authenticate::bearer::{
         Bearer, Error,
    diff --git a/actix_web_httpauth/headers/www_authenticate/bearer/struct.BearerBuilder.html b/actix_web_httpauth/headers/www_authenticate/bearer/struct.BearerBuilder.html
    index a2cac2c0c..6d4801250 100644
    --- a/actix_web_httpauth/headers/www_authenticate/bearer/struct.BearerBuilder.html
    +++ b/actix_web_httpauth/headers/www_authenticate/bearer/struct.BearerBuilder.html
    @@ -1,4 +1,4 @@
    -BearerBuilder in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub struct BearerBuilder(/* private fields */);
    Expand description

    Builder for the Bearer challenge.

    +BearerBuilder in actix_web_httpauth::headers::www_authenticate::bearer - Rust
    pub struct BearerBuilder(/* private fields */);
    Expand description

    Builder for the Bearer challenge.

    It is up to implementor to fill all required fields, neither this Builder nor Bearer provide any validation.

    Implementations§

    source§

    impl BearerBuilder

    source

    pub fn scope<T>(self, value: T) -> Selfwhere diff --git a/actix_web_httpauth/headers/www_authenticate/index.html b/actix_web_httpauth/headers/www_authenticate/index.html index fe499e160..9080570f7 100644 --- a/actix_web_httpauth/headers/www_authenticate/index.html +++ b/actix_web_httpauth/headers/www_authenticate/index.html @@ -1,2 +1,2 @@ -actix_web_httpauth::headers::www_authenticate - Rust
    Expand description

    WWW-Authenticate header and various auth challenges.

    +actix_web_httpauth::headers::www_authenticate - Rust
    Expand description

    WWW-Authenticate header and various auth challenges.

    Modules

    • Challenge for the “Basic” HTTP Authentication Scheme.
    • Challenge for the “Bearer” HTTP Authentication Scheme.

    Structs

    Traits

    • Authentication challenge for WWW-Authenticate header.
    \ No newline at end of file diff --git a/actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html b/actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html index 80e516268..b8acac818 100644 --- a/actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html +++ b/actix_web_httpauth/headers/www_authenticate/struct.WwwAuthenticate.html @@ -1,4 +1,4 @@ -WwwAuthenticate in actix_web_httpauth::headers::www_authenticate - Rust
    pub struct WwwAuthenticate<C: Challenge>(pub C);
    Expand description

    WWW-Authenticate header, described in RFC 7235.

    +WwwAuthenticate in actix_web_httpauth::headers::www_authenticate - Rust
    pub struct WwwAuthenticate<C: Challenge>(pub C);
    Expand description

    WWW-Authenticate header, described in RFC 7235.

    This header is generic over the Challenge trait, see Basic and Bearer challenges for details.

    Tuple Fields§

    §0: C

    Trait Implementations§

    source§

    impl<C: Clone + Challenge> Clone for WwwAuthenticate<C>

    source§

    fn clone(&self) -> WwwAuthenticate<C>

    Returns a copy of the value. Read more
    1.0.0 · source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl<C: Debug + Challenge> Debug for WwwAuthenticate<C>

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl<C: Default + Challenge> Default for WwwAuthenticate<C>

    source§

    fn default() -> WwwAuthenticate<C>

    Returns the “default value” for a type. Read more
    source§

    impl<C: Hash + Challenge> Hash for WwwAuthenticate<C>

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given Hasher. Read more
    1.3.0 · source§

    fn hash_slice<H>(data: &[Self], state: &mut H)where diff --git a/actix_web_httpauth/headers/www_authenticate/trait.Challenge.html b/actix_web_httpauth/headers/www_authenticate/trait.Challenge.html index 403a59041..7fd6e8f0a 100644 --- a/actix_web_httpauth/headers/www_authenticate/trait.Challenge.html +++ b/actix_web_httpauth/headers/www_authenticate/trait.Challenge.html @@ -1,4 +1,4 @@ -Challenge in actix_web_httpauth::headers::www_authenticate - Rust
    pub trait Challenge: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
    +Challenge in actix_web_httpauth::headers::www_authenticate - Rust
    pub trait Challenge: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
         // Required method
         fn to_bytes(&self) -> Bytes;
     }
    Expand description

    Authentication challenge for WWW-Authenticate header.

    diff --git a/actix_web_httpauth/index.html b/actix_web_httpauth/index.html index 58176b3b4..b8469924b 100644 --- a/actix_web_httpauth/index.html +++ b/actix_web_httpauth/index.html @@ -1,5 +1,5 @@ -actix_web_httpauth - Rust
    Expand description

    HTTP authentication schemes for Actix Web.

    +actix_web_httpauth - Rust
    Expand description

    HTTP authentication schemes for Actix Web.

    Provides:

    • Typed Authorization and WWW-Authenticate headers
    • diff --git a/actix_web_httpauth/middleware/index.html b/actix_web_httpauth/middleware/index.html index b8ca437ae..4fea40aef 100644 --- a/actix_web_httpauth/middleware/index.html +++ b/actix_web_httpauth/middleware/index.html @@ -1,2 +1,2 @@ -actix_web_httpauth::middleware - Rust
      Expand description

      HTTP Authentication middleware.

      +actix_web_httpauth::middleware - Rust
      Expand description

      HTTP Authentication middleware.

      Structs

      \ No newline at end of file diff --git a/actix_web_httpauth/middleware/struct.HttpAuthentication.html b/actix_web_httpauth/middleware/struct.HttpAuthentication.html index c97cc03b5..be08c9da2 100644 --- a/actix_web_httpauth/middleware/struct.HttpAuthentication.html +++ b/actix_web_httpauth/middleware/struct.HttpAuthentication.html @@ -1,4 +1,4 @@ -HttpAuthentication in actix_web_httpauth::middleware - Rust
      pub struct HttpAuthentication<T, F>where
      +HttpAuthentication in actix_web_httpauth::middleware - Rust
      pub struct HttpAuthentication<T, F>where
           T: FromRequest,{ /* private fields */ }
      Expand description

      Middleware for checking HTTP authentication.

      If there is no Authorization header in the request, this middleware returns an error immediately, without calling the F callback.

      diff --git a/help.html b/help.html index b6aa034ea..7e6d49454 100644 --- a/help.html +++ b/help.html @@ -1 +1 @@ -Help

      Rustdoc help

      Back
      \ No newline at end of file +Help

      Rustdoc help

      Back
      \ No newline at end of file diff --git a/settings.html b/settings.html index f113c94d2..3b4c261f1 100644 --- a/settings.html +++ b/settings.html @@ -1 +1 @@ -Settings

      Rustdoc settings

      Back
      \ No newline at end of file +Settings

      Rustdoc settings

      Back
      \ No newline at end of file diff --git a/src/actix_identity/config.rs.html b/src/actix_identity/config.rs.html index f3f3ad975..57439bb08 100644 --- a/src/actix_identity/config.rs.html +++ b/src/actix_identity/config.rs.html @@ -1,4 +1,4 @@ -config.rs - source
      1
      +config.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_identity/error.rs.html b/src/actix_identity/error.rs.html
      index 8559c1ec6..26af3004b 100644
      --- a/src/actix_identity/error.rs.html
      +++ b/src/actix_identity/error.rs.html
      @@ -1,4 +1,4 @@
      -error.rs - source
      1
      +error.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_identity/identity.rs.html b/src/actix_identity/identity.rs.html
      index 2e2fb6088..ef0ac617a 100644
      --- a/src/actix_identity/identity.rs.html
      +++ b/src/actix_identity/identity.rs.html
      @@ -1,4 +1,4 @@
      -identity.rs - source
      1
      +identity.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_identity/identity_ext.rs.html b/src/actix_identity/identity_ext.rs.html
      index 885774210..27a2b7dfa 100644
      --- a/src/actix_identity/identity_ext.rs.html
      +++ b/src/actix_identity/identity_ext.rs.html
      @@ -1,4 +1,4 @@
      -identity_ext.rs - source
      1
      +identity_ext.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_identity/lib.rs.html b/src/actix_identity/lib.rs.html
      index 7cc69adf2..586bada97 100644
      --- a/src/actix_identity/lib.rs.html
      +++ b/src/actix_identity/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source
      1
      +lib.rs - source
      1
       2
       3
       4
      @@ -97,6 +97,9 @@
       97
       98
       99
      +100
      +101
      +102
       
      //! Identity management for Actix Web.
       //!
       //! `actix-identity` can be used to track identity of a user across multiple requests. It is built
      @@ -188,6 +191,9 @@
       #![forbid(unsafe_code)]
       #![deny(rust_2018_idioms, nonstandard_style, missing_docs)]
       #![warn(future_incompatible)]
      +#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
      +#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       pub mod config;
       pub mod error;
      diff --git a/src/actix_identity/middleware.rs.html b/src/actix_identity/middleware.rs.html
      index b6280a481..800774c37 100644
      --- a/src/actix_identity/middleware.rs.html
      +++ b/src/actix_identity/middleware.rs.html
      @@ -1,4 +1,4 @@
      -middleware.rs - source
      1
      +middleware.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_limitation/lib.rs.html b/src/actix_limitation/lib.rs.html
      index 02e16cd1c..fdad2acb4 100644
      --- a/src/actix_limitation/lib.rs.html
      +++ b/src/actix_limitation/lib.rs.html
      @@ -177,6 +177,7 @@
       177
       178
       179
      +180
       
      //! Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.
       //!
       //! ```toml
      @@ -228,6 +229,7 @@
       #![warn(future_incompatible, missing_docs, missing_debug_implementations)]
       #![doc(html_logo_url = "https://actix.rs/img/logo.png")]
       #![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       use std::{borrow::Cow, fmt, sync::Arc, time::Duration};
       
      diff --git a/src/actix_protobuf/lib.rs.html b/src/actix_protobuf/lib.rs.html
      index ea7bbbecd..59c793cff 100644
      --- a/src/actix_protobuf/lib.rs.html
      +++ b/src/actix_protobuf/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source
      1
      +lib.rs - source
      1
       2
       3
       4
      @@ -333,11 +333,17 @@
       333
       334
       335
      +336
      +337
      +338
       
      //! Protobuf payload extractor for Actix Web.
       
       #![forbid(unsafe_code)]
       #![deny(rust_2018_idioms, nonstandard_style)]
       #![warn(future_incompatible)]
      +#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
      +#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       use std::{
           fmt,
      diff --git a/src/actix_redis/lib.rs.html b/src/actix_redis/lib.rs.html
      index 6d475d9fc..288e845fb 100644
      --- a/src/actix_redis/lib.rs.html
      +++ b/src/actix_redis/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source
      1
      +lib.rs - source
      1
       2
       3
       4
      @@ -27,11 +27,17 @@
       27
       28
       29
      +30
      +31
      +32
       
      //! Redis integration for `actix`.
       
       #![forbid(unsafe_code)]
       #![deny(rust_2018_idioms, nonstandard_style)]
       #![warn(future_incompatible)]
      +#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
      +#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       use derive_more::{Display, Error, From};
       pub use redis_async::{error::Error as RespError, resp::RespValue, resp_array};
      diff --git a/src/actix_redis/redis.rs.html b/src/actix_redis/redis.rs.html
      index 77d3a00e3..795726db1 100644
      --- a/src/actix_redis/redis.rs.html
      +++ b/src/actix_redis/redis.rs.html
      @@ -1,4 +1,4 @@
      -redis.rs - source
      1
      +redis.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_settings/lib.rs.html b/src/actix_settings/lib.rs.html
      index 52ab340cd..6ed6da711 100644
      --- a/src/actix_settings/lib.rs.html
      +++ b/src/actix_settings/lib.rs.html
      @@ -810,6 +810,7 @@
       810
       811
       812
      +813
       
      //! Easily manage Actix Web's settings from a TOML file and environment variables.
       //!
       //! To get started add a [`Settings::parse_toml("./Server.toml")`](Settings::parse_toml) call to the
      @@ -877,6 +878,7 @@
       #![warn(future_incompatible, missing_docs, missing_debug_implementations)]
       #![doc(html_logo_url = "https://actix.rs/img/logo.png")]
       #![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       use std::{
           env, fmt,
      diff --git a/src/actix_settings/settings/mod.rs.html b/src/actix_settings/settings/mod.rs.html
      index 410d65e98..8c4e0a882 100644
      --- a/src/actix_settings/settings/mod.rs.html
      +++ b/src/actix_settings/settings/mod.rs.html
      @@ -87,7 +87,7 @@
           /// Marker of intended deployment environment.
           pub mode: Mode,
       
      -    /// True if the [`Compress`](actix_web::middleware::Compress) middleware should be enabled.
      +    /// True if the `Compress` middleware should be enabled.
           pub enable_compression: bool,
       
           /// True if the [`Logger`](actix_web::middleware::Logger) middleware should be enabled.
      diff --git a/src/actix_web_httpauth/extractors/basic.rs.html b/src/actix_web_httpauth/extractors/basic.rs.html
      index 5674ab53d..53ca38745 100644
      --- a/src/actix_web_httpauth/extractors/basic.rs.html
      +++ b/src/actix_web_httpauth/extractors/basic.rs.html
      @@ -1,4 +1,4 @@
      -basic.rs - source
      1
      +basic.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/extractors/bearer.rs.html b/src/actix_web_httpauth/extractors/bearer.rs.html
      index d88145a81..ce7712a8e 100644
      --- a/src/actix_web_httpauth/extractors/bearer.rs.html
      +++ b/src/actix_web_httpauth/extractors/bearer.rs.html
      @@ -1,4 +1,4 @@
      -bearer.rs - source
      1
      +bearer.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/extractors/config.rs.html b/src/actix_web_httpauth/extractors/config.rs.html
      index 78b5667c5..176ef68f5 100644
      --- a/src/actix_web_httpauth/extractors/config.rs.html
      +++ b/src/actix_web_httpauth/extractors/config.rs.html
      @@ -1,4 +1,4 @@
      -config.rs - source
      1
      +config.rs - source
      1
       2
       3
       4
      @@ -23,7 +23,7 @@
       use crate::headers::www_authenticate::Challenge;
       
       /// Trait implemented for types that provides configuration for the authentication
      -/// [extractors](super::AuthExtractor).
      +/// [extractors](crate::extractors).
       pub trait AuthExtractorConfig {
           /// Associated challenge type.
           type Inner: Challenge;
      diff --git a/src/actix_web_httpauth/extractors/errors.rs.html b/src/actix_web_httpauth/extractors/errors.rs.html
      index fee90ef49..2da15022e 100644
      --- a/src/actix_web_httpauth/extractors/errors.rs.html
      +++ b/src/actix_web_httpauth/extractors/errors.rs.html
      @@ -1,4 +1,4 @@
      -errors.rs - source
      1
      +errors.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/extractors/mod.rs.html b/src/actix_web_httpauth/extractors/mod.rs.html
      index 94f4f1679..2328eff89 100644
      --- a/src/actix_web_httpauth/extractors/mod.rs.html
      +++ b/src/actix_web_httpauth/extractors/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/authorization/errors.rs.html b/src/actix_web_httpauth/headers/authorization/errors.rs.html
      index 02b3d4c74..c4c6bdf70 100644
      --- a/src/actix_web_httpauth/headers/authorization/errors.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/errors.rs.html
      @@ -1,4 +1,4 @@
      -errors.rs - source
      1
      +errors.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/authorization/header.rs.html b/src/actix_web_httpauth/headers/authorization/header.rs.html
      index af925b8bf..a8255399e 100644
      --- a/src/actix_web_httpauth/headers/authorization/header.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/header.rs.html
      @@ -1,4 +1,4 @@
      -header.rs - source
      1
      +header.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/authorization/mod.rs.html b/src/actix_web_httpauth/headers/authorization/mod.rs.html
      index 938bb1dca..6b47d97ef 100644
      --- a/src/actix_web_httpauth/headers/authorization/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/authorization/scheme/basic.rs.html b/src/actix_web_httpauth/headers/authorization/scheme/basic.rs.html
      index ec7d6c359..c05213f43 100644
      --- a/src/actix_web_httpauth/headers/authorization/scheme/basic.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/scheme/basic.rs.html
      @@ -1,4 +1,4 @@
      -basic.rs - source
      1
      +basic.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/authorization/scheme/bearer.rs.html b/src/actix_web_httpauth/headers/authorization/scheme/bearer.rs.html
      index 877f480db..5e6f9ad03 100644
      --- a/src/actix_web_httpauth/headers/authorization/scheme/bearer.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/scheme/bearer.rs.html
      @@ -1,4 +1,4 @@
      -bearer.rs - source
      1
      +bearer.rs - source
      1
       2
       3
       4
      @@ -136,6 +136,7 @@
       136
       137
       138
      +139
       
      use std::{borrow::Cow, fmt};
       
       use actix_web::{
      @@ -147,9 +148,10 @@
       
       /// Credentials for `Bearer` authentication scheme, defined in [RFC 6750].
       ///
      -/// Should be used in combination with [`Authorization`](super::Authorization) header.
      +/// Should be used in combination with [`Authorization`] header.
       ///
       /// [RFC 6750]: https://tools.ietf.org/html/rfc6750
      +/// [`Authorization`]: crate::headers::authorization::Authorization
       #[derive(Clone, Eq, Ord, PartialEq, PartialOrd)]
       pub struct Bearer {
           token: Cow<'static, str>,
      diff --git a/src/actix_web_httpauth/headers/authorization/scheme/mod.rs.html b/src/actix_web_httpauth/headers/authorization/scheme/mod.rs.html
      index 6dfa2a953..a3a02e40c 100644
      --- a/src/actix_web_httpauth/headers/authorization/scheme/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/authorization/scheme/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/mod.rs.html b/src/actix_web_httpauth/headers/mod.rs.html
      index 6d5f9a523..3a9260a5e 100644
      --- a/src/actix_web_httpauth/headers/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/basic.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/basic.rs.html
      index ef5917c1c..c691c91af 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/basic.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/basic.rs.html
      @@ -1,4 +1,4 @@
      -basic.rs - source
      1
      +basic.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/builder.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/builder.rs.html
      index 03f184dd8..6d7d0191e 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/builder.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/builder.rs.html
      @@ -1,4 +1,4 @@
      -builder.rs - source
      1
      +builder.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/challenge.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/challenge.rs.html
      index 26e1065ba..82be55c4d 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/challenge.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/challenge.rs.html
      @@ -1,4 +1,4 @@
      -challenge.rs - source
      1
      +challenge.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/errors.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/errors.rs.html
      index b7ba8620e..a362eaa02 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/errors.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/errors.rs.html
      @@ -1,4 +1,4 @@
      -errors.rs - source
      1
      +errors.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/mod.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/mod.rs.html
      index 07fb07bcc..dfae02d37 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/bearer/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html b/src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html
      index e4cb77406..5a394783c 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/challenge/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/header.rs.html b/src/actix_web_httpauth/headers/www_authenticate/header.rs.html
      index c9c8cdc60..84fae0617 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/header.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/header.rs.html
      @@ -1,4 +1,4 @@
      -header.rs - source
      1
      +header.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/headers/www_authenticate/mod.rs.html b/src/actix_web_httpauth/headers/www_authenticate/mod.rs.html
      index 5c632d207..4b87ae03f 100644
      --- a/src/actix_web_httpauth/headers/www_authenticate/mod.rs.html
      +++ b/src/actix_web_httpauth/headers/www_authenticate/mod.rs.html
      @@ -1,4 +1,4 @@
      -mod.rs - source
      1
      +mod.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/lib.rs.html b/src/actix_web_httpauth/lib.rs.html
      index 8a0358172..95713d508 100644
      --- a/src/actix_web_httpauth/lib.rs.html
      +++ b/src/actix_web_httpauth/lib.rs.html
      @@ -1,4 +1,4 @@
      -lib.rs - source
      1
      +lib.rs - source
      1
       2
       3
       4
      @@ -22,6 +22,9 @@
       22
       23
       24
      +25
      +26
      +27
       
      //! HTTP authentication schemes for [Actix Web](https://actix.rs).
       //!
       //! Provides:
      @@ -41,6 +44,9 @@
       #![forbid(unsafe_code)]
       #![deny(rust_2018_idioms, nonstandard_style)]
       #![warn(future_incompatible, missing_docs)]
      +#![doc(html_logo_url = "https://actix.rs/img/logo.png")]
      +#![doc(html_favicon_url = "https://actix.rs/favicon.ico")]
      +#![cfg_attr(docsrs, feature(doc_auto_cfg))]
       
       pub mod extractors;
       pub mod headers;
      diff --git a/src/actix_web_httpauth/middleware.rs.html b/src/actix_web_httpauth/middleware.rs.html
      index 1feead702..7aa8e3e5e 100644
      --- a/src/actix_web_httpauth/middleware.rs.html
      +++ b/src/actix_web_httpauth/middleware.rs.html
      @@ -1,4 +1,4 @@
      -middleware.rs - source
      1
      +middleware.rs - source
      1
       2
       3
       4
      diff --git a/src/actix_web_httpauth/utils.rs.html b/src/actix_web_httpauth/utils.rs.html
      index fb104adfa..cc76b825e 100644
      --- a/src/actix_web_httpauth/utils.rs.html
      +++ b/src/actix_web_httpauth/utils.rs.html
      @@ -1,4 +1,4 @@
      -utils.rs - source
      1
      +utils.rs - source
      1
       2
       3
       4
      diff --git a/type.impl/actix_settings/struct.BasicSettings.js b/type.impl/actix_settings/struct.BasicSettings.js
      index b290df802..9743e62b8 100644
      --- a/type.impl/actix_settings/struct.BasicSettings.js
      +++ b/type.impl/actix_settings/struct.BasicSettings.js
      @@ -1,3 +1,3 @@
       (function() {var type_impls = {
      -"actix_settings":[["
      source§

      impl<A> BasicSettings<A>where\n A: DeserializeOwned,

      source

      pub fn parse_toml<P>(filepath: P) -> Result<Self, Error>where\n P: AsRef<Path>,

      Parse an instance of Self from a TOML file located at filepath.

      \n

      If the file doesn’t exist, it is generated from the default TOML template, after which the\nnewly generated file is read in and parsed.

      \n
      source

      pub fn from_default_template() -> Result<Self, Error>

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

      \n
      source

      pub fn from_template(template: &str) -> Result<Self, Error>

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

      \n
      source

      pub fn write_toml_file<P>(filepath: P) -> Result<(), Error>where\n P: AsRef<Path>,

      Writes the default TOML template to a new file, located at filepath.

      \n
      Errors
      \n

      Returns a FileExists error if a file already exists at that\nlocation.

      \n
      source

      pub fn override_field<F, V>(field: &mut F, value: V) -> Result<(), Error>where\n F: Parse,\n V: AsRef<str>,

      Attempts to parse value and override the referenced field.

      \n
      Examples
      \n
      use actix_settings::{Settings, Mode};\n\nlet mut settings = Settings::from_default_template()?;\nassert_eq!(settings.actix.mode, Mode::Development);\n\nSettings::override_field(&mut settings.actix.mode, "production")?;\nassert_eq!(settings.actix.mode, Mode::Production);
      \n
      source

      pub fn override_field_with_env_var<F, N>(\n field: &mut F,\n var_name: N\n) -> Result<(), Error>where\n F: Parse,\n N: AsRef<str>,

      Attempts to read an environment variable, parse it, and override the referenced field.

      \n
      Examples
      \n
      use actix_settings::{Settings, Mode};\n\nstd::env::set_var("OVERRIDE__MODE", "production");\n\nlet mut settings = Settings::from_default_template()?;\nassert_eq!(settings.actix.mode, Mode::Development);\n\nSettings::override_field_with_env_var(&mut settings.actix.mode, "OVERRIDE__MODE")?;\nassert_eq!(settings.actix.mode, Mode::Production);
      \n
      ",0,"actix_settings::Settings"],["
      source§

      impl<A> StructuralPartialEq for BasicSettings<A>

      ","StructuralPartialEq","actix_settings::Settings"],["
      source§

      impl<A: Eq> Eq for BasicSettings<A>

      ","Eq","actix_settings::Settings"],["
      source§

      impl<A: Debug> Debug for BasicSettings<A>

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      ","Debug","actix_settings::Settings"],["
      source§

      impl<A> StructuralEq for BasicSettings<A>

      ","StructuralEq","actix_settings::Settings"],["
      source§

      impl<A: PartialEq> PartialEq for BasicSettings<A>

      source§

      fn eq(&self, other: &BasicSettings<A>) -> bool

      This method tests for self and other values to be equal, and is used\nby ==.
      1.0.0 · source§

      fn ne(&self, other: &Rhs) -> bool

      This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
      ","PartialEq","actix_settings::Settings"],["
      source§

      impl<A: Clone> Clone for BasicSettings<A>

      source§

      fn clone(&self) -> BasicSettings<A>

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      ","Clone","actix_settings::Settings"],["
      source§

      impl<A: Hash> Hash for BasicSettings<A>

      source§

      fn hash<__H: Hasher>(&self, state: &mut __H)

      Feeds this value into the given Hasher. Read more
      1.3.0 · source§

      fn hash_slice<H>(data: &[Self], state: &mut H)where\n H: Hasher,\n Self: Sized,

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","actix_settings::Settings"],["
      source§

      impl<'de, A> Deserialize<'de> for BasicSettings<A>where\n A: Deserialize<'de>,

      source§

      fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","actix_settings::Settings"]] +"actix_settings":[["
      source§

      impl<A> BasicSettings<A>where\n A: DeserializeOwned,

      source

      pub fn parse_toml<P>(filepath: P) -> Result<Self, Error>where\n P: AsRef<Path>,

      Parse an instance of Self from a TOML file located at filepath.

      \n

      If the file doesn’t exist, it is generated from the default TOML template, after which the\nnewly generated file is read in and parsed.

      \n
      source

      pub fn from_default_template() -> Result<Self, Error>

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

      \n
      source

      pub fn from_template(template: &str) -> Result<Self, Error>

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

      \n
      source

      pub fn write_toml_file<P>(filepath: P) -> Result<(), Error>where\n P: AsRef<Path>,

      Writes the default TOML template to a new file, located at filepath.

      \n
      Errors
      \n

      Returns a FileExists error if a file already exists at that\nlocation.

      \n
      source

      pub fn override_field<F, V>(field: &mut F, value: V) -> Result<(), Error>where\n F: Parse,\n V: AsRef<str>,

      Attempts to parse value and override the referenced field.

      \n
      Examples
      \n
      use actix_settings::{Settings, Mode};\n\nlet mut settings = Settings::from_default_template()?;\nassert_eq!(settings.actix.mode, Mode::Development);\n\nSettings::override_field(&mut settings.actix.mode, "production")?;\nassert_eq!(settings.actix.mode, Mode::Production);
      \n
      source

      pub fn override_field_with_env_var<F, N>(\n field: &mut F,\n var_name: N\n) -> Result<(), Error>where\n F: Parse,\n N: AsRef<str>,

      Attempts to read an environment variable, parse it, and override the referenced field.

      \n
      Examples
      \n
      use actix_settings::{Settings, Mode};\n\nstd::env::set_var("OVERRIDE__MODE", "production");\n\nlet mut settings = Settings::from_default_template()?;\nassert_eq!(settings.actix.mode, Mode::Development);\n\nSettings::override_field_with_env_var(&mut settings.actix.mode, "OVERRIDE__MODE")?;\nassert_eq!(settings.actix.mode, Mode::Production);
      \n
      ",0,"actix_settings::Settings"],["
      source§

      impl<A> StructuralPartialEq for BasicSettings<A>

      ","StructuralPartialEq","actix_settings::Settings"],["
      source§

      impl<A: Eq> Eq for BasicSettings<A>

      ","Eq","actix_settings::Settings"],["
      source§

      impl<A: Debug> Debug for BasicSettings<A>

      source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      ","Debug","actix_settings::Settings"],["
      source§

      impl<A> StructuralEq for BasicSettings<A>

      ","StructuralEq","actix_settings::Settings"],["
      source§

      impl<A: PartialEq> PartialEq for BasicSettings<A>

      source§

      fn eq(&self, other: &BasicSettings<A>) -> bool

      This method tests for self and other values to be equal, and is used\nby ==.
      1.0.0 · source§

      fn ne(&self, other: &Rhs) -> bool

      This method tests for !=. The default implementation is almost always\nsufficient, and should not be overridden without very good reason.
      ","PartialEq","actix_settings::Settings"],["
      source§

      impl<A: Clone> Clone for BasicSettings<A>

      source§

      fn clone(&self) -> BasicSettings<A>

      Returns a copy of the value. Read more
      1.0.0 · source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      ","Clone","actix_settings::Settings"],["
      source§

      impl<A: Hash> Hash for BasicSettings<A>

      source§

      fn hash<__H: Hasher>(&self, state: &mut __H)

      Feeds this value into the given Hasher. Read more
      1.3.0 · source§

      fn hash_slice<H>(data: &[Self], state: &mut H)where\n H: Hasher,\n Self: Sized,

      Feeds a slice of this type into the given Hasher. Read more
      ","Hash","actix_settings::Settings"],["
      source§

      impl<'de, A> Deserialize<'de> for BasicSettings<A>where\n A: Deserialize<'de>,

      source§

      fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where\n __D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","actix_settings::Settings"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})() \ No newline at end of file