diff --git a/actix_cors/all.html b/actix_cors/all.html index 5a5f09f64..e7499ec8e 100644 --- a/actix_cors/all.html +++ b/actix_cors/all.html @@ -1,10 +1,3 @@ -
#[non_exhaustive]
+CorsError in actix_cors - Rust Enum actix_cors::CorsError
source · [−]#[non_exhaustive]
pub enum CorsError {
WildcardOrigin,
MissingOrigin,
@@ -41,10 +34,10 @@ pub enum CorsError {
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> Into<U> for T where
U: From<T>,
const: unstable · sourcefn into(self) -> U
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
@@ -53,13 +46,12 @@ pub enum CorsError {
sourcefn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
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.
Builder for CORS middleware.
-Errors that can occur when processing CORS guarded requests.
-Builder for CORS middleware.
+Errors that can occur when processing CORS guarded requests.
+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
@@ -125,21 +118,20 @@ not supported. No max age (will use browser’s default).
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
#[non_exhaustive]
+LogoutBehaviour in actix_identity::config - Rust Enum actix_identity::config::LogoutBehaviour
source · [−]#[non_exhaustive]
pub enum LogoutBehaviour {
PurgeSession,
DeleteIdentityKeys,
@@ -25,10 +18,10 @@ is not tied to the user’s identity and should be retained after logout.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Configuration options to tune the behaviour of IdentityMiddleware
.
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
+
Configuration options to tune the behaviour of IdentityMiddleware
.
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
parameters.
LogoutBehaviour
controls what actions are going to be performed when Identity::logout
is
+
LogoutBehaviour
controls what actions are going to be performed when Identity::logout
is
invoked.
pub struct IdentityMiddlewareBuilder { /* private fields */ }
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
+
pub struct IdentityMiddlewareBuilder { /* private fields */ }
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
parameters.
Use IdentityMiddleware::builder
to get started!
Determines how Identity::logout
affects the current session.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Identity management for Actix Web.
+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
.
IdentityMiddlewareBuilder::visit_deadline
;
IdentityMiddlewareBuilder::login_deadline
).Configuration options to tune the behaviour of IdentityMiddleware
.
A verified user identity. It can be used as a request extractor.
+Configuration options to tune the behaviour of IdentityMiddleware
.
A verified user identity. It can be used as a request extractor.
Identity management middleware.
-Helper trait to retrieve an Identity
instance from various actix-web
’s types.
Helper trait to retrieve an Identity
instance from various actix-web
’s types.
pub struct Identity(_);
A verified user identity. It can be used as a request extractor.
+pub struct Identity(_);
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.
@@ -116,21 +109,20 @@ require a validIdentity
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct IdentityMiddleware { /* private fields */ }
Identity management middleware.
+pub struct IdentityMiddleware { /* private fields */ }
Identity management middleware.
use actix_web::{cookie::Key, App, HttpServer};
use actix_session::storage::RedisSessionStore;
@@ -40,10 +33,10 @@
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait IdentityExt {
+IdentityExt in actix_identity - Rust Trait actix_identity::IdentityExt
source · [−]pub trait IdentityExt {
fn get_identity(&self) -> Result<Identity, Error>;
}
Expand description
Helper trait to retrieve an Identity
instance from various actix-web
’s types.
Required Methods
fn get_identity(&self) -> Result<Identity, Error>
Retrieve the identity attached to the current session, if available.
-Implementations on Foreign Types
sourceimpl IdentityExt for HttpRequest
sourcefn get_identity(&self) -> Result<Identity, Error>
sourceimpl IdentityExt for ServiceRequest
sourcefn get_identity(&self) -> Result<Identity, Error>
sourceimpl<'a> IdentityExt for GuardContext<'a>
sourcefn get_identity(&self) -> Result<Identity, Error>
Implementors
-
\ No newline at end of file
+
pub const DEFAULT_COOKIE_NAME: &str = "sid";
Default cookie name.
-pub const DEFAULT_COOKIE_NAME: &'static str = "sid";
Default cookie name.
+pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Default period (in seconds).
-pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Default period (in seconds).
+pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Default request limit.
-pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Default request limit.
+pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Default session key.
-pub const DEFAULT_SESSION_KEY: &'static str = "rate-api-id";
Default session key.
+pub enum Error {
+Error in actix_limitation - Rust Enum actix_limitation::Error
source · [−]pub enum Error {
Client(RedisError),
LimitExceeded(Status),
Time(ComponentRange),
@@ -30,22 +23,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.
+Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.
[dependencies]
actix-web = "4"
actix-limitation = "0.3"
Rate limiter builder.
+Rate limiter builder.
Rate limiter.
Rate limit middleware.
A report for a given key containing the limit status.
-Failure modes of the rate limiter.
-Default cookie name.
+Failure modes of the rate limiter.
+Default cookie name.
Default period (in seconds).
Default request limit.
Default session key.
-pub struct Builder { /* private fields */ }
Rate limiter builder.
+pub struct Builder { /* private fields */ }
Rate limiter builder.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Limiter { /* private fields */ }
Rate limiter.
+pub struct Limiter { /* private fields */ }
Rate limiter.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RateLimiter;
Rate limit middleware.
-Formats the value using the given formatter. Read more
+#[non_exhaustive]pub struct RateLimiter;
Rate limit middleware.
+Returns the “default value” for a type. Read more
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Status { /* private fields */ }
A report for a given key containing the limit status.
+pub struct Status { /* private fields */ }
A report for a given key containing the limit status.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum ProtoBufPayloadError {
+ProtoBufPayloadError in actix_protobuf - Rust pub enum ProtoBufPayloadError {
Overflow,
ContentType,
Serialize(ProtoBufEncodeError),
@@ -26,22 +19,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct ProtoBuf<T: Message>(pub T);
0: T
Formats the value using the given formatter. Read more
+pub struct ProtoBuf<T: Message>(pub T);
0: T
Mutably borrows from an owned value. Read more
Type of resource’s path returned in resource_path
.
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct ProtoBufConfig { /* private fields */ }
Change max size of payload. By default max size is 256Kb
+pub struct ProtoBufConfig { /* private fields */ }
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Create ProtoBufMessage
for request.
The type of value produced on completion.
Attempt to resolve the future to a final value, registering @@ -47,10 +40,10 @@ its output to another future on a separate task. Read more
A convenience for calling Future::poll
on Unpin
future types.
Evaluates and consumes the future, returning the resulting output if
the future is ready after the first call to Future::poll
. Read more
Which kind of future are we turning this into?
Creates a future from a value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait ProtoBufResponseBuilder {
+ProtoBufResponseBuilder in actix_protobuf - Rust pub trait ProtoBufResponseBuilder {
fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>;
-}
Required Methods
Implementations on Foreign Types
sourceimpl ProtoBufResponseBuilder for HttpResponseBuilder
Implementors
-
\ No newline at end of file
+}
pub enum Error {
+Error in actix_redis - Rust Enum actix_redis::Error
source · [−]pub enum Error {
Redis(Error),
NotConnected,
Disconnected,
@@ -26,22 +19,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum RespError {
+RespError in actix_redis - Rust Enum actix_redis::RespError
[−]pub enum RespError {
Internal(String),
IO(Error),
Resp(String, Option<RespValue>),
@@ -23,8 +16,8 @@ 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 Display for Error
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Formats the value using the given formatter. Read more
+Trait Implementations
impl Error for Error
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
👎 Deprecated since 1.42.0: use the Display impl or to_string()
@@ -37,22 +30,21 @@ a proper option.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
-
\ No newline at end of file
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
+sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
+
pub enum RespValue {
+RespValue in actix_redis - Rust
This method tests for Mutably borrows from an owned value. Read more Compare self to Calls That is, this conversion is whatever the implementation of
The resulting type after obtaining ownership. Uses borrowed data to replace owned data, usually by cloning. Read more The type returned in the event of a conversion error. Attaches the provided Attaches the current default self
and other
values to be equal, and is used
@@ -46,10 +39,10 @@ by ==
. impl<T> BorrowMut<T> for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized, fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> Into<U> for T where
U: From<T>, fn into(self) -> U
U::from(self)
.From<T> for U
chooses to do.==
. impl<T> ToOwned for T where
T: Clone, type Owned = T
fn clone_into(&self, target: &mut T)
impl<T, U> TryFrom<U> for T where
U: Into<T>, type Error = Infallible
impl<V, T> VZip<V> for T where
V: MultiLane<T>, fn vzip(self) -> V
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, Subscriber
to this type, returning a
-WithDispatch
wrapper. Read morefn with_current_subscriber(self) -> WithDispatch<Self>
Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Redis integration for actix
.
Macro to create a RESP array, useful for preparing commands to send. Elements can be any type, or a mixture +
Redis integration for actix
.
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>
.
Command for sending data to Redis.
+Command for sending data to Redis.
Redis communication actor.
-General purpose actix-redis
error.
macro_rules! resp_array {
+resp_array in actix_redis - Rust Macro actix_redis::resp_array
[−]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
@@ -29,5 +22,4 @@ data moved into the corresponding RespValue
. If a reference is pro
let data = vec!["data", "from", "somewhere", "else"];
let command = resp_array!["RPUSH", "mykey"].append(data);
}
-
pub struct Command(pub RespValue);
Command for sending data to Redis.
+pub struct Command(pub RespValue);
Command for sending data to Redis.
0: RespValue
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RedisActor { /* private fields */ }
Redis communication actor.
+pub struct RedisActor { /* private fields */ }
Redis communication actor.
Start new Supervisor
with RedisActor
.
Actor execution context type
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum CookieContentSecurity {
+CookieContentSecurity in actix_session::config - Rust pub enum CookieContentSecurity {
Private,
Signed,
}
Expand description
Determines how to secure the content of the session cookie.
@@ -25,10 +18,10 @@ tamper with the cookie content, but they can read it.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
#[non_exhaustive]
+SessionLifecycle in actix_session::config - Rust Enum actix_session::config::SessionLifecycle
source · [−]#[non_exhaustive]
pub enum SessionLifecycle {
BrowserSession(BrowserSession),
PersistentSession(PersistentSession),
@@ -30,10 +23,10 @@ attribute. They do not disappear when the current browser session ends.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
#[non_exhaustive]
+TtlExtensionPolicy in actix_session::config - Rust Enum actix_session::config::TtlExtensionPolicy
source · [−]#[non_exhaustive]
pub enum TtlExtensionPolicy {
OnEveryRequest,
OnStateChanges,
@@ -32,10 +25,10 @@ queries it has to handle) and the latency of the requests served by your server.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Configuration options to tune the behaviour of SessionMiddleware
.
A session lifecycle strategy where the session cookie expires when the +
Configuration options to tune the behaviour of SessionMiddleware
.
A session lifecycle strategy where the session cookie expires when the browser’s current session ends.
A session lifecycle strategy where the session cookie will be persistent.
A fluent builder to construct a SessionMiddleware
instance with custom configuration
parameters.
Determines how to secure the content of the session cookie.
+Determines how to secure the content of the session cookie.
Determines what type of session cookie should be used and how its lifecycle should be managed.
Configuration for which events should trigger an extension of the time-to-live for your session.
-pub struct BrowserSession { /* private fields */ }
A session lifecycle strategy where the session cookie expires when the +
pub struct BrowserSession { /* private fields */ }
A session lifecycle strategy where the session cookie expires when the browser’s current session ends.
When does a browser session end? It depends on the browser. Chrome, for example, will often continue running in the background when the browser is closed—session cookies are not deleted @@ -41,10 +34,10 @@ specifying a more aggressive state TTL extension policy - check out
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct PersistentSession { /* private fields */ }
A session lifecycle strategy where the session cookie will be persistent.
+pub struct PersistentSession { /* private fields */ }
A session lifecycle strategy where the session cookie will be persistent.
Persistent cookies have a pre-determined expiration, specified via the Max-Age
or Expires
attribute. They do not disappear when the current browser session ends.
Specifies how long the session cookie should live.
@@ -27,10 +20,10 @@ SeeTtlE
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct SessionMiddlewareBuilder<Store: SessionStore> { /* private fields */ }
A fluent builder to construct a SessionMiddleware
instance with custom configuration
+
pub struct SessionMiddlewareBuilder<Store: SessionStore> { /* private fields */ }
A fluent builder to construct a SessionMiddleware
instance with custom configuration
parameters.
Set the name of the cookie used to store the session ID.
Defaults to id
.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum SessionStatus {
+SessionStatus in actix_session - Rust Enum actix_session::SessionStatus
source · [−]pub enum SessionStatus {
Changed,
Purged,
Renewed,
@@ -27,16 +20,16 @@ extended.
sourceimpl Default for SessionStatus
sourcefn default() -> SessionStatus
Returns the “default value” for a type. Read more
sourceimpl PartialEq<SessionStatus> for SessionStatus
sourceimpl Eq for SessionStatus
sourceimpl StructuralEq for SessionStatus
sourceimpl StructuralPartialEq for SessionStatus
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
==
. The resulting type after obtaining ownership.
Uses borrowed data to replace owned data, usually by cloning. Read more
-The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Session management for Actix Web.
+Session management for Actix Web.
The HTTP protocol, at a first glance, is stateless: the client sends a request, the server parses its content, performs some processing and returns a response. The outcome is only influenced by the provided inputs (i.e. the request content) and whatever state the server @@ -107,18 +100,13 @@ connection:
actix-session = { version = "...", features = ["redis-rs-session", "redis-rs-tls-session"] }You can implement your own session storage backend using the SessionStore
trait.
Configuration options to tune the behaviour of SessionMiddleware
.
Configuration options to tune the behaviour of SessionMiddleware
.
Pluggable storage backends for session state.
-The primary interface to access and modify session state.
+The primary interface to access and modify session state.
Error returned by Session::get
.
Error returned by Session::insert
.
A middleware for session management in Actix Web applications.
-Status of a Session
.
Extract a Session
object from various actix-web
types (e.g. HttpRequest
,
+
Status of a Session
.
Extract a Session
object from various actix-web
types (e.g. HttpRequest
,
ServiceRequest
, ServiceResponse
).
pub enum LoadError {
+LoadError in actix_session::storage - Rust Enum actix_session::storage::LoadError
source · [−]Expand description
Possible failures modes for SessionStore::load
.
@@ -24,22 +17,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum SaveError {
+SaveError in actix_session::storage - Rust Enum actix_session::storage::SaveError
source · [−]Expand description
Possible failures modes for SessionStore::save
.
@@ -24,22 +17,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum UpdateError {
+UpdateError in actix_session::storage - Rust Enum actix_session::storage::UpdateError
source · [−]Expand description
Possible failures modes for SessionStore::update
.
@@ -24,22 +17,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Pluggable storage backends for session state.
-Use the session key, stored in the session cookie, as storage backend for the session state.
+Pluggable storage backends for session state.
+Use the session key, stored in the session cookie, as storage backend for the session state.
Use Redis as session storage backend.
A fluent builder to construct a RedisActorSessionStore
instance with custom configuration
parameters.
A session key, the string stored in a client-side cookie to associate a user with its session state on the backend.
-Possible failures modes for SessionStore::load
.
Possible failures modes for SessionStore::load
.
Possible failures modes for SessionStore::save
.
Possible failures modes for SessionStore::update
.
The interface to retrieve and save the current session data from/to the chosen storage backend.
-The interface to retrieve and save the current session data from/to the chosen storage backend.
+#[non_exhaustive]pub struct CookieSessionStore;
Use the session key, stored in the session cookie, as storage backend for the session state.
+#[non_exhaustive]pub struct CookieSessionStore;
Use the session key, stored in the session cookie, as storage backend for the session state.
use actix_web::{cookie::Key, web, App, HttpServer, HttpResponse, Error};
use actix_session::{SessionMiddleware, storage::CookieSessionStore};
@@ -47,21 +40,20 @@ storage backend.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RedisActorSessionStore { /* private fields */ }
Use Redis as session storage backend.
+pub struct RedisActorSessionStore { /* private fields */ }
Use Redis as session storage backend.
use actix_web::{web, App, HttpServer, HttpResponse, Error};
use actix_session::{SessionMiddleware, storage::RedisActorSessionStore};
@@ -56,21 +49,20 @@ connection string for Redis.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RedisActorSessionStoreBuilder { /* private fields */ }
A fluent builder to construct a RedisActorSessionStore
instance with custom configuration
+
pub struct RedisActorSessionStoreBuilder { /* private fields */ }
A fluent builder to construct a RedisActorSessionStore
instance with custom configuration
parameters.
Set a custom cache key generation strategy, expecting a session key as input.
Finalise the builder and return a RedisActorSessionStore
instance.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RedisSessionStore { /* private fields */ }
Use Redis as session storage backend.
+pub struct RedisSessionStore { /* private fields */ }
Use Redis as session storage backend.
use actix_web::{web, App, HttpServer, HttpResponse, Error};
use actix_session::{SessionMiddleware, storage::RedisSessionStore};
@@ -62,10 +55,10 @@ connection string for Redis.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct RedisSessionStoreBuilder { /* private fields */ }
A fluent builder to construct a RedisSessionStore
instance with custom configuration
+
pub struct RedisSessionStoreBuilder { /* private fields */ }
A fluent builder to construct a RedisSessionStore
instance with custom configuration
parameters.
Set a custom cache key generation strategy, expecting a session key as input.
Finalise the builder and return a RedisActorSessionStore
instance.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct SessionKey(_);
A session key, the string stored in a client-side cookie to associate a user with its session +
pub struct SessionKey(_);
A session key, the string stored in a client-side cookie to associate a user with its session state on the backend.
Session keys are stored as cookies, therefore they cannot be arbitrary long. Session keys are
@@ -31,21 +24,20 @@ by Mutably borrows from an owned value. Read more Compare self to The type returned in the event of a conversion error. Attaches the provided Attaches the current default ==
. impl<T> BorrowMut<T> for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized, fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Instrument for T
fn instrument(self, span: Span) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, U> TryFrom<U> for T where
U: Into<T>, type Error = Infallible
impl<V, T> VZip<V> for T where
V: MultiLane<T>, fn vzip(self) -> V
impl<T> WithSubscriber for T
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, Subscriber
to this type, returning a
-WithDispatch
wrapper. Read morefn with_current_subscriber(self) -> WithDispatch<Self>
Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait SessionStore {
+SessionStore in actix_session::storage - Rust Trait actix_session::storage::SessionStore
source · [−]pub trait SessionStore {
fn load<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: &'life1 SessionKey
) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>, LoadError>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn save<'life0, 'life1, 'async_trait>(
&'life0 self,
session_state: HashMap<String, String>,
ttl: &'life1 Duration
) -> Pin<Box<dyn Future<Output = Result<SessionKey, SaveError>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: SessionKey,
session_state: HashMap<String, String>,
ttl: &'life1 Duration
) -> Pin<Box<dyn Future<Output = Result<SessionKey, UpdateError>> + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
@@ -24,5 +17,4 @@ is required for implementations, too. In particular, we use the send-optional va
fn update<'life0, 'life1, 'async_trait>(
&'life0 self,
session_key: SessionKey,
session_state: HashMap<String, String>,
ttl: &'life1 Duration
) -> Pin<Box<dyn Future<Output = Result<SessionKey, UpdateError>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Updates the session state associated to a pre-existing session key.
fn update_ttl<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
session_key: &'life1 SessionKey,
ttl: &'life2 Duration
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
Updates the TTL of the session state associated to a pre-existing session key.
Implementors
sourceimpl SessionStore for CookieSessionStore
sourceimpl SessionStore for RedisActorSessionStore
sourceimpl SessionStore for RedisSessionStore
pub struct Session(_);
The primary interface to access and modify session state.
+pub struct Session(_);
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct SessionGetError(_);
Error returned by Session::get
.
pub struct SessionGetError(_);
Error returned by Session::get
.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct SessionInsertError(_);
Error returned by Session::insert
.
pub struct SessionInsertError(_);
Error returned by Session::insert
.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct SessionMiddleware<Store: SessionStore> { /* private fields */ }
A middleware for session management in Actix Web applications.
+pub struct SessionMiddleware<Store: SessionStore> { /* private fields */ }
A middleware for session management in Actix Web applications.
SessionMiddleware
takes care of a few jobs:
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait SessionExt {
+SessionExt in actix_session - Rust Trait actix_session::SessionExt
source · [−]pub trait SessionExt {
fn get_session(&self) -> Session;
}
Expand description
Extract a Session
object from various actix-web
types (e.g. HttpRequest
,
ServiceRequest
, ServiceResponse
).
Required Methods
fn get_session(&self) -> Session
Extract a Session
object.
-Implementations on Foreign Types
sourceimpl SessionExt for HttpRequest
sourcefn get_session(&self) -> Session
sourceimpl SessionExt for ServiceRequest
sourcefn get_session(&self) -> Session
sourceimpl SessionExt for ServiceResponse
sourcefn get_session(&self) -> Session
sourceimpl<'a> SessionExt for GuardContext<'a>
sourcefn get_session(&self) -> Session
Implementors
-
\ No newline at end of file
+
Extractor for the “Basic” HTTP Authentication Scheme.
-Extractor for HTTP Basic auth.
+Extractor for the “Basic” HTTP Authentication Scheme.
+Extractor for HTTP Basic auth.
BasicAuth
extractor configuration used for WWW-Authenticate
header later.
pub struct BasicAuth(_);
Extractor for HTTP Basic auth.
+pub struct BasicAuth(_);
Extractor for HTTP Basic auth.
use actix_web_httpauth::extractors::basic::BasicAuth;
@@ -38,10 +31,10 @@ order to properly form the WWW-Authenticate
response header.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Config(_);
BasicAuth
extractor configuration used for WWW-Authenticate
header later.
pub struct Config(_);
BasicAuth
extractor configuration used for WWW-Authenticate
header later.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum Error {
+Error in actix_web_httpauth::extractors::bearer - Rust Enum actix_web_httpauth::extractors::bearer::Error
source · [−]pub enum Error {
InvalidRequest,
InvalidToken,
InsufficientScope,
@@ -23,28 +16,28 @@ or is otherwise malformed.
sourceimpl Ord for Error
1.21.0 · sourcefn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
-1.21.0 · sourcefn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
-1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval. Read more
+1.21.0 · sourcefn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
+1.21.0 · sourcefn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
+1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Error> for Error
sourcefn partial_cmp(&self, other: &Error) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
-1.0.0 · sourcefn 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 · sourcefn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
+
1.0.0 · sourcefn 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 · sourcefn 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 · sourcefn 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 · sourcefn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
sourceimpl Copy for Error
sourceimpl Eq for Error
sourceimpl StructuralEq for Error
sourceimpl StructuralPartialEq for Error
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Extractor for the “Bearer” HTTP Authentication Scheme.
-Extractor for HTTP Bearer auth
+Extractor for the “Bearer” HTTP Authentication Scheme.
+Extractor for HTTP Bearer auth
BearerAuth
extractor configuration.
pub struct BearerAuth(_);
Extractor for HTTP Bearer auth
+pub struct BearerAuth(_);
Extractor for HTTP Bearer auth
use actix_web_httpauth::extractors::bearer::BearerAuth;
@@ -42,10 +35,10 @@ response header.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Config(_);
BearerAuth
extractor configuration.
pub struct Config(_);
BearerAuth
extractor configuration.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Type-safe authentication information extractors.
-Extractor for the “Basic” HTTP Authentication Scheme.
+Type-safe authentication information extractors.
+Extractor for the “Basic” HTTP Authentication Scheme.
Extractor for the “Bearer” HTTP Authentication Scheme.
-Authentication error returned by authentication extractors.
-Trait implemented for types that provides configuration for the authentication +
Authentication error returned by authentication extractors.
+Trait implemented for types that provides configuration for the authentication extractors.
-pub struct AuthenticationError<C: Challenge> { /* private fields */ }
Authentication error returned by authentication extractors.
+pub struct AuthenticationError<C: Challenge> { /* private fields */ }
Authentication error returned by authentication extractors.
Different extractors may extend AuthenticationError
implementation in order to provide access
inner challenge fields.
Extended error customization for HTTP Bearer
auth.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait AuthExtractorConfig {
+AuthExtractorConfig in actix_web_httpauth::extractors - Rust pub trait AuthExtractorConfig {
type Inner: Challenge;
fn into_inner(self) -> Self::Inner;
@@ -13,5 +6,4 @@
extractors.
Required Associated Types
Required Methods
fn into_inner(self) -> Self::Inner
Convert the config instance into a HTTP challenge.
-Implementors
sourceimpl AuthExtractorConfig for actix_web_httpauth::extractors::basic::Config
sourceimpl AuthExtractorConfig for actix_web_httpauth::extractors::bearer::Config
-
\ No newline at end of file
+
pub enum ParseError {
+ParseError in actix_web_httpauth::headers::authorization - Rust pub enum ParseError {
Invalid,
MissingScheme,
MissingField(&'static str),
@@ -35,22 +28,21 @@
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
sourceimpl<T, U> TryFrom<U> for T where
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
+impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-sourcefn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
-
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Authorization
header and various auth schemes.
Authorization
header, defined in RFC 7235
Authorization
header and various auth schemes.
Authorization
header, defined in RFC 7235
Possible errors while parsing Authorization
header.
Authentication scheme for Authorization
header.
Possible errors while parsing Authorization
header.
Authentication scheme for Authorization
header.
pub struct Authorization<S: Scheme>(_);
Authorization
header, defined in RFC 7235
pub struct Authorization<S: Scheme>(_);
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 @@ -31,18 +24,18 @@ realm of the resource being requested.
Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
The type returned in the event of a conversion error.
Try to convert value to a HeaderValue.
@@ -50,12 +43,12 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Basic { /* private fields */ }
Credentials for Basic
authentication scheme, defined in RFC 7617
pub struct Basic { /* private fields */ }
Credentials for Basic
authentication scheme, defined in RFC 7617
Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
Try to parse an authentication scheme from the Authorization
header.
The type returned in the event of a conversion error.
@@ -38,10 +31,10 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct Bearer { /* private fields */ }
Credentials for Bearer
authentication scheme, defined in RFC 6750.
pub struct Bearer { /* private fields */ }
Credentials for Bearer
authentication scheme, defined in RFC 6750.
Should be used in combination with Authorization
header.
Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
Try to parse an authentication scheme from the Authorization
header.
The type returned in the event of a conversion error.
@@ -37,10 +30,10 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
+Scheme in actix_web_httpauth::headers::authorization - Rust Trait actix_web_httpauth::headers::authorization::Scheme
source · [−]pub trait Scheme: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
fn parse(header: &HeaderValue) -> Result<Self, ParseError>;
}
Expand description
Authentication scheme for Authorization
header.
Required Methods
fn parse(header: &HeaderValue) -> Result<Self, ParseError>
Try to parse an authentication scheme from the Authorization
header.
-Implementors
-
\ No newline at end of file
+
Typed HTTP headers.
-Authorization
header and various auth schemes.
Typed HTTP headers.
+Authorization
header and various auth schemes.
WWW-Authenticate
header and various auth challenges.
Challenge for the “Basic” HTTP Authentication Scheme.
-Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
+
Challenge for the “Basic” HTTP Authentication Scheme.
+Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
described in RFC 7617
pub struct Basic { /* private fields */ }
Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
+
pub struct Basic { /* private fields */ }
Challenge for WWW-Authenticate
header with HTTP Basic auth scheme,
described in RFC 7617
use actix_web_httpauth::headers::www_authenticate::basic::Basic;
@@ -36,18 +29,18 @@ described in RFC 7617
Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
The type returned in the event of a conversion error.
Try to convert value to a HeaderValue.
@@ -56,10 +49,10 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub enum Error {
+Error in actix_web_httpauth::headers::www_authenticate::bearer - Rust Enum actix_web_httpauth::headers::www_authenticate::bearer::Error
source · [−]pub enum Error {
InvalidRequest,
InvalidToken,
InsufficientScope,
@@ -23,28 +16,28 @@ or is otherwise malformed.
sourceimpl Ord for Error
1.21.0 · sourcefn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
-1.21.0 · sourcefn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
-1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self
Restrict a value to a certain interval. Read more
+1.21.0 · sourcefn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
+1.21.0 · sourcefn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
+1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<Error> for Error
sourcefn partial_cmp(&self, other: &Error) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
-1.0.0 · sourcefn 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 · sourcefn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
+
1.0.0 · sourcefn 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 · sourcefn 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 · sourcefn 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 · sourcefn ge(&self, other: &Rhs) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
sourceimpl Copy for Error
sourceimpl Eq for Error
sourceimpl StructuralEq for Error
sourceimpl StructuralPartialEq for Error
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Challenge for the “Bearer” HTTP Authentication Scheme.
-Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme, described in RFC 6750.
Challenge for the “Bearer” HTTP Authentication Scheme.
+Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme, described in RFC 6750.
Builder for the Bearer
challenge.
pub struct Bearer { /* private fields */ }
Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme, described in RFC 6750.
pub struct Bearer { /* private fields */ }
Challenge for WWW-Authenticate
header with HTTP Bearer auth scheme, described in RFC 6750.
use actix_web_httpauth::headers::www_authenticate::bearer::{
Bearer, Error,
@@ -40,18 +33,18 @@
Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
The type returned in the event of a conversion error.
Try to convert value to a HeaderValue.
@@ -60,10 +53,10 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub struct BearerBuilder(_);
Builder for the Bearer
challenge.
pub struct BearerBuilder(_);
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
WWW-Authenticate
header and various auth challenges.
Challenge for the “Basic” HTTP Authentication Scheme.
+WWW-Authenticate
header and various auth challenges.
Challenge for the “Basic” HTTP Authentication Scheme.
Challenge for the “Bearer” HTTP Authentication Scheme.
-WWW-Authenticate
header, described in RFC 7235.
Authentication challenge for WWW-Authenticate
header.
WWW-Authenticate
header, described in RFC 7235.
Authentication challenge for WWW-Authenticate
header.
pub struct WwwAuthenticate<C: Challenge>(pub C);
WWW-Authenticate
header, described in RFC 7235.
pub struct WwwAuthenticate<C: Challenge>(pub C);
0: C
Returns a copy of the value. Read more
@@ -17,18 +10,18 @@Compares and returns the maximum of two values. Read more
-Compares and returns the minimum of two values. Read more
-Restrict a value to a certain interval. Read more
+Compares and returns the maximum of two values. Read more
+Compares and returns the minimum of two values. Read more
+Restrict a value to a certain interval. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
+
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
This method tests greater than or equal to (for self
and other
) and is used by the >=
+
The type returned in the event of a conversion error.
Try to convert value to a HeaderValue.
@@ -37,10 +30,10 @@ operator.Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Calls U::from(self)
.
That is, this conversion is whatever the implementation of
From<T> for U
chooses to do.
The resulting type after obtaining ownership.
Uses borrowed data to replace owned data, usually by cloning. Read more
-The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
pub trait Challenge: TryIntoHeaderValue + Debug + Display + Clone + Send + Sync {
+Challenge in actix_web_httpauth::headers::www_authenticate - Rust
-
\ No newline at end of file
+
HTTP authentication schemes for Actix Web.
+HTTP authentication schemes for Actix Web.
Provides:
Bearer
as defined in RFC 6750.Basic
as defined in RFC 7617.Type-safe authentication information extractors.
+Type-safe authentication information extractors.
Typed HTTP headers.
HTTP Authentication middleware.
-HTTP Authentication middleware.
-Middleware for checking HTTP authentication.
-HTTP Authentication middleware.
+Middleware for checking HTTP authentication.
+pub struct HttpAuthentication<T, F> where
T: FromRequest, { /* private fields */ }
Middleware for checking HTTP authentication.
+pub struct HttpAuthentication<T, F> where
T: FromRequest, { /* private fields */ }
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.
Otherwise, it will pass both the request and the parsed credentials into it. In case of
@@ -58,10 +51,10 @@ validation callback F
.
Mutably borrows from an owned value. Read more
The type returned in the event of a conversion error.
+Attaches the provided Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
-WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
+WithDispatch
wrapper. Read more
Access-Control-Request-Headers
has an …","Request header Access-Control-Request-Method
has an …","Builder for CORS middleware.","Errors that can occur when processing CORS guarded …","One or more request headers are not allowed.","Request method is not allowed.","Request header Origin
is required but was not provided.","Request header Access-Control-Request-Method
is required …","Origin is not allowed to make this request.","Allowed origin argument must not be wildcard (*
).","Resets allowed request header list to a state where any …","Resets allowed methods list to all methods.","Resets allowed origin list to a state where any origin is …","Add an allowed request header.","Set a list of request header field names which can be used …","Set a list of methods which allowed origins can perform.","Add an origin that is allowed to make requests.","Determinate allowed origins by processing requests which …","","","","","","","A restrictive (security paranoid) set of defaults.","Disable support for preflight requests.","Disable Vary
header support.","","Resets exposed response header list to a state where any …","Set a list of headers which are safe to expose to the API …","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Set a maximum time (in seconds) for which this CORS …","","A very permissive set of default for quick development. …","Set to use wildcard origins.","","Allows users to make authenticated requests","","","","","","","","","",""],"i":[3,3,0,0,3,3,3,3,3,3,1,1,1,1,1,1,1,1,1,3,1,3,3,3,1,1,1,3,1,1,1,3,3,1,3,1,3,1,1,1,1,3,1,3,3,1,3,1,3,1,3,1,3],"f":[0,0,0,0,0,0,0,0,0,0,[1,1],[1,1],[1,1],[1,1],[1,1],[1,1],[[1,2],1],[1,1],[[]],[[]],[[]],[[]],[3,3],[[]],[[],1],[1,1],[1,1],[3,4],[1,1],[1,1],[[1,5],6],[[3,5],6],[[3,5],6],[[]],[[]],[[]],[[]],[[1,[9,[[8,[7]]]]],1],[1],[[],1],[1,1],[3,10],[1,1],[[]],[[],11],[[],12],[[],12],[[],12],[[],12],[[],13],[[],13],[[]],[[]]],"p":[[3,"Cors"],[15,"str"],[4,"CorsError"],[3,"HttpResponse"],[3,"Formatter"],[6,"Result"],[15,"usize"],[4,"Option"],[8,"Into"],[3,"StatusCode"],[3,"String"],[4,"Result"],[3,"TypeId"]]},\
"actix_identity":{"doc":"Identity management for Actix Web.","t":[3,8,3,11,11,11,11,11,11,11,0,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,13,3,4,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["Identity","IdentityExt","IdentityMiddleware","borrow","borrow","borrow_mut","borrow_mut","builder","clone","clone_into","config","default","from","from","from_request","get_identity","id","into","into","login","logout","new_transform","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","vzip","vzip","DeleteIdentityKeys","IdentityMiddlewareBuilder","LogoutBehaviour","PurgeSession","borrow","borrow","borrow_mut","borrow_mut","build","clone","clone","clone_into","clone_into","fmt","fmt","from","from","into","into","login_deadline","logout_behaviour","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","visit_deadline","vzip","vzip"],"q":["actix_identity","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_identity::config","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"d":["A verified user identity. It can be used as a request …","Helper trait to retrieve an Identity
instance from various …","Identity management middleware.","","","","","A fluent API to configure IdentityMiddleware
.","","","Configuration options to tune the behaviour of …","","Returns the argument unchanged.","Returns the argument unchanged.","","Retrieve the identity attached to the current session, if …","Return the user id associated to the current session.","Calls U::from(self)
.","Calls U::from(self)
.","Attach a valid user identity to the current session.","Remove the user identity from the current session.","","","","","","","","","","","When Identity::logout
is called, remove the identity …","A fluent builder to construct an IdentityMiddleware
…","LogoutBehaviour
controls what actions are going to be …","When Identity::logout
is called, purge the current session.","","","","","Finalises the builder and returns an IdentityMiddleware
…","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Automatically logs out users after a certain amount of …","Determines how Identity::logout
affects the current …","","","","","","","","","Automatically logs out users after a certain amount of …","",""],"i":[0,0,0,5,2,5,2,2,2,2,0,2,5,2,5,16,5,5,2,5,5,2,2,5,2,5,2,5,2,5,2,11,0,0,11,11,1,11,1,1,11,1,11,1,11,1,11,1,11,1,1,1,11,1,11,1,11,1,11,1,1,11,1],"f":[0,0,0,[[]],[[]],[[]],[[]],[[],1],[2,2],[[]],0,[[],2],[[]],[[]],[[3,4]],[[],[[7,[5,6]]]],[5,[[7,[8,6]]]],[[]],[[]],[[9,8],[[7,[5,6]]]],[5],[2],[[]],[[],7],[[],7],[[],7],[[],7],[[],10],[[],10],[[]],[[]],0,0,0,0,[[]],[[]],[[]],[[]],[1,2],[11,11],[1,1],[[]],[[]],[[11,12],13],[[1,12],13],[[]],[[]],[[]],[[]],[[1,[15,[14]]],1],[[1,11],1],[[]],[[]],[[],7],[[],7],[[],7],[[],7],[[],10],[[],10],[[1,[15,[14]]],1],[[]],[[]]],"p":[[3,"IdentityMiddlewareBuilder"],[3,"IdentityMiddleware"],[3,"HttpRequest"],[4,"Payload"],[3,"Identity"],[3,"Error"],[4,"Result"],[3,"String"],[3,"Extensions"],[3,"TypeId"],[4,"LogoutBehaviour"],[3,"Formatter"],[6,"Result"],[3,"Duration"],[4,"Option"],[8,"IdentityExt"]]},\
-"actix_limitation":{"doc":"Rate limiter using a fixed window counter for arbitrary …","t":[3,13,17,17,17,17,4,13,3,13,3,3,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12],"n":["Builder","Client","DEFAULT_COOKIE_NAME","DEFAULT_PERIOD_SECS","DEFAULT_REQUEST_LIMIT","DEFAULT_SESSION_KEY","Error","LimitExceeded","Limiter","Other","RateLimiter","Status","Time","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","builder","clone","clone","clone_into","clone_into","cookie_name","count","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","into","into","into","into","into","limit","limit","new_transform","period","remaining","reset_epoch_utc","session_key","source","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","0","0","0","0"],"q":["actix_limitation","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_limitation::Error","","",""],"d":["Rate limiter builder.","Redis client failed to connect or run a query.","Default cookie name.","Default period (in seconds).","Default request limit.","Default session key.","Failure modes of the rate limiter.","Limit is exceeded for a key.","Rate limiter.","Generic error.","Rate limit middleware.","A report for a given key containing the limit status.","Time conversion failed.","","","","","","","","","","","Finalizes and returns a Limiter
.","Construct rate limiter builder with defaults.","","","","","Set name of cookie to be sent.","Consumes one rate limit unit, returning the status.","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Set upper limit.","Returns the maximum number of requests allowed in the …","","Set limit window/period.","Returns how many requests are left in the current period.","Returns a UNIX timestamp in UTC approximately when the …","Set session key to be used in backend.","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,3,0,0,0,0,0,3,0,3,0,0,3,1,3,13,7,2,1,3,13,7,2,1,2,7,2,7,2,1,2,1,3,3,13,7,2,1,3,3,3,13,7,2,1,3,13,7,2,1,7,13,1,7,7,1,3,7,2,3,1,3,13,7,2,1,3,13,7,2,1,3,13,7,2,1,3,13,7,2,21,22,23,24],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,[[4,[2,3]]]],[[[6,[5]]],1],[7,7],[2,2],[[]],[[]],[[1,[6,[[9,[8]]]]],1],[[2,[6,[5]]],10],[[1,11],12],[[3,11],12],[[3,11],12],[[13,11],12],[[7,11],12],[[2,11],12],[[]],[[]],[14,3],[15,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,16],1],[7,16],[13],[[1,17],1],[7,16],[7,16],[[1,[6,[[9,[8]]]]],1],[3,[[19,[18]]]],[[]],[[]],[[],5],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],20],[[],20],[[],20],[[],20],[[],20],[[]],[[]],[[]],[[]],[[]],0,0,0,0],"p":[[3,"Builder"],[3,"Limiter"],[4,"Error"],[4,"Result"],[3,"String"],[8,"Into"],[3,"Status"],[15,"str"],[4,"Cow"],[8,"Future"],[3,"Formatter"],[6,"Result"],[3,"RateLimiter"],[3,"RedisError"],[3,"ComponentRange"],[15,"usize"],[3,"Duration"],[8,"Error"],[4,"Option"],[3,"TypeId"],[13,"Client"],[13,"LimitExceeded"],[13,"Time"],[13,"Other"]]},\
-"actix_protobuf":{"doc":"Protobuf payload extractor for Actix Web.","t":[12,13,13,13,13,3,3,3,4,8,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12],"n":["0","ContentType","Deserialize","Overflow","Payload","ProtoBuf","ProtoBufConfig","ProtoBufMessage","ProtoBufPayloadError","ProtoBufResponseBuilder","Serialize","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","default","deref","deref_mut","error_response","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_request","into","into","into","into","into_future","limit","limit","new","poll","protobuf","resource_path","respond_to","to_string","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","0","0","0"],"q":["actix_protobuf","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_protobuf::ProtoBufPayloadError","",""],"d":["","Content type error","Deserialize error","Payload size is bigger than 256k","Payload error","","","","","","Serialize error","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","Change max size of payload. By default max size is 256Kb","Change max size of payload. By default max size is 256Kb","Create ProtoBufMessage
for request.","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[3,4,4,4,4,0,0,0,0,0,4,3,1,14,4,3,1,14,4,1,3,3,4,3,3,4,4,3,1,14,4,4,4,3,3,1,14,4,14,1,14,14,14,23,3,3,3,4,3,1,14,4,3,1,14,4,14,3,1,14,4,3,1,14,4,24,25,26],"f":[0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],1],[[[3,[2]]]],[[[3,[2]]]],[4,5],[[[3,[2]],6],7],[[[3,[2]],6],7],[[4,6],7],[[4,6],7],[[]],[[]],[[]],[[]],[8,4],[9,4],[[10,11]],[[]],[[]],[[]],[[]],[[]],[[1,12],1],[[[14,[[0,[2,13]]]],12],[[14,[[0,[2,13]]]]]],[[10,11],[[14,[[0,[2,13]]]]]],[[[15,[[14,[[0,[2,13]]]]]],16],17],[2,[[19,[5,18]]]],[[],20],[[[3,[[0,[2,13]]]],10],5],[[],21],[[],21],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[15,16],17],[[],22],[[],22],[[],22],[[],22],[[]],[[]],[[]],[[]],0,0,0],"p":[[3,"ProtoBufConfig"],[8,"Message"],[3,"ProtoBuf"],[4,"ProtoBufPayloadError"],[3,"HttpResponse"],[3,"Formatter"],[6,"Result"],[3,"DecodeError"],[4,"PayloadError"],[3,"HttpRequest"],[4,"Payload"],[15,"usize"],[8,"Default"],[3,"ProtoBufMessage"],[3,"Pin"],[3,"Context"],[4,"Poll"],[3,"Error"],[4,"Result"],[3,"Path"],[3,"String"],[3,"TypeId"],[8,"ProtoBufResponseBuilder"],[13,"Serialize"],[13,"Deserialize"],[13,"Payload"]]},\
-"actix_redis":{"doc":"Redis integration for actix
.","t":[12,13,13,3,13,13,4,13,13,13,13,13,13,13,3,13,13,4,4,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,14,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12],"n":["0","Array","BulkString","Command","Connection","Disconnected","Error","Error","IO","Integer","Internal","Nil","NotConnected","Redis","RedisActor","Remote","Resp","RespError","RespValue","SimpleString","Unexpected","append","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","eq","equivalent","error","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_resp_int","handle","handle","into","into","into","into","into","ne","push","resp_array","restarting","source","source","start","started","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0","0","1","0","0","0","0","0"],"q":["actix_redis","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_redis::Error","actix_redis::RespError","","","","","","","actix_redis::RespValue","","","",""],"d":["","Zero, one or more other RespValue
s.","A bulk string. In Redis terminology a string is a …","Command for sending data to Redis.","Error creating a connection, or an error with a connection …","Cancel all waiters when connection is dropped.","General purpose actix-redis
error.","An error from the Redis server","An IO error occurred","Redis documentation defines an integer as being a signed …","A non-specific internal error that prevented an operation …","","Receiving message during reconnecting.","","Redis communication actor.","A remote error","A RESP parsing/serialising error occurred","","A single RESP value, this owns the data that is read/to-be …","","An unexpected error. In this context “unexpected” …","Convenience function for building dynamic Redis commands …","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","","","","Returns the argument unchanged.","","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","Push item to Resp array","Macro to create a RESP array, useful for preparing …","","","","Start new Supervisor
with RedisActor
.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[7,1,1,0,13,10,0,1,13,1,13,1,10,10,0,13,13,0,0,1,13,1,4,7,10,1,13,4,7,10,1,13,1,1,1,1,4,7,10,10,1,13,13,4,7,10,10,1,1,1,1,1,1,1,1,13,13,13,1,4,4,4,7,10,1,13,1,1,0,4,10,13,4,4,1,10,13,4,7,10,1,13,4,7,10,1,13,4,7,10,1,13,4,7,10,1,13,28,29,30,31,32,33,34,31,35,36,37,38,39],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[1,2],1],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,1],[[]],[[1,1],3],[[],3],[[4,5],6],[[7,8],9],[[10,8],9],[[10,8],9],[[1,8],[[12,[11]]]],[[13,8],[[12,[11]]]],[[13,8],[[12,[11]]]],[[]],[[]],[[]],[13,10],[[]],[[[15,[14]]],1],[16,1],[17,1],[14,1],[16,1],[[[20,[18,19]]],1],[[],1],[5,13],[21,13],[[]],[1,[[12,[1,13]]]],[[4,7]],[[4,[12,[1,13]]]],[[]],[[]],[[]],[[]],[[]],[[1,1],3],[1],0,[4],[10,[[23,[22]]]],[13,[[23,[22]]]],[[[24,[16]]],[[25,[4]]]],[[4,26]],[[]],[[],16],[[],16],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],27],[[],27],[[],27],[[],27],[[],27],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0],"p":[[4,"RespValue"],[8,"IntoIterator"],[15,"bool"],[3,"RedisActor"],[3,"Error"],[4,"Running"],[3,"Command"],[3,"Formatter"],[6,"Result"],[4,"Error"],[3,"Error"],[4,"Result"],[4,"RespError"],[15,"str"],[3,"Arc"],[3,"String"],[15,"usize"],[15,"u8"],[3,"Global"],[3,"Vec"],[3,"TrySendError"],[8,"Error"],[4,"Option"],[8,"Into"],[3,"Addr"],[3,"Context"],[3,"TypeId"],[13,"Redis"],[13,"Internal"],[13,"IO"],[13,"Resp"],[13,"Remote"],[13,"Connection"],[13,"Unexpected"],[13,"Array"],[13,"BulkString"],[13,"Error"],[13,"Integer"],[13,"SimpleString"]]},\
-"actix_session":{"doc":"Session management for Actix Web.","t":[13,13,13,3,8,3,3,3,4,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,13,4,13,13,3,13,13,4,3,13,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,13,4,13,13,13,3,3,3,3,4,13,13,3,8,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12],"n":["Changed","Purged","Renewed","Session","SessionExt","SessionGetError","SessionInsertError","SessionMiddleware","SessionStatus","Unchanged","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builder","clear","clone","clone","clone","clone_into","clone_into","clone_into","config","default","entries","eq","equivalent","error_response","error_response","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_request","get","get_session","insert","into","into","into","into","into","new","new_transform","purge","remove","remove_as","renew","source","source","status","storage","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","BrowserSession","BrowserSession","CookieContentSecurity","OnEveryRequest","OnStateChanges","PersistentSession","PersistentSession","Private","SessionLifecycle","SessionMiddlewareBuilder","Signed","TtlExtensionPolicy","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","cookie_content_security","cookie_domain","cookie_http_only","cookie_name","cookie_path","cookie_same_site","cookie_secure","default","default","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","into","into","into","into","into","into","session_lifecycle","session_ttl","session_ttl_extension_policy","state_ttl","state_ttl_extension_policy","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","0","0","CookieSessionStore","Deserialization","LoadError","Other","Other","Other","RedisActorSessionStore","RedisActorSessionStoreBuilder","RedisSessionStore","RedisSessionStoreBuilder","SaveError","Serialization","Serialization","SessionKey","SessionStore","UpdateError","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","build","builder","builder","cache_keygen","cache_keygen","clone","clone_into","default","delete","delete","delete","delete","eq","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","load","load","load","load","ne","new","new","save","save","save","save","source","source","source","to_owned","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update","update","update","update","update_ttl","update_ttl","update_ttl","update_ttl","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0"],"q":["actix_session","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::config","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::config::SessionLifecycle","","actix_session::storage","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::storage::LoadError","","actix_session::storage::SaveError","","actix_session::storage::UpdateError",""],"d":["Session state has been updated - the changes will have to …","The session has been flagged for deletion - the session …","The session has been flagged for renewal.","The primary interface to access and modify session state.","Extract a Session
object from various actix-web
types …","Error returned by Session::get
.","Error returned by Session::insert
.","A middleware for session management in Actix Web …","Status of a Session
.","The session state has not been modified since its …","","","","","","","","","","","A fluent API to configure SessionMiddleware
.","Clear the session.","","","","","","","Configuration options to tune the behaviour of …","","Get all raw key-value data from the session.","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","","Get a value
from the session.","Extract a Session
object.","Inserts a key-value pair into the session.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Use SessionMiddleware::new
to initialize the session …","","Removes session both client and server side.","Remove value from the session.","Remove value from the session and deserialize.","Renews the session key, assigning existing session state …","","","Returns session status.","Pluggable storage backends for session state.","","","","","","","","","","","","","","","","","","","","","","","","","","A session lifecycle strategy where the session cookie …","The session cookie will expire when the current browser …","Determines how to secure the content of the session cookie.","The TTL is refreshed every time the server receives a …","The TTL is refreshed every time the session state changes …","A session lifecycle strategy where the session cookie will …","The session cookie will be a persistent cookie.","The cookie content is encrypted when using …","Determines what type of session cookie should be used and …","A fluent builder to construct a SessionMiddleware
instance …","The cookie content is signed when using …","Configuration for which events should trigger an extension …","","","","","","","","","","","","","Finalise the builder and return a SessionMiddleware
…","","","","","","","","","","","Choose how the session cookie content should be secured.","Set the Domain
attribute for the cookie used to store the …","Set the HttpOnly
attribute for the cookie used to store …","Set the name of the cookie used to store the session ID.","Set the Path
attribute for the cookie used to store the …","Set the SameSite
attribute for the cookie used to store …","Set the Secure
attribute for the cookie used to store the …","","","","","","","","Returns the argument unchanged.","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Determines what type of session cookie should be used and …","Specifies how long the session cookie should live.","Determines under what circumstances the TTL of your …","Sets a time-to-live (TTL) when storing the session state …","Determine under what circumstances the TTL of your session …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Use the session key, stored in the session cookie, as …","Failed to deserialize session state.","Possible failures modes for SessionStore::load
.","Something went wrong when retrieving the session state.","Something went wrong when persisting the session state.","Something went wrong when updating the session state.","Use Redis as session storage backend.","A fluent builder to construct a RedisActorSessionStore
…","Use Redis as session storage backend.","A fluent builder to construct a RedisSessionStore
instance …","Possible failures modes for SessionStore::save
.","Failed to serialize session state.","Failed to serialize session state.","A session key, the string stored in a client-side cookie …","The interface to retrieve and save the current session …","Possible failures modes for SessionStore::update
.","","","","","","","","","","","","","","","","","","","","Finalise the builder and return a RedisActorSessionStore
…","Finalise the builder and return a RedisActorSessionStore
…","A fluent API to configure RedisActorSessionStore
.","A fluent API to configure RedisSessionStore
. It takes as …","Set a custom cache key generation strategy, expecting a …","Set a custom cache key generation strategy, expecting a …","","","","Deletes a session from the store.","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Loads the session state associated to a session key.","","","","","Create a new instance of RedisActorSessionStore
using the …","Create a new instance of RedisSessionStore
using the …","Persist the session state for a newly created session.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Updates the session state associated to a pre-existing …","","","","Updates the TTL of the session state associated to a …","","","","","","","","","","","","","","","","","",""],"i":[7,7,7,0,0,0,0,0,0,7,6,4,7,12,15,6,4,7,12,15,6,4,6,4,7,6,4,7,0,7,4,7,7,12,15,7,12,12,15,15,6,4,7,12,12,15,15,4,4,48,4,6,4,7,12,15,6,6,4,4,4,4,12,15,4,0,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,0,29,0,32,32,0,29,33,0,0,33,0,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,29,30,31,32,33,3,3,3,3,3,3,3,30,31,29,30,31,32,33,3,29,29,29,30,31,32,33,3,29,30,31,32,33,3,31,31,30,30,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,49,50,0,45,0,45,46,47,0,0,0,0,0,46,47,0,0,0,36,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,37,39,38,41,37,39,41,41,42,1,38,42,41,36,36,45,45,46,46,47,47,36,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,1,38,42,41,36,38,41,1,38,42,41,45,46,47,41,45,46,47,38,37,39,45,46,47,36,36,42,41,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,1,38,42,41,1,38,42,41,38,37,39,45,46,47,36,42,41,51,52,53,54,55,56],"f":[0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,2],[[3,[1]]]],[4],[[[6,[[0,[5,1]]]]],[[6,[[0,[5,1]]]]]],[4,4],[7,7],[[]],[[]],[[]],0,[[],7],[4,[[10,[[9,[8,8]]]]]],[[7,7],11],[[],11],[12,[[14,[13]]]],[15,[[14,[13]]]],[[7,16],17],[[12,16],17],[[12,16],17],[[15,16],17],[[15,16],17],[[]],[[]],[[]],[18,12],[[]],[[]],[18,15],[[19,20]],[[4,21],[[24,[[23,[22]],12]]]],[[],4],[[4,[25,[8]],26],[[24,[15]]]],[[]],[[]],[[]],[[]],[[]],[[1,2],[[6,[1]]]],[6],[4],[[4,21],[[23,[8]]]],[[4,21],[[23,[[24,[22,8]]]]]],[4],[12,[[23,[27]]]],[15,[[23,[27]]]],[4,7],0,[[]],[[]],[[]],[[],8],[[],8],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[3,[1]]],[[6,[1]]]],[29,29],[30,30],[31,31],[32,32],[33,33],[[]],[[]],[[]],[[]],[[]],[[[3,[1]],33],[[3,[1]]]],[[[3,[1]],[23,[8]]],[[3,[1]]]],[[[3,[1]],11],[[3,[1]]]],[[[3,[1]],8],[[3,[1]]]],[[[3,[1]],8],[[3,[1]]]],[[[3,[1]],34],[[3,[1]]]],[[[3,[1]],11],[[3,[1]]]],[[],30],[[],31],[[29,16],17],[[30,16],17],[[31,16],17],[[32,16],17],[[33,16],17],[[]],[30,29],[31,29],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[3,[1]],[25,[29]]],[[3,[1]]]],[[31,35],31],[[31,32],31],[[30,35],30],[[30,32],30],[[]],[[]],[[]],[[]],[[]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[36,21],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[37,38],[39,40],[[[25,[8]]],37],[[[25,[8]]],39],[37,37],[39,39],[41,41],[[]],[[],42],[36,[[44,[[43,[40]]]]]],[[38,36],[[44,[[43,[40]]]]]],[[42,36],[[44,[[43,[40]]]]]],[[41,36],[[44,[[43,[40]]]]]],[[36,36],11],[[],11],[[45,16],17],[[45,16],17],[[46,16],17],[[46,16],17],[[47,16],17],[[47,16],17],[[36,16],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[36,[[44,[[43,[40]]]]]],[[38,36],[[44,[[43,[40]]]]]],[[42,36],[[44,[[43,[40]]]]]],[[41,36],[[44,[[43,[40]]]]]],[[36,36],11],[[[25,[8]]],38],[[[25,[8]]],40],[[[9,[8,8]],35],[[44,[[43,[40]]]]]],[[38,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[42,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[41,[9,[8,8]],35],[[44,[[43,[40]]]]]],[45,[[23,[27]]]],[46,[[23,[27]]]],[47,[[23,[27]]]],[[]],[[],8],[[],8],[[],8],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[8,[[24,[36]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[38,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[42,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[41,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[36,35],[[44,[[43,[40]]]]]],[[38,36,35],[[44,[[43,[40]]]]]],[[42,36,35],[[44,[[43,[40]]]]]],[[41,36,35],[[44,[[43,[40]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0],"p":[[8,"SessionStore"],[3,"Key"],[3,"SessionMiddlewareBuilder"],[3,"Session"],[8,"Clone"],[3,"SessionMiddleware"],[4,"SessionStatus"],[3,"String"],[3,"HashMap"],[3,"Ref"],[15,"bool"],[3,"SessionGetError"],[3,"BoxBody"],[3,"HttpResponse"],[3,"SessionInsertError"],[3,"Formatter"],[6,"Result"],[3,"Error"],[3,"HttpRequest"],[4,"Payload"],[15,"str"],[8,"DeserializeOwned"],[4,"Option"],[4,"Result"],[8,"Into"],[8,"Serialize"],[8,"Error"],[3,"TypeId"],[4,"SessionLifecycle"],[3,"BrowserSession"],[3,"PersistentSession"],[4,"TtlExtensionPolicy"],[4,"CookieContentSecurity"],[4,"SameSite"],[3,"Duration"],[3,"SessionKey"],[3,"RedisActorSessionStoreBuilder"],[3,"RedisActorSessionStore"],[3,"RedisSessionStoreBuilder"],[8,"Future"],[3,"RedisSessionStore"],[3,"CookieSessionStore"],[3,"Box"],[3,"Pin"],[4,"LoadError"],[4,"SaveError"],[4,"UpdateError"],[8,"SessionExt"],[13,"BrowserSession"],[13,"PersistentSession"],[13,"Deserialization"],[13,"Other"],[13,"Serialization"],[13,"Other"],[13,"Serialization"],[13,"Other"]]},\
-"actix_web_httpauth":{"doc":"HTTP authentication schemes for Actix Web.","t":[0,0,0,8,3,16,0,0,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,0,3,13,3,3,13,13,13,4,8,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,8,3,0,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["extractors","headers","middleware","AuthExtractorConfig","AuthenticationError","Inner","basic","bearer","borrow","borrow_mut","challenge_mut","error_response","fmt","fmt","from","from","into","into_inner","new","status_code","status_code_mut","to_string","try_from","try_into","type_id","vzip","with_error","with_error_description","with_error_uri","BasicAuth","Config","as_ref","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","fmt","fmt","from","from","from_request","into","into","into_inner","password","realm","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","user_id","vzip","vzip","BearerAuth","Config","Error","InsufficientScope","InvalidRequest","InvalidToken","as_ref","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","default","eq","equivalent","fmt","fmt","fmt","fmt","from","from","from","from_request","get_hash","hash","into","into","into","into_inner","partial_cmp","realm","scope","status_code","to_owned","to_owned","to_owned","to_string","token","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","authorization","www_authenticate","Authorization","Base64DecodeError","Basic","Bearer","Invalid","MissingField","MissingScheme","ParseError","Scheme","ToStrError","Utf8Error","as_mut","as_ref","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","cmp","default","eq","eq","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","get_hash","hash","into","into","into","into","into_scheme","name","ne","ne","ne","new","new","parse","parse","parse","parse","partial_cmp","partial_cmp","partial_cmp","password","source","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","token","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into_pair","try_into_value","try_into_value","try_into_value","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","0","0","0","0","0","Challenge","WwwAuthenticate","basic","bearer","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","from","get_hash","hash","into","name","ne","parse","partial_cmp","to_bytes","to_owned","try_from","try_into","try_into_pair","try_into_value","type_id","vzip","Basic","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","fmt","from","get_hash","hash","into","ne","new","partial_cmp","to_owned","to_string","try_from","try_into","try_into_value","type_id","vzip","with_realm","Bearer","BearerBuilder","Error","InsufficientScope","InvalidRequest","InvalidToken","borrow","borrow","borrow_mut","borrow_mut","build","clone","clone_into","cmp","default","default","eq","equivalent","error","error_description","error_uri","finish","fmt","fmt","fmt","from","from","get_hash","hash","into","into","ne","partial_cmp","realm","scope","to_owned","to_string","try_from","try_from","try_into","try_into","try_into_value","type_id","type_id","vzip","vzip","HttpAuthentication","basic","bearer","borrow","borrow_mut","clone","clone_into","fmt","from","into","new_transform","to_owned","try_from","try_into","type_id","vzip","with_fn"],"q":["actix_web_httpauth","","","actix_web_httpauth::extractors","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::basic","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers","","actix_web_httpauth::headers::authorization","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::authorization::ParseError","","","","actix_web_httpauth::headers::www_authenticate","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::basic","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::middleware","","","","","","","","","","","","","","","",""],"d":["Type-safe authentication information extractors.","Typed HTTP headers.","HTTP Authentication middleware.","Trait implemented for types that provides configuration …","Authentication error returned by authentication extractors.","Associated challenge type.","Extractor for the “Basic” HTTP Authentication Scheme.","Extractor for the “Bearer” HTTP Authentication Scheme.","","","Returns mutable reference to the inner challenge instance.","","","","Returns the argument unchanged.","","Calls U::from(self)
.","Convert the config instance into a HTTP challenge.","Creates new authentication error from the provided …","","Returns mutable reference to the inner status code.","","","","","","Attach Error
to the current Authentication error.","Attach error description to the current Authentication …","Attach error URI to the current Authentication error.","Extractor for HTTP Basic auth.","BasicAuth
extractor configuration used for WWW-Authenticate
…","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self)
.","Calls U::from(self)
.","","Returns client’s password.","Set challenge realm
attribute.","","","","","","","","","Returns client’s user-ID.","","","Extractor for HTTP Bearer auth","BearerAuth
extractor configuration.","Bearer authorization error types, described in RFC 6750.","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","","Set challenge realm
attribute.","Set challenge scope
attribute.","Returns HTTP status code suitable for current error type.","","","","","Returns bearer token provided by client.","","","","","","","","","","","","","Authorization
header and various auth schemes.","WWW-Authenticate
header and various auth challenges.","Authorization
header, defined in RFC 7235","Malformed base64 string.","Credentials for Basic
authentication scheme, defined in …","Credentials for Bearer
authentication scheme, defined in …","Header value is malformed.","Required authentication field is missing.","Authentication scheme is missing.","Possible errors while parsing Authorization
header.","Authentication scheme for Authorization
header.","Unable to convert header into the str.","Malformed UTF-8 string.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","Returns the argument unchanged.","","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Consumes Authorization
header and returns inner Scheme
…","","","","","Creates Basic
credentials with provided user_id
and …","Creates new Bearer
credentials with the token provided.","Try to parse an authentication scheme from the …","","","","","","","Returns client’s password if provided.","","","","","","","","","Gets reference to the credentials token.","","","","","","","","","","","","","","","","","Returns client’s user-ID.","","","","","","","","","","Authentication challenge for WWW-Authenticate
header.","WWW-Authenticate
header, described in RFC 7235.","Challenge for the “Basic” HTTP Authentication Scheme.","Challenge for the “Bearer” HTTP Authentication Scheme.","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self)
.","","","","","Converts the challenge into a bytes suitable for HTTP …","","","","","","","","Challenge for WWW-Authenticate
header with HTTP Basic auth …","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self)
.","","Creates new Basic
challenge with an empty realm
field.","","","","","","","","","Creates new Basic
challenge from the provided realm
field …","Challenge for WWW-Authenticate
header with HTTP Bearer …","Builder for the Bearer
challenge.","Bearer authorization error types, described in RFC 6750.","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","Creates the builder for Bearer
challenge.","","","","","","","","Provides the error
attribute, as defined in [RFC 6750, …","Provides the error_description
attribute, as defined in […","Provides the error_uri
attribute, as defined in [RFC 6750 …","Consumes the builder and returns built Bearer
instance.","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self)
.","Calls U::from(self)
.","","","Provides the realm
attribute, as defined in RFC 2617.","Provides the scope
attribute, as defined in RFC 6749 §3.3.","","","","","","","","","","","","Middleware for checking HTTP authentication.","Construct HttpAuthentication
middleware for the HTTP “…","Construct HttpAuthentication
middleware for the HTTP “…","","","","","","Returns the argument unchanged.","Calls U::from(self)
.","","","","","","","Construct HttpAuthentication
middleware with the provided …"],"i":[0,0,0,0,0,51,0,0,2,2,2,2,2,2,2,2,2,51,2,2,2,2,2,2,2,2,2,2,2,0,0,13,13,15,13,15,13,15,13,15,13,13,15,13,15,15,13,15,13,15,13,13,15,13,15,13,15,13,15,15,13,15,0,0,0,12,12,12,20,20,21,12,20,21,12,20,21,12,20,21,12,12,20,12,12,20,21,12,12,20,21,12,21,12,12,20,21,12,20,12,20,20,12,20,21,12,12,21,20,21,12,20,21,12,20,21,12,20,21,12,0,0,0,35,0,0,35,35,35,0,0,35,35,28,28,35,28,30,31,35,28,30,31,28,30,31,28,30,31,28,30,31,28,28,30,31,28,30,31,35,35,28,28,30,30,31,31,35,35,35,35,28,28,28,30,31,28,28,35,28,30,31,28,28,28,30,31,30,31,27,28,30,31,28,30,31,30,35,28,30,31,35,28,30,31,31,35,28,30,31,35,28,30,31,28,28,30,31,35,28,30,31,30,35,28,30,31,52,53,54,55,46,0,0,0,0,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,1,46,46,46,46,46,46,46,0,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,0,0,0,12,12,12,49,11,49,11,11,11,11,11,49,11,11,11,49,49,49,49,49,11,11,49,11,11,11,49,11,11,11,49,49,11,11,49,11,49,11,11,49,11,49,11,0,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50],"f":[0,0,0,0,0,0,0,0,[[]],[[]],[[[2,[1]]]],[[[2,[1]]],3],[[[2,[1]],4],5],[[[2,[[0,[6,1]]]],4],5],[[]],[[],2],[[]],[[]],[1,[[2,[1]]]],[[[2,[1]]],7],[[[2,[1]]],7],[[],8],[[],9],[[],9],[[],10],[[]],[[[2,[11]],12],[[2,[11]]]],[[[2,[11]]],[[2,[11]]]],[[[2,[11]]],[[2,[11]]]],0,0,[13,14],[[]],[[]],[[]],[[]],[13,13],[15,15],[[]],[[]],[[],13],[[13,4],5],[[15,4],5],[[]],[[]],[[16,17]],[[]],[[]],[13],[15,[[19,[18]]]],[13,13],[[]],[[]],[[],9],[[],9],[[],9],[[],9],[[],10],[[],10],[15,18],[[]],[[]],0,0,0,0,0,0,[20,11],[[]],[[]],[[]],[[]],[[]],[[]],[20,20],[21,21],[12,12],[[]],[[]],[[]],[[12,12],22],[[],20],[[12,12],23],[[],23],[[20,4],5],[[21,4],5],[[12,4],5],[[12,4],5],[[]],[[]],[[]],[[16,17]],[[],24],[12],[[]],[[]],[[]],[20],[[12,12],[[19,[22]]]],[[20,[26,[[25,[18]]]]],20],[[20,[26,[[25,[18]]]]],20],[12,7],[[]],[[]],[[]],[[],8],[21,18],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],10],[[],10],[[],10],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,[[[28,[27]]]],[[[28,[27]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[28,[[0,[29,27]]]]],[[28,[[0,[29,27]]]]]],[30,30],[31,31],[[]],[[]],[[]],[[[28,[[0,[32,27]]]],28],22],[[30,30],22],[[31,31],22],[[],[[28,[[0,[33,27]]]]]],[[[28,[[0,[34,27]]]],28],23],[[30,30],23],[[31,31],23],[[],23],[[],23],[[],23],[[35,4],5],[[35,4],5],[[[28,[[0,[6,27]]]],4],5],[[[28,[27]],4],5],[[30,4],5],[[30,4],5],[[31,4],5],[[31,4],5],[36,35],[[]],[37,35],[38,35],[27,[[28,[27]]]],[[]],[39],[[]],[[]],[[],24],[[[28,[[0,[40,27]]]]]],[[]],[[]],[[]],[[]],[[[28,[27]]],27],[[],41],[[[28,[[0,[34,27]]]],28],23],[[30,30],23],[[31,31],23],[19,30],[[],31],[42,[[9,[35]]]],[[],[[9,[[28,[27]],43]]]],[42,[[9,[30,35]]]],[42,[[9,[31,35]]]],[[[28,[[0,[44,27]]]],28],[[19,[22]]]],[[30,30],[[19,[22]]]],[[31,31],[[19,[22]]]],[30,[[19,[18]]]],[35,[[19,[45]]]],[[]],[[]],[[]],[[],8],[[],8],[[],8],[[],8],[31,18],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[[28,[27]]],[[9,[42]]]],[30,[[9,[42]]]],[31,[[9,[42]]]],[[],10],[[],10],[[],10],[[],10],[30,18],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,[[]],[[]],[[[46,[[0,[29,1]]]]],[[46,[[0,[29,1]]]]]],[[]],[[[46,[[0,[32,1]]]],46],22],[[],[[46,[[0,[33,1]]]]]],[[[46,[[0,[34,1]]]],46],23],[[],23],[[[46,[[0,[6,1]]]],4],5],[[]],[[],24],[[[46,[[0,[40,1]]]]]],[[]],[[],41],[[[46,[[0,[34,1]]]],46],23],[[],[[9,[[46,[1]],43]]]],[[[46,[[0,[44,1]]]],46],[[19,[22]]]],[[],47],[[]],[[],9],[[],9],[[],9],[[[46,[1]]],[[9,[42]]]],[[],10],[[]],0,[[]],[[]],[14,14],[[]],[[14,14],22],[[],14],[[14,14],23],[[],23],[[14,4],5],[[14,4],[[9,[48]]]],[[]],[[],24],[14],[[]],[[14,14],23],[[],14],[[14,14],[[19,[22]]]],[[]],[[],8],[[],9],[[],9],[14,[[9,[42]]]],[[],10],[[]],[[],14],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[],49],[11,11],[[]],[[11,11],22],[[],49],[[],11],[[11,11],23],[[],23],[[49,12],49],[49,49],[49,49],[49,11],[[49,4],5],[[11,4],[[9,[48]]]],[[11,4],5],[[]],[[]],[[],24],[11],[[]],[[]],[[11,11],23],[[11,11],[[19,[22]]]],[49,49],[49,49],[[]],[[],8],[[],9],[[],9],[[],9],[[],9],[11,[[9,[42]]]],[[],10],[[],10],[[]],[[]],0,[[],[[50,[15]]]],[[],[[50,[21]]]],[[]],[[]],[[[50,[29,29]]],[[50,[29,29]]]],[[]],[[[50,[6,6]],4],5],[[]],[[]],[50],[[]],[[],9],[[],9],[[],10],[[]],[[],50]],"p":[[8,"Challenge"],[3,"AuthenticationError"],[3,"HttpResponse"],[3,"Formatter"],[6,"Result"],[8,"Debug"],[3,"StatusCode"],[3,"String"],[4,"Result"],[3,"TypeId"],[3,"Bearer"],[4,"Error"],[3,"Config"],[3,"Basic"],[3,"BasicAuth"],[3,"HttpRequest"],[4,"Payload"],[15,"str"],[4,"Option"],[3,"Config"],[3,"BearerAuth"],[4,"Ordering"],[15,"bool"],[15,"u64"],[4,"Cow"],[8,"Into"],[8,"Scheme"],[3,"Authorization"],[8,"Clone"],[3,"Basic"],[3,"Bearer"],[8,"Ord"],[8,"Default"],[8,"PartialEq"],[4,"ParseError"],[3,"Utf8Error"],[3,"ToStrError"],[4,"DecodeError"],[15,"never"],[8,"Hash"],[3,"HeaderName"],[3,"HeaderValue"],[4,"ParseError"],[8,"PartialOrd"],[8,"Error"],[3,"WwwAuthenticate"],[3,"Bytes"],[3,"Error"],[3,"BearerBuilder"],[3,"HttpAuthentication"],[8,"AuthExtractorConfig"],[13,"MissingField"],[13,"ToStrError"],[13,"Base64DecodeError"],[13,"Utf8Error"]]}\
+"actix_limitation":{"doc":"Rate limiter using a fixed window counter for arbitrary …","t":[3,13,17,17,17,17,4,13,3,13,3,3,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12],"n":["Builder","Client","DEFAULT_COOKIE_NAME","DEFAULT_PERIOD_SECS","DEFAULT_REQUEST_LIMIT","DEFAULT_SESSION_KEY","Error","LimitExceeded","Limiter","Other","RateLimiter","Status","Time","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","builder","clone","clone","clone_into","clone_into","cookie_name","count","default","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","into","into","into","into","into","limit","limit","new_transform","period","remaining","reset_epoch_utc","session_key","source","to_owned","to_owned","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","0","0","0","0"],"q":["actix_limitation","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_limitation::Error","","",""],"d":["Rate limiter builder.","Redis client failed to connect or run a query.","Default cookie name.","Default period (in seconds).","Default request limit.","Default session key.","Failure modes of the rate limiter.","Limit is exceeded for a key.","Rate limiter.","Generic error.","Rate limit middleware.","A report for a given key containing the limit status.","Time conversion failed.","","","","","","","","","","","Finalizes and returns a Limiter
.","Construct rate limiter builder with defaults.","","","","","Set name of cookie to be sent.","Consumes one rate limit unit, returning the status.","","","","","","","","Returns the argument unchanged.","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Set upper limit.","Returns the maximum number of requests allowed in the …","","Set limit window/period.","Returns how many requests are left in the current period.","Returns a UNIX timestamp in UTC approximately when the …","Set session key to be used in backend.","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[0,3,0,0,0,0,0,3,0,3,0,0,3,1,3,11,7,2,1,3,11,7,2,1,2,7,2,7,2,1,2,11,1,3,3,11,7,2,1,3,3,3,11,7,2,1,3,11,7,2,1,7,11,1,7,7,1,3,7,2,3,1,3,11,7,2,1,3,11,7,2,1,3,11,7,2,1,3,11,7,2,21,22,23,24],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,[[4,[2,3]]]],[[[6,[5]]],1],[7,7],[2,2],[[]],[[]],[[1,[6,[[9,[8]]]]],1],[[2,[6,[5]]],10],[[],11],[[1,12],13],[[3,12],13],[[3,12],13],[[11,12],13],[[7,12],13],[[2,12],13],[[]],[14,3],[15,3],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,16],1],[7,16],[11],[[1,17],1],[7,16],[7,16],[[1,[6,[[9,[8]]]]],1],[3,[[19,[18]]]],[[]],[[]],[[],5],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],4],[[],20],[[],20],[[],20],[[],20],[[],20],[[]],[[]],[[]],[[]],[[]],0,0,0,0],"p":[[3,"Builder"],[3,"Limiter"],[4,"Error"],[4,"Result"],[3,"String"],[8,"Into"],[3,"Status"],[15,"str"],[4,"Cow"],[8,"Future"],[3,"RateLimiter"],[3,"Formatter"],[6,"Result"],[3,"ComponentRange"],[3,"RedisError"],[15,"usize"],[3,"Duration"],[8,"Error"],[4,"Option"],[3,"TypeId"],[13,"Client"],[13,"LimitExceeded"],[13,"Time"],[13,"Other"]]},\
+"actix_protobuf":{"doc":"Protobuf payload extractor for Actix Web.","t":[12,13,13,13,13,3,3,3,4,8,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12],"n":["0","ContentType","Deserialize","Overflow","Payload","ProtoBuf","ProtoBufConfig","ProtoBufMessage","ProtoBufPayloadError","ProtoBufResponseBuilder","Serialize","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","default","deref","deref_mut","error_response","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from_request","into","into","into","into","into_future","limit","limit","new","poll","protobuf","resource_path","respond_to","to_string","to_string","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_poll","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","0","0","0"],"q":["actix_protobuf","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_protobuf::ProtoBufPayloadError","",""],"d":["","Content type error","Deserialize error","Payload size is bigger than 256k","Payload error","","","","","","Serialize error","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","Change max size of payload. By default max size is 256Kb","Change max size of payload. By default max size is 256Kb","Create ProtoBufMessage
for request.","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[3,4,4,4,4,0,0,0,0,0,4,3,1,14,4,3,1,14,4,1,3,3,4,3,3,4,4,3,1,14,4,4,4,3,3,1,14,4,14,1,14,14,14,23,3,3,3,4,3,1,14,4,3,1,14,4,14,3,1,14,4,3,1,14,4,24,25,26],"f":[0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[],1],[[[3,[2]]]],[[[3,[2]]]],[4,5],[[[3,[2]],6],7],[[[3,[2]],6],7],[[4,6],7],[[4,6],7],[[]],[[]],[[]],[8,4],[[]],[9,4],[[10,11]],[[]],[[]],[[]],[[]],[[]],[[1,12],1],[[[14,[[0,[2,13]]]],12],[[14,[[0,[2,13]]]]]],[[10,11],[[14,[[0,[2,13]]]]]],[[[15,[[14,[[0,[2,13]]]]]],16],17],[2,[[19,[5,18]]]],[[],20],[[[3,[[0,[2,13]]]],10],5],[[],21],[[],21],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[],19],[[15,16],17],[[],22],[[],22],[[],22],[[],22],[[]],[[]],[[]],[[]],0,0,0],"p":[[3,"ProtoBufConfig"],[8,"Message"],[3,"ProtoBuf"],[4,"ProtoBufPayloadError"],[3,"HttpResponse"],[3,"Formatter"],[6,"Result"],[4,"PayloadError"],[3,"DecodeError"],[3,"HttpRequest"],[4,"Payload"],[15,"usize"],[8,"Default"],[3,"ProtoBufMessage"],[3,"Pin"],[3,"Context"],[4,"Poll"],[3,"Error"],[4,"Result"],[3,"Path"],[3,"String"],[3,"TypeId"],[8,"ProtoBufResponseBuilder"],[13,"Serialize"],[13,"Deserialize"],[13,"Payload"]]},\
+"actix_redis":{"doc":"Redis integration for actix
.","t":[12,13,13,3,13,13,4,13,13,13,13,13,13,13,3,13,13,4,4,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,14,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12],"n":["0","Array","BulkString","Command","Connection","Disconnected","Error","Error","IO","Integer","Internal","Nil","NotConnected","Redis","RedisActor","Remote","Resp","RespError","RespValue","SimpleString","Unexpected","append","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone_into","eq","equivalent","error","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_resp_int","handle","handle","into","into","into","into","into","ne","push","resp_array","restarting","source","source","start","started","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0","0","1","0","0","0","0","0"],"q":["actix_redis","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_redis::Error","actix_redis::RespError","","","","","","","actix_redis::RespValue","","","",""],"d":["","Zero, one or more other RespValue
s.","A bulk string. In Redis terminology a string is a …","Command for sending data to Redis.","Error creating a connection, or an error with a connection …","Cancel all waiters when connection is dropped.","General purpose actix-redis
error.","An error from the Redis server","An IO error occurred","Redis documentation defines an integer as being a signed …","A non-specific internal error that prevented an operation …","","Receiving message during reconnecting.","","Redis communication actor.","A remote error","A RESP parsing/serialising error occurred","","A single RESP value, this owns the data that is read/to-be …","","An unexpected error. In this context “unexpected” …","Convenience function for building dynamic Redis commands …","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","","","","","","","Returns the argument unchanged.","","","","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","Push item to Resp array","Macro to create a RESP array, useful for preparing …","","","","Start new Supervisor
with RedisActor
.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],"i":[7,1,1,0,13,10,0,1,13,1,13,1,10,10,0,13,13,0,0,1,13,1,4,7,10,1,13,4,7,10,1,13,1,1,1,1,4,7,10,10,1,13,13,4,7,10,10,1,1,1,1,1,1,1,1,13,13,13,1,4,4,4,7,10,1,13,1,1,0,4,10,13,4,4,1,10,13,4,7,10,1,13,4,7,10,1,13,4,7,10,1,13,4,7,10,1,13,28,29,30,31,32,33,34,31,35,36,37,38,39],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[1,2],1],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[1,1],[[]],[[1,1],3],[[],3],[[4,5],6],[[7,8],9],[[10,8],9],[[10,8],9],[[1,8],[[12,[11]]]],[[13,8],[[12,[11]]]],[[13,8],[[12,[11]]]],[[]],[[]],[13,10],[[]],[[],1],[[]],[14,1],[[[17,[15,16]]],1],[18,1],[14,1],[19,1],[[[20,[18]]],1],[[]],[21,13],[5,13],[1,[[12,[1,13]]]],[[4,[12,[1,13]]]],[[4,7]],[[]],[[]],[[]],[[]],[[]],[[1,1],3],[1],0,[4],[10,[[23,[22]]]],[13,[[23,[22]]]],[[[24,[14]]],[[25,[4]]]],[[4,26]],[[]],[[],14],[[],14],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],12],[[],27],[[],27],[[],27],[[],27],[[],27],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0],"p":[[4,"RespValue"],[8,"IntoIterator"],[15,"bool"],[3,"RedisActor"],[3,"Error"],[4,"Running"],[3,"Command"],[3,"Formatter"],[6,"Result"],[4,"Error"],[3,"Error"],[4,"Result"],[4,"RespError"],[3,"String"],[15,"u8"],[3,"Global"],[3,"Vec"],[15,"str"],[15,"usize"],[3,"Arc"],[3,"TrySendError"],[8,"Error"],[4,"Option"],[8,"Into"],[3,"Addr"],[3,"Context"],[3,"TypeId"],[13,"Redis"],[13,"Internal"],[13,"IO"],[13,"Resp"],[13,"Remote"],[13,"Connection"],[13,"Unexpected"],[13,"Array"],[13,"BulkString"],[13,"Error"],[13,"Integer"],[13,"SimpleString"]]},\
+"actix_session":{"doc":"Session management for Actix Web.","t":[13,13,13,3,8,3,3,3,4,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,13,4,13,13,3,13,13,4,3,13,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,3,13,4,13,13,13,3,3,3,3,4,13,13,3,8,4,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12],"n":["Changed","Purged","Renewed","Session","SessionExt","SessionGetError","SessionInsertError","SessionMiddleware","SessionStatus","Unchanged","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","builder","clear","clone","clone","clone","clone_into","clone_into","clone_into","config","default","entries","eq","equivalent","error_response","error_response","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_request","get","get_session","insert","into","into","into","into","into","new","new_transform","purge","remove","remove_as","renew","source","source","status","storage","to_owned","to_owned","to_owned","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","BrowserSession","BrowserSession","CookieContentSecurity","OnEveryRequest","OnStateChanges","PersistentSession","PersistentSession","Private","SessionLifecycle","SessionMiddlewareBuilder","Signed","TtlExtensionPolicy","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","clone","clone","clone","clone","clone","clone_into","clone_into","clone_into","clone_into","clone_into","cookie_content_security","cookie_domain","cookie_http_only","cookie_name","cookie_path","cookie_same_site","cookie_secure","default","default","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","into","into","into","into","into","into","session_lifecycle","session_ttl","session_ttl_extension_policy","state_ttl","state_ttl_extension_policy","to_owned","to_owned","to_owned","to_owned","to_owned","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","vzip","vzip","vzip","vzip","vzip","vzip","0","0","CookieSessionStore","Deserialization","LoadError","Other","Other","Other","RedisActorSessionStore","RedisActorSessionStoreBuilder","RedisSessionStore","RedisSessionStoreBuilder","SaveError","Serialization","Serialization","SessionKey","SessionStore","UpdateError","as_ref","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","build","build","builder","builder","cache_keygen","cache_keygen","clone","clone_into","default","delete","delete","delete","delete","eq","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","load","load","load","load","ne","new","new","save","save","save","save","source","source","source","to_owned","to_string","to_string","to_string","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","update","update","update","update","update_ttl","update_ttl","update_ttl","update_ttl","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","vzip","0","0","0","0","0","0"],"q":["actix_session","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::config","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::config::SessionLifecycle","","actix_session::storage","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_session::storage::LoadError","","actix_session::storage::SaveError","","actix_session::storage::UpdateError",""],"d":["Session state has been updated - the changes will have to …","The session has been flagged for deletion - the session …","The session has been flagged for renewal.","The primary interface to access and modify session state.","Extract a Session
object from various actix-web
types …","Error returned by Session::get
.","Error returned by Session::insert
.","A middleware for session management in Actix Web …","Status of a Session
.","The session state has not been modified since its …","","","","","","","","","","","A fluent API to configure SessionMiddleware
.","Clear the session.","","","","","","","Configuration options to tune the behaviour of …","","Get all raw key-value data from the session.","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Returns the argument unchanged.","","Returns the argument unchanged.","","Get a value
from the session.","Extract a Session
object.","Inserts a key-value pair into the session.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Use SessionMiddleware::new
to initialize the session …","","Removes session both client and server side.","Remove value from the session.","Remove value from the session and deserialize.","Renews the session key, assigning existing session state …","","","Returns session status.","Pluggable storage backends for session state.","","","","","","","","","","","","","","","","","","","","","","","","","","A session lifecycle strategy where the session cookie …","The session cookie will expire when the current browser …","Determines how to secure the content of the session cookie.","The TTL is refreshed every time the server receives a …","The TTL is refreshed every time the session state changes …","A session lifecycle strategy where the session cookie will …","The session cookie will be a persistent cookie.","The cookie content is encrypted when using …","Determines what type of session cookie should be used and …","A fluent builder to construct a SessionMiddleware
instance …","The cookie content is signed when using …","Configuration for which events should trigger an extension …","","","","","","","","","","","","","Finalise the builder and return a SessionMiddleware
…","","","","","","","","","","","Choose how the session cookie content should be secured.","Set the Domain
attribute for the cookie used to store the …","Set the HttpOnly
attribute for the cookie used to store …","Set the name of the cookie used to store the session ID.","Set the Path
attribute for the cookie used to store the …","Set the SameSite
attribute for the cookie used to store …","Set the Secure
attribute for the cookie used to store the …","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Determines what type of session cookie should be used and …","Specifies how long the session cookie should live.","Determines under what circumstances the TTL of your …","Sets a time-to-live (TTL) when storing the session state …","Determine under what circumstances the TTL of your session …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Use the session key, stored in the session cookie, as …","Failed to deserialize session state.","Possible failures modes for SessionStore::load
.","Something went wrong when retrieving the session state.","Something went wrong when persisting the session state.","Something went wrong when updating the session state.","Use Redis as session storage backend.","A fluent builder to construct a RedisActorSessionStore
…","Use Redis as session storage backend.","A fluent builder to construct a RedisSessionStore
instance …","Possible failures modes for SessionStore::save
.","Failed to serialize session state.","Failed to serialize session state.","A session key, the string stored in a client-side cookie …","The interface to retrieve and save the current session …","Possible failures modes for SessionStore::update
.","","","","","","","","","","","","","","","","","","","","Finalise the builder and return a RedisActorSessionStore
…","Finalise the builder and return a RedisActorSessionStore
…","A fluent API to configure RedisActorSessionStore
.","A fluent API to configure RedisSessionStore
. It takes as …","Set a custom cache key generation strategy, expecting a …","Set a custom cache key generation strategy, expecting a …","","","","Deletes a session from the store.","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Loads the session state associated to a session key.","","","","","Create a new instance of RedisActorSessionStore
using the …","Create a new instance of RedisSessionStore
using the …","Persist the session state for a newly created session.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Updates the session state associated to a pre-existing …","","","","Updates the TTL of the session state associated to a …","","","","","","","","","","","","","","","","","",""],"i":[7,7,7,0,0,0,0,0,0,7,6,4,7,12,15,6,4,7,12,15,6,4,6,4,7,6,4,7,0,7,4,7,7,12,15,7,12,12,15,15,6,4,7,12,12,15,15,4,4,48,4,6,4,7,12,15,6,6,4,4,4,4,12,15,4,0,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,6,4,7,12,15,0,29,0,32,32,0,29,33,0,0,33,0,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,29,30,31,32,33,3,3,3,3,3,3,3,30,31,29,30,31,32,33,3,29,29,29,30,31,32,33,3,29,30,31,32,33,3,31,31,30,30,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,3,29,30,31,32,33,49,50,0,45,0,45,46,47,0,0,0,0,0,46,47,0,0,0,36,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,37,39,38,41,37,39,41,41,42,1,38,42,41,36,36,45,45,46,46,47,47,36,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,1,38,42,41,36,38,41,1,38,42,41,45,46,47,41,45,46,47,38,37,39,45,46,47,36,36,42,41,38,37,39,45,46,47,36,42,41,38,37,39,45,46,47,36,42,41,1,38,42,41,1,38,42,41,38,37,39,45,46,47,36,42,41,51,52,53,54,55,56],"f":[0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[1,2],[[3,[1]]]],[4],[[[6,[[0,[5,1]]]]],[[6,[[0,[5,1]]]]]],[4,4],[7,7],[[]],[[]],[[]],0,[[],7],[4,[[10,[[9,[8,8]]]]]],[[7,7],11],[[],11],[12,[[14,[13]]]],[15,[[14,[13]]]],[[7,16],17],[[12,16],17],[[12,16],17],[[15,16],17],[[15,16],17],[[]],[[]],[[]],[18,12],[[]],[18,15],[[]],[[19,20]],[[4,21],[[24,[[23,[22]],12]]]],[[],4],[[4,[25,[8]],26],[[24,[15]]]],[[]],[[]],[[]],[[]],[[]],[[1,2],[[6,[1]]]],[6],[4],[[4,21],[[23,[8]]]],[[4,21],[[23,[[24,[22,8]]]]]],[4],[12,[[23,[27]]]],[15,[[23,[27]]]],[4,7],0,[[]],[[]],[[]],[[],8],[[],8],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[3,[1]]],[[6,[1]]]],[29,29],[30,30],[31,31],[32,32],[33,33],[[]],[[]],[[]],[[]],[[]],[[[3,[1]],33],[[3,[1]]]],[[[3,[1]],[23,[8]]],[[3,[1]]]],[[[3,[1]],11],[[3,[1]]]],[[[3,[1]],8],[[3,[1]]]],[[[3,[1]],8],[[3,[1]]]],[[[3,[1]],34],[[3,[1]]]],[[[3,[1]],11],[[3,[1]]]],[[],30],[[],31],[[29,16],17],[[30,16],17],[[31,16],17],[[32,16],17],[[33,16],17],[[]],[[]],[30,29],[31,29],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[3,[1]],[25,[29]]],[[3,[1]]]],[[31,35],31],[[31,32],31],[[30,35],30],[[30,32],30],[[]],[[]],[[]],[[]],[[]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[36,21],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[37,38],[39,40],[[[25,[8]]],37],[[[25,[8]]],39],[37,37],[39,39],[41,41],[[]],[[],42],[36,[[44,[[43,[40]]]]]],[[38,36],[[44,[[43,[40]]]]]],[[42,36],[[44,[[43,[40]]]]]],[[41,36],[[44,[[43,[40]]]]]],[[36,36],11],[[],11],[[45,16],17],[[45,16],17],[[46,16],17],[[46,16],17],[[47,16],17],[[47,16],17],[[36,16],17],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[36,[[44,[[43,[40]]]]]],[[38,36],[[44,[[43,[40]]]]]],[[42,36],[[44,[[43,[40]]]]]],[[41,36],[[44,[[43,[40]]]]]],[[36,36],11],[[[25,[8]]],38],[[[25,[8]]],40],[[[9,[8,8]],35],[[44,[[43,[40]]]]]],[[38,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[42,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[41,[9,[8,8]],35],[[44,[[43,[40]]]]]],[45,[[23,[27]]]],[46,[[23,[27]]]],[47,[[23,[27]]]],[[]],[[],8],[[],8],[[],8],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[8,[[24,[36]]]],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],24],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[],28],[[36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[38,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[42,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[41,36,[9,[8,8]],35],[[44,[[43,[40]]]]]],[[36,35],[[44,[[43,[40]]]]]],[[38,36,35],[[44,[[43,[40]]]]]],[[42,36,35],[[44,[[43,[40]]]]]],[[41,36,35],[[44,[[43,[40]]]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0],"p":[[8,"SessionStore"],[3,"Key"],[3,"SessionMiddlewareBuilder"],[3,"Session"],[8,"Clone"],[3,"SessionMiddleware"],[4,"SessionStatus"],[3,"String"],[3,"HashMap"],[3,"Ref"],[15,"bool"],[3,"SessionGetError"],[3,"BoxBody"],[3,"HttpResponse"],[3,"SessionInsertError"],[3,"Formatter"],[6,"Result"],[3,"Error"],[3,"HttpRequest"],[4,"Payload"],[15,"str"],[8,"DeserializeOwned"],[4,"Option"],[4,"Result"],[8,"Into"],[8,"Serialize"],[8,"Error"],[3,"TypeId"],[4,"SessionLifecycle"],[3,"BrowserSession"],[3,"PersistentSession"],[4,"TtlExtensionPolicy"],[4,"CookieContentSecurity"],[4,"SameSite"],[3,"Duration"],[3,"SessionKey"],[3,"RedisActorSessionStoreBuilder"],[3,"RedisActorSessionStore"],[3,"RedisSessionStoreBuilder"],[8,"Future"],[3,"RedisSessionStore"],[3,"CookieSessionStore"],[3,"Box"],[3,"Pin"],[4,"LoadError"],[4,"SaveError"],[4,"UpdateError"],[8,"SessionExt"],[13,"BrowserSession"],[13,"PersistentSession"],[13,"Deserialization"],[13,"Other"],[13,"Serialization"],[13,"Other"],[13,"Serialization"],[13,"Other"]]},\
+"actix_web_httpauth":{"doc":"HTTP authentication schemes for Actix Web.","t":[0,0,0,8,3,16,0,0,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,3,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,0,0,3,13,3,3,13,13,13,4,8,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,8,3,0,0,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,10,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,3,4,13,13,13,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,3,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11],"n":["extractors","headers","middleware","AuthExtractorConfig","AuthenticationError","Inner","basic","bearer","borrow","borrow_mut","challenge_mut","error_response","fmt","fmt","from","from","into","into_inner","new","status_code","status_code_mut","to_string","try_from","try_into","type_id","vzip","with_error","with_error_description","with_error_uri","BasicAuth","Config","as_ref","borrow","borrow","borrow_mut","borrow_mut","clone","clone","clone_into","clone_into","default","fmt","fmt","from","from","from_request","into","into","into_inner","password","realm","to_owned","to_owned","try_from","try_from","try_into","try_into","type_id","type_id","user_id","vzip","vzip","BearerAuth","Config","Error","InsufficientScope","InvalidRequest","InvalidToken","as_ref","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","default","eq","equivalent","fmt","fmt","fmt","fmt","from","from","from","from_request","get_hash","hash","into","into","into","into_inner","partial_cmp","realm","scope","status_code","to_owned","to_owned","to_owned","to_string","token","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","vzip","vzip","vzip","authorization","www_authenticate","Authorization","Base64DecodeError","Basic","Bearer","Invalid","MissingField","MissingScheme","ParseError","Scheme","ToStrError","Utf8Error","as_mut","as_ref","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","clone_into","clone_into","clone_into","cmp","cmp","cmp","default","eq","eq","eq","equivalent","equivalent","equivalent","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","get_hash","hash","into","into","into","into","into_scheme","name","ne","ne","ne","new","new","parse","parse","parse","parse","partial_cmp","partial_cmp","partial_cmp","password","source","to_owned","to_owned","to_owned","to_string","to_string","to_string","to_string","token","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into_pair","try_into_value","try_into_value","try_into_value","type_id","type_id","type_id","type_id","user_id","vzip","vzip","vzip","vzip","0","0","0","0","0","Challenge","WwwAuthenticate","basic","bearer","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","from","get_hash","hash","into","name","ne","parse","partial_cmp","to_bytes","to_owned","try_from","try_into","try_into_pair","try_into_value","type_id","vzip","Basic","borrow","borrow_mut","clone","clone_into","cmp","default","eq","equivalent","fmt","fmt","from","get_hash","hash","into","ne","new","partial_cmp","to_owned","to_string","try_from","try_into","try_into_value","type_id","vzip","with_realm","Bearer","BearerBuilder","Error","InsufficientScope","InvalidRequest","InvalidToken","borrow","borrow","borrow_mut","borrow_mut","build","clone","clone_into","cmp","default","default","eq","equivalent","error","error_description","error_uri","finish","fmt","fmt","fmt","from","from","get_hash","hash","into","into","ne","partial_cmp","realm","scope","to_owned","to_string","try_from","try_from","try_into","try_into","try_into_value","type_id","type_id","vzip","vzip","HttpAuthentication","basic","bearer","borrow","borrow_mut","clone","clone_into","fmt","from","into","new_transform","to_owned","try_from","try_into","type_id","vzip","with_fn"],"q":["actix_web_httpauth","","","actix_web_httpauth::extractors","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::basic","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::extractors::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers","","actix_web_httpauth::headers::authorization","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::authorization::ParseError","","","","actix_web_httpauth::headers::www_authenticate","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::basic","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::headers::www_authenticate::bearer","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","actix_web_httpauth::middleware","","","","","","","","","","","","","","","",""],"d":["Type-safe authentication information extractors.","Typed HTTP headers.","HTTP Authentication middleware.","Trait implemented for types that provides configuration …","Authentication error returned by authentication extractors.","Associated challenge type.","Extractor for the “Basic” HTTP Authentication Scheme.","Extractor for the “Bearer” HTTP Authentication Scheme.","","","Returns mutable reference to the inner challenge instance.","","","","","Returns the argument unchanged.","Calls U::from(self)
.","Convert the config instance into a HTTP challenge.","Creates new authentication error from the provided …","","Returns mutable reference to the inner status code.","","","","","","Attach Error
to the current Authentication error.","Attach error description to the current Authentication …","Attach error URI to the current Authentication error.","Extractor for HTTP Basic auth.","BasicAuth
extractor configuration used for WWW-Authenticate
…","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","","Calls U::from(self)
.","Calls U::from(self)
.","","Returns client’s password.","Set challenge realm
attribute.","","","","","","","","","Returns client’s user-ID.","","","Extractor for HTTP Bearer auth","BearerAuth
extractor configuration.","Bearer authorization error types, described in RFC 6750.","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","","","Set challenge realm
attribute.","Set challenge scope
attribute.","Returns HTTP status code suitable for current error type.","","","","","Returns bearer token provided by client.","","","","","","","","","","","","","Authorization
header and various auth schemes.","WWW-Authenticate
header and various auth challenges.","Authorization
header, defined in RFC 7235","Malformed base64 string.","Credentials for Basic
authentication scheme, defined in …","Credentials for Bearer
authentication scheme, defined in …","Header value is malformed.","Required authentication field is missing.","Authentication scheme is missing.","Possible errors while parsing Authorization
header.","Authentication scheme for Authorization
header.","Unable to convert header into the str.","Malformed UTF-8 string.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Returns the argument unchanged.","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Calls U::from(self)
.","Consumes Authorization
header and returns inner Scheme
…","","","","","Creates Basic
credentials with provided user_id
and …","Creates new Bearer
credentials with the token provided.","Try to parse an authentication scheme from the …","","","","","","","Returns client’s password if provided.","","","","","","","","","Gets reference to the credentials token.","","","","","","","","","","","","","","","","","Returns client’s user-ID.","","","","","","","","","","Authentication challenge for WWW-Authenticate
header.","WWW-Authenticate
header, described in RFC 7235.","Challenge for the “Basic” HTTP Authentication Scheme.","Challenge for the “Bearer” HTTP Authentication Scheme.","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self)
.","","","","","Converts the challenge into a bytes suitable for HTTP …","","","","","","","","Challenge for WWW-Authenticate
header with HTTP Basic auth …","","","","","","","","","","","Returns the argument unchanged.","","","Calls U::from(self)
.","","Creates new Basic
challenge with an empty realm
field.","","","","","","","","","Creates new Basic
challenge from the provided realm
field …","Challenge for WWW-Authenticate
header with HTTP Bearer …","Builder for the Bearer
challenge.","Bearer authorization error types, described in RFC 6750.","The request requires higher privileges than provided by …","The request is missing a required parameter, includes an …","The access token provided is expired, revoked, malformed, …","","","","","Creates the builder for Bearer
challenge.","","","","","","","","Provides the error
attribute, as defined in [RFC 6750, …","Provides the error_description
attribute, as defined in […","Provides the error_uri
attribute, as defined in [RFC 6750 …","Consumes the builder and returns built Bearer
instance.","","","","Returns the argument unchanged.","Returns the argument unchanged.","","","Calls U::from(self)
.","Calls U::from(self)
.","","","Provides the realm
attribute, as defined in RFC 2617.","Provides the scope
attribute, as defined in RFC 6749 §3.3.","","","","","","","","","","","","Middleware for checking HTTP authentication.","Construct HttpAuthentication
middleware for the HTTP “…","Construct HttpAuthentication
middleware for the HTTP “…","","","","","","Returns the argument unchanged.","Calls U::from(self)
.","","","","","","","Construct HttpAuthentication
middleware with the provided …"],"i":[0,0,0,0,0,51,0,0,2,2,2,2,2,2,2,2,2,51,2,2,2,2,2,2,2,2,2,2,2,0,0,13,13,15,13,15,13,15,13,15,13,13,15,13,15,15,13,15,13,15,13,13,15,13,15,13,15,13,15,15,13,15,0,0,0,12,12,12,20,20,21,12,20,21,12,20,21,12,20,21,12,12,20,12,12,20,21,12,12,20,21,12,21,12,12,20,21,12,20,12,20,20,12,20,21,12,12,21,20,21,12,20,21,12,20,21,12,20,21,12,0,0,0,35,0,0,35,35,35,0,0,35,35,28,28,35,28,30,31,35,28,30,31,28,30,31,28,30,31,28,30,31,28,28,30,31,28,30,31,35,35,28,28,30,30,31,31,35,35,35,35,28,28,28,30,31,28,28,35,28,30,31,28,28,28,30,31,30,31,27,28,30,31,28,30,31,30,35,28,30,31,35,28,30,31,31,35,28,30,31,35,28,30,31,28,28,30,31,35,28,30,31,30,35,28,30,31,52,53,54,55,46,0,0,0,0,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,1,46,46,46,46,46,46,46,0,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,0,0,0,12,12,12,49,11,49,11,11,11,11,11,49,11,11,11,49,49,49,49,49,11,11,49,11,11,11,49,11,11,11,49,49,11,11,49,11,49,11,11,49,11,49,11,0,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50,50],"f":[0,0,0,0,0,0,0,0,[[]],[[]],[[[2,[1]]]],[[[2,[1]]],3],[[[2,[1]],4],5],[[[2,[[0,[6,1]]]],4],5],[[],2],[[]],[[]],[[]],[1,[[2,[1]]]],[[[2,[1]]],7],[[[2,[1]]],7],[[],8],[[],9],[[],9],[[],10],[[]],[[[2,[11]],12],[[2,[11]]]],[[[2,[11]]],[[2,[11]]]],[[[2,[11]]],[[2,[11]]]],0,0,[13,14],[[]],[[]],[[]],[[]],[13,13],[15,15],[[]],[[]],[[],13],[[13,4],5],[[15,4],5],[[]],[[]],[[16,17]],[[]],[[]],[13],[15,[[19,[18]]]],[13,13],[[]],[[]],[[],9],[[],9],[[],9],[[],9],[[],10],[[],10],[15,18],[[]],[[]],0,0,0,0,0,0,[20,11],[[]],[[]],[[]],[[]],[[]],[[]],[20,20],[21,21],[12,12],[[]],[[]],[[]],[[12,12],22],[[],20],[[12,12],23],[[],23],[[20,4],5],[[21,4],5],[[12,4],5],[[12,4],5],[[]],[[]],[[]],[[16,17]],[[],24],[12],[[]],[[]],[[]],[20],[[12,12],[[19,[22]]]],[[20,[26,[[25,[18]]]]],20],[[20,[26,[[25,[18]]]]],20],[12,7],[[]],[[]],[[]],[[],8],[21,18],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],10],[[],10],[[],10],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,0,[[[28,[27]]]],[[[28,[27]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[28,[[0,[29,27]]]]],[[28,[[0,[29,27]]]]]],[30,30],[31,31],[[]],[[]],[[]],[[[28,[[0,[32,27]]]],28],22],[[30,30],22],[[31,31],22],[[],[[28,[[0,[33,27]]]]]],[[[28,[[0,[34,27]]]],28],23],[[30,30],23],[[31,31],23],[[],23],[[],23],[[],23],[[35,4],5],[[35,4],5],[[[28,[[0,[6,27]]]],4],5],[[[28,[27]],4],5],[[30,4],5],[[30,4],5],[[31,4],5],[[31,4],5],[36,35],[[]],[37,35],[38,35],[27,[[28,[27]]]],[39],[[]],[[]],[[]],[[],24],[[[28,[[0,[40,27]]]]]],[[]],[[]],[[]],[[]],[[[28,[27]]],27],[[],41],[[[28,[[0,[34,27]]]],28],23],[[30,30],23],[[31,31],23],[19,30],[[],31],[42,[[9,[35]]]],[[],[[9,[[28,[27]],43]]]],[42,[[9,[30,35]]]],[42,[[9,[31,35]]]],[[[28,[[0,[44,27]]]],28],[[19,[22]]]],[[30,30],[[19,[22]]]],[[31,31],[[19,[22]]]],[30,[[19,[18]]]],[35,[[19,[45]]]],[[]],[[]],[[]],[[],8],[[],8],[[],8],[[],8],[31,18],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[],9],[[[28,[27]]],[[9,[42]]]],[30,[[9,[42]]]],[31,[[9,[42]]]],[[],10],[[],10],[[],10],[[],10],[30,18],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,[[]],[[]],[[[46,[[0,[29,1]]]]],[[46,[[0,[29,1]]]]]],[[]],[[[46,[[0,[32,1]]]],46],22],[[],[[46,[[0,[33,1]]]]]],[[[46,[[0,[34,1]]]],46],23],[[],23],[[[46,[[0,[6,1]]]],4],5],[[]],[[],24],[[[46,[[0,[40,1]]]]]],[[]],[[],41],[[[46,[[0,[34,1]]]],46],23],[[],[[9,[[46,[1]],43]]]],[[[46,[[0,[44,1]]]],46],[[19,[22]]]],[[],47],[[]],[[],9],[[],9],[[],9],[[[46,[1]]],[[9,[42]]]],[[],10],[[]],0,[[]],[[]],[14,14],[[]],[[14,14],22],[[],14],[[14,14],23],[[],23],[[14,4],5],[[14,4],[[9,[48]]]],[[]],[[],24],[14],[[]],[[14,14],23],[[],14],[[14,14],[[19,[22]]]],[[]],[[],8],[[],9],[[],9],[14,[[9,[42]]]],[[],10],[[]],[[],14],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[],49],[11,11],[[]],[[11,11],22],[[],49],[[],11],[[11,11],23],[[],23],[[49,12],49],[49,49],[49,49],[49,11],[[49,4],5],[[11,4],5],[[11,4],[[9,[48]]]],[[]],[[]],[[],24],[11],[[]],[[]],[[11,11],23],[[11,11],[[19,[22]]]],[49,49],[49,49],[[]],[[],8],[[],9],[[],9],[[],9],[[],9],[11,[[9,[42]]]],[[],10],[[],10],[[]],[[]],0,[[],[[50,[15]]]],[[],[[50,[21]]]],[[]],[[]],[[[50,[29,29]]],[[50,[29,29]]]],[[]],[[[50,[6,6]],4],5],[[]],[[]],[50],[[]],[[],9],[[],9],[[],10],[[]],[[],50]],"p":[[8,"Challenge"],[3,"AuthenticationError"],[3,"HttpResponse"],[3,"Formatter"],[6,"Result"],[8,"Debug"],[3,"StatusCode"],[3,"String"],[4,"Result"],[3,"TypeId"],[3,"Bearer"],[4,"Error"],[3,"Config"],[3,"Basic"],[3,"BasicAuth"],[3,"HttpRequest"],[4,"Payload"],[15,"str"],[4,"Option"],[3,"Config"],[3,"BearerAuth"],[4,"Ordering"],[15,"bool"],[15,"u64"],[4,"Cow"],[8,"Into"],[8,"Scheme"],[3,"Authorization"],[8,"Clone"],[3,"Basic"],[3,"Bearer"],[8,"Ord"],[8,"Default"],[8,"PartialEq"],[4,"ParseError"],[3,"ToStrError"],[4,"DecodeError"],[3,"Utf8Error"],[15,"never"],[8,"Hash"],[3,"HeaderName"],[3,"HeaderValue"],[4,"ParseError"],[8,"PartialOrd"],[8,"Error"],[3,"WwwAuthenticate"],[3,"Bytes"],[3,"Error"],[3,"BearerBuilder"],[3,"HttpAuthentication"],[8,"AuthExtractorConfig"],[13,"MissingField"],[13,"ToStrError"],[13,"Base64DecodeError"],[13,"Utf8Error"]]}\
}');
if (typeof window !== 'undefined' && window.initSearch) {window.initSearch(searchIndex)};
if (typeof exports !== 'undefined') {exports.searchIndex = searchIndex};
diff --git a/settings.css b/settings.css
index 7178567ee..a142e14f5 100644
--- a/settings.css
+++ b/settings.css
@@ -1 +1 @@
-.setting-line{margin:0.6em 0 0.6em 0.3em;position:relative;}.setting-line .choices{display:flex;flex-wrap:wrap;}.setting-line .radio-line input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:1px solid;outline:none;-webkit-appearance:none;cursor:pointer;border-radius:50%;}.setting-line .radio-line input+span{padding-bottom:1px;}.radio-line .setting-name{width:100%;}.radio-line .choice{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:flex;align-items:center;cursor:pointer;}.radio-line .choice+.choice{margin-left:0.5em;}.toggle{position:relative;display:inline-block;width:100%;height:27px;margin-right:20px;display:flex;align-items:center;cursor:pointer;}.toggle input{opacity:0;position:absolute;}.slider{position:relative;width:45px;display:block;height:28px;margin-right:20px;cursor:pointer;background-color:#ccc;transition:.3s;}.slider:before{position:absolute;content:"";height:19px;width:19px;left:4px;bottom:4px;transition:.3s;}input:checked+.slider:before{transform:translateX(19px);}.setting-line>.sub-settings{padding-left:42px;width:100%;display:block;}#settings .setting-line{margin:1.2em 0.6em;}
\ No newline at end of file
+.setting-line{margin:0.6em 0 0.6em 0.3em;position:relative;}.setting-line .choices{display:flex;flex-wrap:wrap;}.setting-line .radio-line input{margin-right:0.3em;height:1.2rem;width:1.2rem;border:1px solid;outline:none;-webkit-appearance:none;cursor:pointer;border-radius:50%;}.setting-line .radio-line input+span{padding-bottom:1px;}.radio-line .setting-name{width:100%;}.radio-line .choice{margin-top:0.1em;margin-bottom:0.1em;min-width:3.8em;padding:0.3em;display:flex;align-items:center;cursor:pointer;}.radio-line .choice+.choice{margin-left:0.5em;}.toggle{position:relative;width:100%;margin-right:20px;display:flex;align-items:center;cursor:pointer;}.toggle input{opacity:0;position:absolute;}.slider{position:relative;width:45px;min-width:45px;display:block;height:28px;margin-right:20px;cursor:pointer;background-color:#ccc;transition:.3s;}.slider:before{position:absolute;content:"";height:19px;width:19px;left:4px;bottom:4px;transition:.3s;}input:checked+.slider:before{transform:translateX(19px);}.setting-line>.sub-settings{padding-left:42px;width:100%;display:block;}#settings .setting-line{margin:1.2em 0.6em;}
\ No newline at end of file
diff --git a/settings.html b/settings.html
index 2fdf42172..3ec4ed1bf 100644
--- a/settings.html
+++ b/settings.html
@@ -1,10 +1,3 @@
-1 +all_or_some.rs - source - \ No newline at end of file + -1 2 3 4 @@ -117,5 +111,4 @@ assert!(AllOrSome::Some(()).is_some()); }
1 +builder.rs - source - \ No newline at end of file + -1 2 3 4 @@ -1289,5 +1283,4 @@ } }
1 +error.rs - source - \ No newline at end of file + -1 2 3 4 @@ -105,5 +99,4 @@ } }
1 +inner.rs - source - \ No newline at end of file + -1 2 3 4 @@ -773,5 +767,4 @@ } }
1 +lib.rs - source - \ No newline at end of file + -1 2 3 4 @@ -127,5 +121,4 @@ use inner::{Inner, OriginFn}; pub use middleware::CorsMiddleware;
1 +middleware.rs - source - \ No newline at end of file + -1 2 3 4 @@ -535,5 +529,4 @@ } }
1 +lib.rs - source - \ No newline at end of file +
1 +builder.rs - source - \ No newline at end of file + -1 2 3 4 @@ -249,5 +243,4 @@ } }
1 +errors.rs - source - \ No newline at end of file + -1 2 3 4 @@ -91,5 +85,4 @@ } }
1 +lib.rs - source - \ No newline at end of file + -1 2 3 4 @@ -197,7 +191,7 @@ //! //! HttpServer::new(move || { //! App::new() -//! .wrap(RateLimiter) +//! .wrap(RateLimiter::default()) //! .app_data(limiter.clone()) //! .service(index) //! }) @@ -325,5 +319,4 @@ } }
1 +middleware.rs - source - \ No newline at end of file + -1 2 3 4 @@ -109,35 +103,22 @@ 101 102 103 -104 -105 -106 -107 -108 -109 -110 -111 -112 -113 -114 -115 -116use std::{future::Future, pin::Pin, rc::Rc}; use actix_session::SessionExt as _; use actix_utils::future::{ok, Ready}; use actix_web::{ body::EitherBody, - cookie::Cookie, dev::{forward_ready, Service, ServiceRequest, ServiceResponse, Transform}, - http::{header::COOKIE, StatusCode}, + http::StatusCode, web, Error, HttpResponse, }; use crate::Limiter; /// Rate limit middleware. -#[derive(Debug)] +#[derive(Debug, Default)] +#[non_exhaustive] pub struct RateLimiter; impl<S, B> Transform<S, ServiceRequest> for RateLimiter @@ -185,23 +166,26 @@ .expect("web::Data<Limiter> should be set in app data for RateLimiter middleware") .clone(); - let (key, fallback) = key(&req, limiter.clone()); - + let key = req.get_session().get(&limiter.session_key).unwrap_or(None); let service = Rc::clone(&self.service); let key = match key { Some(key) => key, - None => match fallback { - Some(key) => key, - None => { - return Box::pin(async move { - service - .call(req) - .await - .map(ServiceResponse::map_into_left_body) - }); + None => { + let fallback = req.cookie(&limiter.cookie_name).map(|c| c.to_string()); + + match fallback { + Some(key) => key, + None => { + return Box::pin(async move { + service + .call(req) + .await + .map(ServiceResponse::map_into_left_body) + }); + } } - }, + } }; Box::pin(async move { @@ -222,22 +206,5 @@ }) } } - -fn key(req: &ServiceRequest, limiter: web::Data<Limiter>) -> (Option<String>, Option<String>) { - let session = req.get_session(); - let result: Option<String> = session.get(&limiter.session_key).unwrap_or(None); - let cookies = req.headers().get_all(COOKIE); - let cookie = cookies - .filter_map(|i| i.to_str().ok()) - .find(|i| i.contains(limiter.cookie_name.as_ref())); - - let fallback = match cookie { - Some(value) => Cookie::parse(value).ok().map(|i| i.to_string()), - None => None, - }; - - (result, fallback) -}
1 +status.rs - source - \ No newline at end of file + -1 2 3 4 @@ -243,5 +237,4 @@ } }
1 +lib.rs - source - \ No newline at end of file +
1 +config.rs - source - \ No newline at end of file + -1 2 3 4 @@ -745,5 +739,4 @@ } }
1 +lib.rs - source - \ No newline at end of file + -1 2 3 4 @@ -1471,5 +1465,4 @@ } }
1 +middleware.rs - source - \ No newline at end of file + -1 2 3 4 @@ -933,5 +927,4 @@ Ok(()) }
1 +session.rs - source - \ No newline at end of file + -1 2 3 4 @@ -655,5 +649,4 @@ } }
1 +session_ext.rs - source - \ No newline at end of file + -1 2 3 4 @@ -83,5 +77,4 @@ } }
1 +cookie.rs - source - \ No newline at end of file + -1 2 3 4 @@ -249,5 +243,4 @@ } }
1 +interface.rs - source - \ No newline at end of file + -1 2 3 4 @@ -237,5 +231,4 @@ } }
1 +mod.rs - source - \ No newline at end of file + -1 2 3 4 @@ -59,5 +53,4 @@ #[cfg(feature = "redis-rs-session")] pub use redis_rs::{RedisSessionStore, RedisSessionStoreBuilder};
1 +redis_actor.rs - source - \ No newline at end of file + -1 2 3 4 @@ -637,5 +631,4 @@ } }
1 +redis_rs.rs - source - \ No newline at end of file + -1 2 3 4 @@ -701,5 +695,4 @@ } }
1 +session_key.rs - source - \ No newline at end of file + -1 2 3 4 @@ -123,5 +117,4 @@ } }
1 +utils.rs - source - \ No newline at end of file + -1 2 3 4 @@ -45,5 +39,4 @@ String::from_utf8(value).unwrap().try_into().unwrap() }
1 +mod.rs - source - \ No newline at end of file +
1 +mod.rs - source - \ No newline at end of file +
1 +mod.rs - source - \ No newline at end of file +
1 +mod.rs - source - \ No newline at end of file +
1 +mod.rs - source - \ No newline at end of file +
1 +mod.rs - source - \ No newline at end of file +
1 +lib.rs - source - \ No newline at end of file +