diff --git a/actix_cors/all.html b/actix_cors/all.html index b83c36575..17fe9ee3c 100644 --- a/actix_cors/all.html +++ b/actix_cors/all.html @@ -1 +1 @@ -
#[non_exhaustive]pub enum CorsError {
+CorsError in actix_cors - Rust Enum actix_cors::CorsError
source · #[non_exhaustive]pub enum CorsError {
WildcardOrigin,
MissingOrigin,
MissingRequestMethod,
@@ -16,7 +16,7 @@
§OriginNotAllowed
Origin is not allowed to make this request.
§MethodNotAllowed
Request method is not allowed.
§HeadersNotAllowed
One or more request headers are not allowed.
-
Returns the argument unchanged.
diff --git a/actix_cors/index.html b/actix_cors/index.html index 26b8f411c..08c3c94c8 100644 --- a/actix_cors/index.html +++ b/actix_cors/index.html @@ -1,4 +1,4 @@ -Cross-Origin Resource Sharing (CORS) controls for Actix Web.
+Cross-Origin Resource Sharing (CORS) controls for Actix Web.
This middleware can be applied to both applications and resources. Once built, a Cors
builder can be used as an argument for Actix Web’s App::wrap()
, Scope::wrap()
, or
Resource::wrap()
methods.
pub struct Cors { /* private fields */ }
Builder for CORS middleware.
+pub struct Cors { /* private fields */ }
Builder for CORS middleware.
To construct a CORS middleware, call Cors::default()
to create a blank, restrictive builder.
Then use any of the builder methods to customize CORS behavior.
The alternative Cors::permissive()
constructor is available for local development, allowing
diff --git a/actix_identity/all.html b/actix_identity/all.html
index 00f6823bc..3b0a9a6d6 100644
--- a/actix_identity/all.html
+++ b/actix_identity/all.html
@@ -1 +1 @@
-
#[non_exhaustive]pub enum LogoutBehaviour {
+LogoutBehaviour in actix_identity::config - Rust Enum actix_identity::config::LogoutBehaviour
source · #[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 cb2ff8ea1..daad94688 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
- A fluent builder to construct an
IdentityMiddleware
instance with custom configuration
parameters.
Enums
LogoutBehaviour
controls what actions are going to be performed when Identity::logout
is
invoked.
\ No newline at end of file
diff --git a/actix_identity/config/struct.IdentityMiddlewareBuilder.html b/actix_identity/config/struct.IdentityMiddlewareBuilder.html
index 0cd092022..871c0ef30 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 Struct actix_identity::config::IdentityMiddlewareBuilder
source · pub struct IdentityMiddlewareBuilder { /* private fields */ }
Expand description
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
+
IdentityMiddlewareBuilder in actix_identity::config - Rust Struct actix_identity::config::IdentityMiddlewareBuilder
source · 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
sourcepub 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 e4e0708aa..e7fdc398c 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 Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]pub enum GetIdentityError {
+GetIdentityError in actix_identity::error - Rust Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]pub enum GetIdentityError {
SessionExpiryError(SessionExpiryError),
MissingIdentityError(MissingIdentityError),
SessionGetError(SessionGetError),
@@ -9,7 +9,7 @@
§SessionGetError(SessionGetError)
Failed to accessing the session store.
§LostIdentityError(LostIdentityError)
Identity info was lost after being validated.
Seeing this error indicates a bug in actix-identity.
-
Trait Implementations§
source§impl Debug for GetIdentityError
source§impl Display for GetIdentityError
source§impl Error for GetIdentityError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionGetError> for GetIdentityError
source§fn from(original: SessionGetError) -> GetIdentityError
Converts to this type from the input type.source§impl ResponseError for GetIdentityError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for GetIdentityError
§impl Send for GetIdentityError
§impl Sync for GetIdentityError
§impl Unpin for GetIdentityError
§impl UnwindSafe for GetIdentityError
Blanket Implementations§
Trait Implementations§
source§impl Debug for GetIdentityError
source§impl Display for GetIdentityError
source§impl Error for GetIdentityError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionGetError> for GetIdentityError
source§fn from(original: SessionGetError) -> GetIdentityError
Converts to this type from the input type.source§impl ResponseError for GetIdentityError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for GetIdentityError
§impl Send for GetIdentityError
§impl Sync for GetIdentityError
§impl Unpin for GetIdentityError
§impl UnwindSafe for GetIdentityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/actix_identity/error/index.html b/actix_identity/error/index.html
index c6c2e6873..26d5b019a 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
- Error that can occur during login attempts.
- The identity information has been lost.
- There is no identity information attached to the current session.
- Error encountered when working with a session that has expired.
Enums
- Errors that can occur while retrieving an identity.
\ No newline at end of file
diff --git a/actix_identity/error/struct.LoginError.html b/actix_identity/error/struct.LoginError.html
index a7b7b756e..c05d28e2f 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 Struct actix_identity::error::LoginError
source · pub struct LoginError(/* private fields */);
Expand description
Error that can occur during login attempts.
+LoginError in actix_identity::error - Rust Struct actix_identity::error::LoginError
source · pub struct LoginError(/* private fields */);
Expand description
Error that can occur during login attempts.
Trait Implementations§
source§impl Debug for LoginError
source§impl Display for LoginError
source§impl Error for LoginError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()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<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for LoginError
§impl Send for LoginError
§impl Sync for LoginError
§impl Unpin for LoginError
§impl UnwindSafe for LoginError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/actix_identity/error/struct.LostIdentityError.html b/actix_identity/error/struct.LostIdentityError.html
index 32dc73779..83704ff7c 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 Struct actix_identity::error::LostIdentityError
source · #[non_exhaustive]pub struct LostIdentityError;
Expand description
The identity information has been lost.
+LostIdentityError in actix_identity::error - Rust Struct actix_identity::error::LostIdentityError
source · #[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§impl Display for LostIdentityError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for LostIdentityError
§impl Send for LostIdentityError
§impl Sync for LostIdentityError
§impl Unpin for LostIdentityError
§impl UnwindSafe for LostIdentityError
Blanket Implementations§
source§impl<T> Borrow<T> for Twhere
diff --git a/actix_identity/error/struct.MissingIdentityError.html b/actix_identity/error/struct.MissingIdentityError.html
index 9f81c4c77..d1c8ca5ee 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 Struct actix_identity::error::MissingIdentityError
source · #[non_exhaustive]pub struct MissingIdentityError;
Expand description
There is no identity information attached to the current session.
+MissingIdentityError in actix_identity::error - Rust Struct actix_identity::error::MissingIdentityError
source · #[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§impl Display for MissingIdentityError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for MissingIdentityError
§impl Send for MissingIdentityError
§impl Sync for MissingIdentityError
§impl Unpin for MissingIdentityError
§impl UnwindSafe for MissingIdentityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
diff --git a/actix_identity/error/struct.SessionExpiryError.html b/actix_identity/error/struct.SessionExpiryError.html
index 9a7b3c196..2f567793d 100644
--- a/actix_identity/error/struct.SessionExpiryError.html
+++ b/actix_identity/error/struct.SessionExpiryError.html
@@ -1,5 +1,5 @@
-SessionExpiryError in actix_identity::error - Rust Struct actix_identity::error::SessionExpiryError
source · 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§impl Display for SessionExpiryError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for SessionExpiryError
§impl Send for SessionExpiryError
§impl Sync for SessionExpiryError
§impl Unpin for SessionExpiryError
§impl UnwindSafe for SessionExpiryError
Blanket Implementations§
source§impl<T> Any for Twhere
+SessionExpiryError in actix_identity::error - Rust Struct actix_identity::error::SessionExpiryError
source · 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§impl Display for SessionExpiryError
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 more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for SessionExpiryError
§impl Send for SessionExpiryError
§impl Sync for SessionExpiryError
§impl Unpin for SessionExpiryError
§impl UnwindSafe for SessionExpiryError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/actix_identity/index.html b/actix_identity/index.html
index 7879204c7..af1382b01 100644
--- a/actix_identity/index.html
+++ b/actix_identity/index.html
@@ -1,4 +1,4 @@
-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 ab22c68a5..5a17d1c44 100644
--- a/actix_identity/struct.Identity.html
+++ b/actix_identity/struct.Identity.html
@@ -1,4 +1,4 @@
-Identity in actix_identity - Rust Struct actix_identity::Identity
source · pub struct Identity(/* private fields */);
Expand description
A verified user identity. It can be used as a request extractor.
+Identity in actix_identity - Rust Struct actix_identity::Identity
source · 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 053232217..f2a883cf4 100644
--- a/actix_identity/struct.IdentityMiddleware.html
+++ b/actix_identity/struct.IdentityMiddleware.html
@@ -1,4 +1,4 @@
-IdentityMiddleware in actix_identity - Rust Struct actix_identity::IdentityMiddleware
source · pub struct IdentityMiddleware { /* private fields */ }
Expand description
Identity management middleware.
+IdentityMiddleware in actix_identity - Rust Struct actix_identity::IdentityMiddleware
source · 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 24e3ee67a..576d91049 100644
--- a/actix_identity/trait.IdentityExt.html
+++ b/actix_identity/trait.IdentityExt.html
@@ -1,6 +1,6 @@
-IdentityExt in actix_identity - Rust Trait actix_identity::IdentityExt
source · pub trait IdentityExt {
+IdentityExt in actix_identity - Rust Trait actix_identity::IdentityExt
source · 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.
Required Methods§
sourcefn get_identity(&self) -> Result<Identity, GetIdentityError>
Retrieve the identity attached to the current session, if available.
-Implementations on Foreign Types§
source§impl<'a> IdentityExt for GuardContext<'a>
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for HttpRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for ServiceRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
\ No newline at end of file
+
Implementations on Foreign Types§
source§impl IdentityExt for HttpRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl<'a> IdentityExt for GuardContext<'a>
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for ServiceRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
\ No newline at end of file
diff --git a/actix_limitation/all.html b/actix_limitation/all.html
index 010b086ac..f511b3acc 100644
--- a/actix_limitation/all.html
+++ b/actix_limitation/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
Enums
Constants
\ No newline at end of file
diff --git a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html
index 5c70c1e50..59f2a3c8d 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 Constant actix_limitation::DEFAULT_COOKIE_NAME
source · pub const DEFAULT_COOKIE_NAME: &str = "sid";
Expand description
Default cookie name.
+DEFAULT_COOKIE_NAME in actix_limitation - Rust Constant actix_limitation::DEFAULT_COOKIE_NAME
source · 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 4642bcd78..e5fc76731 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 Constant actix_limitation::DEFAULT_PERIOD_SECS
source · pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Expand description
Default period (in seconds).
+DEFAULT_PERIOD_SECS in actix_limitation - Rust Constant actix_limitation::DEFAULT_PERIOD_SECS
source · 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 824c2072e..cd3a42619 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 Constant actix_limitation::DEFAULT_REQUEST_LIMIT
source · pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Expand description
Default request limit.
+DEFAULT_REQUEST_LIMIT in actix_limitation - Rust Constant actix_limitation::DEFAULT_REQUEST_LIMIT
source · 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 cf277abd9..61c5b4e14 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 Constant actix_limitation::DEFAULT_SESSION_KEY
source · pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Expand description
Default session key.
+DEFAULT_SESSION_KEY in actix_limitation - Rust Constant actix_limitation::DEFAULT_SESSION_KEY
source · 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/enum.Error.html b/actix_limitation/enum.Error.html
index cbbe251a3..049c42442 100644
--- a/actix_limitation/enum.Error.html
+++ b/actix_limitation/enum.Error.html
@@ -1,4 +1,4 @@
-Error in actix_limitation - Rust Enum actix_limitation::Error
source · pub enum Error {
+Error in actix_limitation - Rust Enum actix_limitation::Error
source · pub enum Error {
Client(RedisError),
LimitExceeded(Status),
Time(ComponentRange),
@@ -8,7 +8,7 @@
§LimitExceeded(Status)
Limit is exceeded for a key.
§Time(ComponentRange)
Time conversion failed.
§Other(String)
Generic error.
-
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()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§
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()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> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> From<T> for T
source§fn from(t: T) -> T
Returns the argument unchanged.
diff --git a/actix_limitation/index.html b/actix_limitation/index.html
index d50144e56..be45bed7d 100644
--- a/actix_limitation/index.html
+++ b/actix_limitation/index.html
@@ -1,4 +1,4 @@
-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.
+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.
[dependencies]
actix-web = "4"
actix-limitation = "0.5"
diff --git a/actix_limitation/struct.Builder.html b/actix_limitation/struct.Builder.html
index a83246e8a..458bb528d 100644
--- a/actix_limitation/struct.Builder.html
+++ b/actix_limitation/struct.Builder.html
@@ -1,4 +1,4 @@
-Builder in actix_limitation - Rust Struct actix_limitation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Rate limiter builder.
+Builder in actix_limitation - Rust Struct actix_limitation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Rate limiter builder.
Implementations§
source§impl Builder
sourcepub fn key_by<F>(&mut self, resolver: F) -> &mut Selfwhere
diff --git a/actix_limitation/struct.Limiter.html b/actix_limitation/struct.Limiter.html
index 9fd540493..86a23a869 100644
--- a/actix_limitation/struct.Limiter.html
+++ b/actix_limitation/struct.Limiter.html
@@ -1,4 +1,4 @@
-Limiter in actix_limitation - Rust Struct actix_limitation::Limiter
source · pub struct Limiter { /* private fields */ }
Expand description
Rate limiter.
+Limiter in actix_limitation - Rust Struct actix_limitation::Limiter
source · pub struct Limiter { /* private fields */ }
Expand description
Rate limiter.
Implementations§
source§impl Limiter
sourcepub 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.
diff --git a/actix_limitation/struct.RateLimiter.html b/actix_limitation/struct.RateLimiter.html
index f85bff5e2..0f87ddc76 100644
--- a/actix_limitation/struct.RateLimiter.html
+++ b/actix_limitation/struct.RateLimiter.html
@@ -1,4 +1,4 @@
-RateLimiter in actix_limitation - Rust Struct actix_limitation::RateLimiter
source · #[non_exhaustive]pub struct RateLimiter;
Expand description
Rate limit middleware.
+RateLimiter in actix_limitation - Rust Struct actix_limitation::RateLimiter
source · #[non_exhaustive]pub struct RateLimiter;
Expand description
Rate limit middleware.
Trait Implementations§
source§impl Debug for RateLimiter
source§impl Default for RateLimiter
source§fn default() -> RateLimiter
Returns the “default value” for a type. Read moresource§impl<S, B> Transform<S, ServiceRequest> for RateLimiterwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
diff --git a/actix_limitation/struct.Status.html b/actix_limitation/struct.Status.html
index e6f228f5e..f911c1750 100644
--- a/actix_limitation/struct.Status.html
+++ b/actix_limitation/struct.Status.html
@@ -1,4 +1,4 @@
-Status in actix_limitation - Rust Struct actix_limitation::Status
source · pub struct Status { /* private fields */ }
Expand description
A report for a given key containing the limit status.
+Status in actix_limitation - Rust Struct actix_limitation::Status
source · pub struct Status { /* private fields */ }
Expand description
A report for a given key containing the limit status.
Implementations§
source§impl Status
sourcepub fn limit(&self) -> usize
Returns the maximum number of requests allowed in the current period.
sourcepub fn reset_epoch_utc(&self) -> usize
Returns a UNIX timestamp in UTC approximately when the next period will begin.
diff --git a/actix_protobuf/all.html b/actix_protobuf/all.html
index 145ee9f02..c6e212c0e 100644
--- a/actix_protobuf/all.html
+++ b/actix_protobuf/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_protobuf/enum.ProtoBufPayloadError.html b/actix_protobuf/enum.ProtoBufPayloadError.html
index 0b307c872..5ab06d212 100644
--- a/actix_protobuf/enum.ProtoBufPayloadError.html
+++ b/actix_protobuf/enum.ProtoBufPayloadError.html
@@ -1,4 +1,4 @@
-ProtoBufPayloadError in actix_protobuf - Rust pub enum ProtoBufPayloadError {
+ProtoBufPayloadError in actix_protobuf - Rust