From 41b1f707ccd4742f2b640a9f6b5ad426d4d8d90c Mon Sep 17 00:00:00 2001 From: "github-merge-queue[bot]" Date: Mon, 4 Dec 2023 16:11:53 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20actix/ac?= =?UTF-8?q?tix-extras@2d4cf5f422813f6117dd48850f3e23703bb27954=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- actix_cors/all.html | 2 +- actix_cors/enum.CorsError.html | 30 +- actix_cors/index.html | 4 +- actix_cors/struct.Cors.html | 50 ++-- actix_identity/all.html | 2 +- .../config/enum.LogoutBehaviour.html | 28 +- actix_identity/config/index.html | 6 +- .../struct.IdentityMiddlewareBuilder.html | 28 +- .../error/enum.GetIdentityError.html | 32 +- actix_identity/error/index.html | 4 +- actix_identity/error/struct.LoginError.html | 26 +- .../error/struct.LostIdentityError.html | 26 +- .../error/struct.MissingIdentityError.html | 26 +- .../error/struct.SessionExpiryError.html | 26 +- actix_identity/index.html | 4 +- actix_identity/struct.Identity.html | 28 +- actix_identity/struct.IdentityMiddleware.html | 30 +- actix_identity/trait.IdentityExt.html | 6 +- actix_limitation/all.html | 2 +- .../constant.DEFAULT_COOKIE_NAME.html | 2 +- .../constant.DEFAULT_PERIOD_SECS.html | 2 +- .../constant.DEFAULT_REQUEST_LIMIT.html | 2 +- .../constant.DEFAULT_SESSION_KEY.html | 2 +- actix_limitation/enum.Error.html | 28 +- actix_limitation/index.html | 4 +- actix_limitation/struct.Builder.html | 30 +- actix_limitation/struct.Limiter.html | 28 +- actix_limitation/struct.RateLimiter.html | 26 +- actix_limitation/struct.Status.html | 28 +- actix_protobuf/all.html | 2 +- actix_protobuf/enum.ProtoBufPayloadError.html | 28 +- actix_protobuf/index.html | 4 +- actix_protobuf/struct.ProtoBuf.html | 46 +-- actix_protobuf/struct.ProtoBufConfig.html | 24 +- actix_protobuf/struct.ProtoBufMessage.html | 150 +++++----- .../trait.ProtoBufResponseBuilder.html | 4 +- actix_redis/all.html | 2 +- actix_redis/enum.Error.html | 28 +- actix_redis/enum.RespError.html | 32 +- actix_redis/enum.RespValue.html | 38 +-- actix_redis/index.html | 6 +- actix_redis/macro.resp_array.html | 2 +- actix_redis/struct.Command.html | 26 +- actix_redis/struct.RedisActor.html | 34 +-- actix_session/all.html | 2 +- .../config/enum.CookieContentSecurity.html | 28 +- .../config/enum.SessionLifecycle.html | 28 +- .../config/enum.TtlExtensionPolicy.html | 28 +- actix_session/config/index.html | 6 +- .../config/struct.BrowserSession.html | 28 +- .../config/struct.PersistentSession.html | 28 +- .../struct.SessionMiddlewareBuilder.html | 36 +-- actix_session/enum.SessionStatus.html | 30 +- actix_session/index.html | 4 +- actix_session/storage/enum.LoadError.html | 28 +- actix_session/storage/enum.SaveError.html | 28 +- actix_session/storage/enum.UpdateError.html | 28 +- actix_session/storage/index.html | 6 +- .../storage/struct.CookieSessionStore.html | 44 +-- .../struct.RedisActorSessionStore.html | 46 +-- .../struct.RedisActorSessionStoreBuilder.html | 28 +- .../storage/struct.RedisSessionStore.html | 48 +-- .../struct.RedisSessionStoreBuilder.html | 28 +- actix_session/storage/struct.SessionKey.html | 26 +- actix_session/storage/trait.SessionStore.html | 26 +- actix_session/struct.Session.html | 30 +- actix_session/struct.SessionGetError.html | 26 +- actix_session/struct.SessionInsertError.html | 26 +- actix_session/struct.SessionMiddleware.html | 34 +-- actix_session/trait.SessionExt.html | 6 +- actix_settings/all.html | 2 +- actix_settings/enum.Backlog.html | 42 +-- actix_settings/enum.Error.html | 30 +- actix_settings/enum.KeepAlive.html | 42 +-- actix_settings/enum.MaxConnectionRate.html | 42 +-- actix_settings/enum.MaxConnections.html | 42 +-- actix_settings/enum.Mode.html | 42 +-- actix_settings/enum.NumWorkers.html | 42 +-- actix_settings/enum.Timeout.html | 42 +-- actix_settings/index.html | 4 +- actix_settings/struct.ActixSettings.html | 68 ++--- actix_settings/struct.Address.html | 44 +-- actix_settings/struct.BasicSettings.html | 76 ++--- actix_settings/struct.NoSettings.html | 40 +-- actix_settings/struct.Tls.html | 46 +-- actix_settings/trait.ApplySettings.html | 10 +- actix_settings/trait.Parse.html | 6 +- actix_settings/type.Settings.html | 8 +- actix_web_httpauth/all.html | 2 +- .../extractors/basic/index.html | 4 +- .../extractors/basic/struct.BasicAuth.html | 30 +- .../extractors/basic/struct.Config.html | 30 +- .../extractors/bearer/enum.Error.html | 42 +-- .../extractors/bearer/index.html | 4 +- .../extractors/bearer/struct.BearerAuth.html | 30 +- .../extractors/bearer/struct.Config.html | 28 +- actix_web_httpauth/extractors/index.html | 4 +- .../struct.AuthenticationError.html | 44 +-- .../extractors/trait.AuthExtractorConfig.html | 8 +- .../authorization/enum.ParseError.html | 28 +- .../headers/authorization/index.html | 4 +- .../authorization/struct.Authorization.html | 50 ++-- .../headers/authorization/struct.Basic.html | 40 +-- .../headers/authorization/struct.Bearer.html | 40 +-- .../headers/authorization/trait.Scheme.html | 6 +- actix_web_httpauth/headers/index.html | 4 +- .../headers/www_authenticate/basic/index.html | 4 +- .../www_authenticate/basic/struct.Basic.html | 44 +-- .../www_authenticate/bearer/enum.Error.html | 42 +-- .../www_authenticate/bearer/index.html | 4 +- .../bearer/struct.Bearer.html | 40 +-- .../bearer/struct.BearerBuilder.html | 40 +-- .../headers/www_authenticate/index.html | 4 +- .../struct.WwwAuthenticate.html | 46 +-- .../www_authenticate/trait.Challenge.html | 6 +- actix_web_httpauth/index.html | 4 +- actix_web_httpauth/middleware/index.html | 4 +- .../middleware/struct.HttpAuthentication.html | 56 ++-- actix_ws/all.html | 2 +- actix_ws/enum.CloseCode.html | 32 +- actix_ws/enum.Message.html | 28 +- actix_ws/enum.ProtocolError.html | 30 +- actix_ws/fn.handle.html | 2 +- actix_ws/index.html | 4 +- actix_ws/struct.CloseReason.html | 34 +-- actix_ws/struct.Closed.html | 26 +- actix_ws/struct.MessageStream.html | 278 +++++++++--------- actix_ws/struct.Session.html | 28 +- actix_ws/struct.StreamingBody.html | 276 ++++++++--------- help.html | 2 +- search-index.js | 18 +- settings.html | 2 +- src/actix_cors/all_or_some.rs.html | 2 +- src/actix_cors/builder.rs.html | 2 +- src/actix_cors/error.rs.html | 2 +- src/actix_cors/inner.rs.html | 2 +- src/actix_cors/lib.rs.html | 2 +- src/actix_cors/middleware.rs.html | 2 +- src/actix_identity/config.rs.html | 2 +- src/actix_identity/error.rs.html | 2 +- src/actix_identity/identity.rs.html | 2 +- src/actix_identity/identity_ext.rs.html | 2 +- src/actix_identity/lib.rs.html | 2 +- src/actix_identity/middleware.rs.html | 2 +- src/actix_limitation/builder.rs.html | 2 +- src/actix_limitation/errors.rs.html | 2 +- src/actix_limitation/lib.rs.html | 2 +- src/actix_limitation/middleware.rs.html | 2 +- src/actix_limitation/status.rs.html | 2 +- src/actix_protobuf/lib.rs.html | 2 +- src/actix_redis/lib.rs.html | 2 +- src/actix_redis/redis.rs.html | 2 +- src/actix_session/config.rs.html | 2 +- src/actix_session/lib.rs.html | 2 +- src/actix_session/middleware.rs.html | 2 +- src/actix_session/session.rs.html | 2 +- src/actix_session/session_ext.rs.html | 2 +- src/actix_session/storage/cookie.rs.html | 2 +- src/actix_session/storage/interface.rs.html | 2 +- src/actix_session/storage/mod.rs.html | 2 +- src/actix_session/storage/redis_actor.rs.html | 2 +- src/actix_session/storage/redis_rs.rs.html | 2 +- src/actix_session/storage/session_key.rs.html | 2 +- src/actix_session/storage/utils.rs.html | 2 +- src/actix_settings/error.rs.html | 2 +- src/actix_settings/lib.rs.html | 2 +- src/actix_settings/parse.rs.html | 2 +- src/actix_settings/settings/address.rs.html | 2 +- src/actix_settings/settings/backlog.rs.html | 2 +- .../settings/keep_alive.rs.html | 2 +- .../settings/max_connection_rate.rs.html | 2 +- .../settings/max_connections.rs.html | 2 +- src/actix_settings/settings/mod.rs.html | 2 +- src/actix_settings/settings/mode.rs.html | 2 +- .../settings/num_workers.rs.html | 2 +- src/actix_settings/settings/timeout.rs.html | 2 +- src/actix_settings/settings/tls.rs.html | 2 +- .../extractors/basic.rs.html | 2 +- .../extractors/bearer.rs.html | 2 +- .../extractors/config.rs.html | 2 +- .../extractors/errors.rs.html | 2 +- src/actix_web_httpauth/extractors/mod.rs.html | 2 +- .../headers/authorization/errors.rs.html | 2 +- .../headers/authorization/header.rs.html | 2 +- .../headers/authorization/mod.rs.html | 2 +- .../authorization/scheme/basic.rs.html | 2 +- .../authorization/scheme/bearer.rs.html | 2 +- .../headers/authorization/scheme/mod.rs.html | 2 +- src/actix_web_httpauth/headers/mod.rs.html | 2 +- .../www_authenticate/challenge/basic.rs.html | 2 +- .../challenge/bearer/builder.rs.html | 2 +- .../challenge/bearer/challenge.rs.html | 2 +- .../challenge/bearer/errors.rs.html | 2 +- .../challenge/bearer/mod.rs.html | 2 +- .../www_authenticate/challenge/mod.rs.html | 2 +- .../headers/www_authenticate/header.rs.html | 2 +- .../headers/www_authenticate/mod.rs.html | 2 +- src/actix_web_httpauth/lib.rs.html | 2 +- src/actix_web_httpauth/middleware.rs.html | 2 +- src/actix_web_httpauth/utils.rs.html | 2 +- src/actix_ws/fut.rs.html | 2 +- src/actix_ws/lib.rs.html | 2 +- src/actix_ws/session.rs.html | 2 +- ...a593074e71.js => main-77dede896d6ac08e.js} | 3 +- ...afa3e.css => rustdoc-c67e44d78ab2db17.css} | 2 +- static.files/search-56a624991a76cfad.js | 5 - static.files/search-5a66c239c06b3a66.js | 5 + .../into_value/trait.TryIntoHeaderValue.js | 2 +- .../transform/trait.Transform.js | 10 +- .../actix_web/extract/trait.FromRequest.js | 4 +- trait.impl/core/clone/trait.Clone.js | 10 +- trait.impl/core/cmp/trait.Eq.js | 4 +- trait.impl/core/cmp/trait.Ord.js | 2 +- trait.impl/core/cmp/trait.PartialEq.js | 4 +- trait.impl/core/cmp/trait.PartialOrd.js | 2 +- trait.impl/core/convert/trait.From.js | 10 +- trait.impl/core/default/trait.Default.js | 4 +- trait.impl/core/error/trait.Error.js | 6 +- trait.impl/core/fmt/trait.Debug.js | 14 +- trait.impl/core/fmt/trait.Display.js | 8 +- trait.impl/core/hash/trait.Hash.js | 4 +- trait.impl/core/marker/trait.Freeze.js | 8 +- trait.impl/core/marker/trait.Send.js | 6 +- trait.impl/core/marker/trait.StructuralEq.js | 4 +- .../core/marker/trait.StructuralPartialEq.js | 4 +- trait.impl/core/marker/trait.Sync.js | 6 +- trait.impl/core/marker/trait.Unpin.js | 8 +- .../panic/unwind_safe/trait.RefUnwindSafe.js | 8 +- .../panic/unwind_safe/trait.UnwindSafe.js | 8 +- trait.impl/serde/de/trait.Deserialize.js | 2 +- .../actix_settings/struct.BasicSettings.js | 2 +- 231 files changed, 1996 insertions(+), 1997 deletions(-) rename static.files/{main-e1c03aa593074e71.js => main-77dede896d6ac08e.js} (99%) rename static.files/{rustdoc-9ee3a5e31a2afa3e.css => rustdoc-c67e44d78ab2db17.css} (80%) delete mode 100644 static.files/search-56a624991a76cfad.js create mode 100644 static.files/search-5a66c239c06b3a66.js diff --git a/actix_cors/all.html b/actix_cors/all.html index 62505f47c..d48cedf20 100644 --- a/actix_cors/all.html +++ b/actix_cors/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

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

List of all items

Structs

Enums

\ No newline at end of file diff --git a/actix_cors/enum.CorsError.html b/actix_cors/enum.CorsError.html index 8cebcc1f2..85ca525d1 100644 --- a/actix_cors/enum.CorsError.html +++ b/actix_cors/enum.CorsError.html @@ -1,4 +1,4 @@ -CorsError in actix_cors - Rust
#[non_exhaustive]
pub enum CorsError { +CorsError in actix_cors - Rust
#[non_exhaustive]
pub enum CorsError { WildcardOrigin, MissingOrigin, MissingRequestMethod, @@ -8,7 +8,7 @@ MethodNotAllowed, HeadersNotAllowed, }
Expand description

Errors that can occur when processing CORS guarded requests.

-

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

WildcardOrigin

Allowed origin argument must not be wildcard (*).

+

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

WildcardOrigin

Allowed origin argument must not be wildcard (*).

§

MissingOrigin

Request header Origin is required but was not provided.

§

MissingRequestMethod

Request header Access-Control-Request-Method is required but is missing.

§

BadRequestMethod

Request header Access-Control-Request-Method has an invalid value.

@@ -16,22 +16,22 @@
§

OriginNotAllowed

Origin is not allowed to make this request.

§

MethodNotAllowed

Request method is not allowed.

§

HeadersNotAllowed

One or more request headers are not allowed.

-

Trait Implementations§

source§

impl Clone for CorsError

source§

fn clone(&self) -> CorsError

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for CorsError

source§

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

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

impl Display for CorsError

source§

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

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

impl Error for CorsError

1.30.0 · source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl ResponseError for CorsError

source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
source§

fn error_response(&self) -> HttpResponse

Creates full response for error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

+

Trait Implementations§

source§

impl Clone for CorsError

source§

fn clone(&self) -> CorsError

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

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

Performs copy-assignment from source. Read more
source§

impl Debug for CorsError

source§

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

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

impl Display for CorsError

source§

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

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

impl Error for CorsError

1.30.0 · source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl ResponseError for CorsError

source§

fn status_code(&self) -> StatusCode

Returns appropriate status code for error. Read more
source§

fn error_response(&self) -> HttpResponse

Creates full response for error. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where + T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where + T: ?Sized,

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere - U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

+Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where + U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

-
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere - T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for Twhere - T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere - 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>,

Attaches the provided Subscriber to this type, returning a +
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where + T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where + T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where + U: Into<T>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where + U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

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

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

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>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn 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 diff --git a/actix_cors/index.html b/actix_cors/index.html index af1dc60db..d14d647e3 100644 --- a/actix_cors/index.html +++ b/actix_cors/index.html @@ -1,4 +1,4 @@ -actix_cors - Rust
-

Re-exports

  • pub use middleware::CorsMiddleware;

Structs

  • Builder for CORS middleware.

Enums

  • Errors that can occur when processing CORS guarded requests.
\ No newline at end of file +

Re-exports

Structs

Enums

\ No newline at end of file diff --git a/actix_cors/struct.Cors.html b/actix_cors/struct.Cors.html index 6affb815b..0f0be5c8a 100644 --- a/actix_cors/struct.Cors.html +++ b/actix_cors/struct.Cors.html @@ -1,4 +1,4 @@ -Cors in actix_cors - Rust

Struct actix_cors::Cors

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

Builder for CORS middleware.

+Cors in actix_cors - Rust

Struct actix_cors::Cors

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

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 @@ -23,7 +23,7 @@ server will fail to start up or serve requests.

.max_age(3600); // `cors` can now be used in `App::wrap`.
-

Implementations§

source§

impl Cors

source

pub fn permissive() -> Self

Constructs a very permissive set of defaults for quick development. (Not recommended for +

Implementations§

source§

impl Cors

source

pub fn permissive() -> Self

Constructs a very permissive set of defaults for quick development. (Not recommended for production use.)

All origins, methods, request headers and exposed headers allowed. Credentials supported. Max age 1 hour. Does not send wildcard.

@@ -47,8 +47,8 @@ allowed origins.

  • If supplied origin is not valid uri
  • If supplied origin is a wildcard (*). Cors::send_wildcard should be used instead.
  • -
    source

    pub fn allowed_origin_fn<F>(self, f: F) -> Corswhere - F: Fn(&HeaderValue, &RequestHead) -> bool + 'static,

    Determinates allowed origins by processing requests which didn’t match any origins specified +

    source

    pub fn allowed_origin_fn<F>(self, f: F) -> Cors
    where + F: Fn(&HeaderValue, &RequestHead) -> bool + 'static,

    Determinates allowed origins by processing requests which didn’t match any origins specified in the allowed_origin.

    The function will receive two parameters, the Origin header value, and the RequestHead of each request, which can be used to determine whether to allow the request or not.

    @@ -56,32 +56,32 @@ each request, which can be used to determine whether to allow the request or not into the Access-Control-Allow-Origin response header.

    source

    pub fn allow_any_method(self) -> Cors

    Resets allowed methods list to all methods.

    See Cors::allowed_methods for more info on allowed methods.

    -
    source

    pub fn allowed_methods<U, M>(self, methods: U) -> Corswhere +

    source

    pub fn allowed_methods<U, M>(self, methods: U) -> Cors
    where U: IntoIterator<Item = M>, M: TryInto<Method>, - <M as TryInto<Method>>::Error: Into<HttpError>,

    Sets a list of methods which allowed origins can perform.

    + <M as TryInto<Method>>::Error: Into<HttpError>,

    Sets a list of methods which allowed origins can perform.

    These will be sent in the Access-Control-Allow-Methods response header.

    This defaults to an empty set.

    source

    pub fn allow_any_header(self) -> Cors

    Resets allowed request header list to a state where any header is accepted.

    See Cors::allowed_headers for more info on allowed request headers.

    -
    source

    pub fn allowed_header<H>(self, header: H) -> Corswhere +

    source

    pub fn allowed_header<H>(self, header: H) -> Cors

    Add an allowed request header.

    + <H as TryInto<HeaderName>>::Error: Into<HttpError>,

    Add an allowed request header.

    See Cors::allowed_headers for more info on allowed request headers.

    -
    source

    pub fn allowed_headers<U, H>(self, headers: U) -> Corswhere +

    source

    pub fn allowed_headers<U, H>(self, headers: U) -> Cors
    where U: IntoIterator<Item = H>, H: TryInto<HeaderName>, - <H as TryInto<HeaderName>>::Error: Into<HttpError>,

    Sets a list of request header field names which can be used when this resource is accessed + <H as TryInto<HeaderName>>::Error: Into<HttpError>,

    Sets a list of request header field names which can be used when this resource is accessed by allowed origins.

    If All is set, whatever is requested by the client in Access-Control-Request-Headers will be echoed back in the Access-Control-Allow-Headers header.

    This defaults to an empty set.

    source

    pub fn expose_any_header(self) -> Cors

    Resets exposed response header list to a state where all headers are exposed.

    See Cors::expose_headers for more info on exposed response headers.

    -
    source

    pub fn expose_headers<U, H>(self, headers: U) -> Corswhere +

    source

    pub fn expose_headers<U, H>(self, headers: U) -> Cors
    where U: IntoIterator<Item = H>, H: TryInto<HeaderName>, - <H as TryInto<HeaderName>>::Error: Into<HttpError>,

    Sets a list of headers which are safe to expose to the API of a CORS API specification.

    + <H as TryInto<HeaderName>>::Error: Into<HttpError>,

    Sets a list of headers which are safe to expose to the API of a CORS API specification.

    This corresponds to the Access-Control-Expose-Headers response header.

    This defaults to an empty set.

    source

    pub fn max_age(self, max_age: impl Into<Option<usize>>) -> Cors

    Sets a maximum time (in seconds) for which this CORS request may be cached.

    @@ -125,26 +125,26 @@ appended to the response. In this case, the browser is trusted to validate CORS and block requests based on pre-flight requests. Use this setting to allow cURL and other non-browser HTTP clients to function as normal, no matter what Origin the request has.

    Defaults to true.

    -

    Trait Implementations§

    source§

    impl Debug for Cors

    source§

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

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

    impl Default for Cors

    source§

    fn default() -> Cors

    A restrictive (security paranoid) set of defaults.

    +

    Trait Implementations§

    source§

    impl Debug for Cors

    source§

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

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

    impl Default for Cors

    source§

    fn default() -> Cors

    A restrictive (security paranoid) set of defaults.

    No allowed origins, methods, request headers or exposed headers. Credentials not supported. No max age (will use browser’s default).

    -
    source§

    impl<S, B> Transform<S, ServiceRequest> for Corswhere +

    source§

    impl<S, B> Transform<S, ServiceRequest> for Cors
    where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error>, S::Future: 'static, - B: MessageBody + 'static,

    §

    type Response = ServiceResponse<EitherBody<B>>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Transform = CorsMiddleware<S>

    The TransformService value created by this factory
    §

    type Future = Ready<Result<<Cors as Transform<S, ServiceRequest>>::Transform, <Cors as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Cors

    §

    impl !Send for Cors

    §

    impl !Sync for Cors

    §

    impl Unpin for Cors

    §

    impl !UnwindSafe for Cors

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + B: MessageBody + 'static,
    §

    type Response = ServiceResponse<EitherBody<B>>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Transform = CorsMiddleware<S>

    The TransformService value created by this factory
    §

    type Future = Ready<Result<<Cors as Transform<S, ServiceRequest>>::Transform, <Cors as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Cors

    §

    impl !Send for Cors

    §

    impl !Sync for Cors

    §

    impl Unpin for Cors

    §

    impl !UnwindSafe for Cors

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/all.html b/actix_identity/all.html index 1db7a31a2..0c49d94df 100644 --- a/actix_identity/all.html +++ b/actix_identity/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_identity/config/enum.LogoutBehaviour.html b/actix_identity/config/enum.LogoutBehaviour.html index 1a44ed954..98b77ff89 100644 --- a/actix_identity/config/enum.LogoutBehaviour.html +++ b/actix_identity/config/enum.LogoutBehaviour.html @@ -1,30 +1,30 @@ -LogoutBehaviour in actix_identity::config - Rust
    #[non_exhaustive]
    pub enum LogoutBehaviour { +LogoutBehaviour in actix_identity::config - Rust
    #[non_exhaustive]
    pub enum LogoutBehaviour { PurgeSession, DeleteIdentityKeys, }
    Expand description

    LogoutBehaviour controls what actions are going to be performed when Identity::logout is invoked.

    -

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    PurgeSession

    When Identity::logout is called, purge the current session.

    +

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    PurgeSession

    When Identity::logout is called, purge the current session.

    This behaviour might be desirable when you have stored additional information in the session state that are tied to the user’s identity and should not be retained after logout.

    §

    DeleteIdentityKeys

    When Identity::logout is called, remove the identity information from the current session state. The session itself is not destroyed.

    This behaviour might be desirable when you have stored information in the session state that is not tied to the user’s identity and should be retained after logout.

    -

    Trait Implementations§

    source§

    impl Clone for LogoutBehaviour

    source§

    fn clone(&self) -> LogoutBehaviour

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for LogoutBehaviour

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for LogoutBehaviour

    source§

    fn clone(&self) -> LogoutBehaviour

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for LogoutBehaviour

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/config/index.html b/actix_identity/config/index.html index 2bc448bda..51c4b8dd7 100644 --- a/actix_identity/config/index.html +++ b/actix_identity/config/index.html @@ -1,4 +1,4 @@ -actix_identity::config - Rust

    Module actix_identity::config

    source ·
    Expand description

    Configuration options to tune the behaviour of IdentityMiddleware.

    -

    Structs

    Enums

    By default, visit deadline is disabled.

    source

    pub fn build(self) -> IdentityMiddleware

    Finalises the builder and returns an IdentityMiddleware instance.

    -

    Trait Implementations§

    source§

    impl Clone for IdentityMiddlewareBuilder

    source§

    fn clone(&self) -> IdentityMiddlewareBuilder

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for IdentityMiddlewareBuilder

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for IdentityMiddlewareBuilder

    source§

    fn clone(&self) -> IdentityMiddlewareBuilder

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for IdentityMiddlewareBuilder

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/error/enum.GetIdentityError.html b/actix_identity/error/enum.GetIdentityError.html index 9f74c571e..a337b22fc 100644 --- a/actix_identity/error/enum.GetIdentityError.html +++ b/actix_identity/error/enum.GetIdentityError.html @@ -1,29 +1,29 @@ -GetIdentityError in actix_identity::error - Rust
    #[non_exhaustive]
    pub enum GetIdentityError { +GetIdentityError in actix_identity::error - Rust
    #[non_exhaustive]
    pub enum GetIdentityError { SessionExpiryError(SessionExpiryError), MissingIdentityError(MissingIdentityError), - SessionGetError(SessionGetError), + SessionGetError(SessionGetError), LostIdentityError(LostIdentityError), }
    Expand description

    Errors that can occur while retrieving an identity.

    -

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    SessionExpiryError(SessionExpiryError)

    The session has expired.

    +

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    SessionExpiryError(SessionExpiryError)

    The session has expired.

    §

    MissingIdentityError(MissingIdentityError)

    No identity is found in a session.

    -
    §

    SessionGetError(SessionGetError)

    Failed to accessing the session store.

    +
    §

    SessionGetError(SessionGetError)

    Failed to accessing the session store.

    §

    LostIdentityError(LostIdentityError)

    Identity info was lost after being validated.

    Seeing this error indicates a bug in actix-identity.

    -

    Trait Implementations§

    source§

    impl Debug for GetIdentityError

    source§

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

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

    impl Display for GetIdentityError

    source§

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

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

    impl Error for GetIdentityError

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<LostIdentityError> for GetIdentityError

    source§

    fn from(original: LostIdentityError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<MissingIdentityError> for GetIdentityError

    source§

    fn from(original: MissingIdentityError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<SessionExpiryError> for GetIdentityError

    source§

    fn from(original: SessionExpiryError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<SessionGetError> for GetIdentityError

    source§

    fn from(original: SessionGetError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl ResponseError for GetIdentityError

    source§

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for GetIdentityError

    source§

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

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

    impl Display for GetIdentityError

    source§

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

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

    impl Error for GetIdentityError

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<LostIdentityError> for GetIdentityError

    source§

    fn from(original: LostIdentityError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<MissingIdentityError> for GetIdentityError

    source§

    fn from(original: MissingIdentityError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<SessionExpiryError> for GetIdentityError

    source§

    fn from(original: SessionExpiryError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl From<SessionGetError> for GetIdentityError

    source§

    fn from(original: SessionGetError) -> GetIdentityError

    Converts to this type from the input type.
    source§

    impl ResponseError for GetIdentityError

    source§

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/error/index.html b/actix_identity/error/index.html index 45c623e5e..268a5062f 100644 --- a/actix_identity/error/index.html +++ b/actix_identity/error/index.html @@ -1,2 +1,2 @@ -actix_identity::error - Rust

    Module actix_identity::error

    source ·
    Expand description

    Failure modes of identity operations.

    -

    Structs

    Enums

    \ No newline at end of file +actix_identity::error - Rust

    Module actix_identity::error

    source ·
    Expand description

    Failure modes of identity operations.

    +

    Structs

    Enums

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

    Error that can occur during login attempts.

    -

    Trait Implementations§

    source§

    impl Debug for LoginError

    source§

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

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

    impl Display for LoginError

    source§

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

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

    impl Error for LoginError

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<SessionInsertError> for LoginError

    source§

    fn from(original: SessionInsertError) -> LoginError

    Converts to this type from the input type.
    source§

    impl ResponseError for LoginError

    source§

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

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

    Error that can occur during login attempts.

    +

    Trait Implementations§

    source§

    impl Debug for LoginError

    source§

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

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

    impl Display for LoginError

    source§

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

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

    impl Error for LoginError

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<SessionInsertError> for LoginError

    source§

    fn from(original: SessionInsertError) -> LoginError

    Converts to this type from the input type.
    source§

    impl ResponseError for LoginError

    source§

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/error/struct.LostIdentityError.html b/actix_identity/error/struct.LostIdentityError.html index 6036f979d..9ba0009f6 100644 --- a/actix_identity/error/struct.LostIdentityError.html +++ b/actix_identity/error/struct.LostIdentityError.html @@ -1,20 +1,20 @@ -LostIdentityError in actix_identity::error - Rust
    #[non_exhaustive]
    pub struct LostIdentityError;
    Expand description

    The identity information has been lost.

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

    The identity information has been lost.

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

    -

    Trait Implementations§

    source§

    impl Debug for LostIdentityError

    source§

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

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

    impl Display for LostIdentityError

    source§

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

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

    impl Error for LostIdentityError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<LostIdentityError> for GetIdentityError

    source§

    fn from(original: LostIdentityError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for LostIdentityError

    source§

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

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

    impl Display for LostIdentityError

    source§

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

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

    impl Error for LostIdentityError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<LostIdentityError> for GetIdentityError

    source§

    fn from(original: LostIdentityError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/error/struct.MissingIdentityError.html b/actix_identity/error/struct.MissingIdentityError.html index 53883221d..6aa8a8f4d 100644 --- a/actix_identity/error/struct.MissingIdentityError.html +++ b/actix_identity/error/struct.MissingIdentityError.html @@ -1,19 +1,19 @@ -MissingIdentityError in actix_identity::error - Rust
    #[non_exhaustive]
    pub struct MissingIdentityError;
    Expand description

    There is no identity information attached to the current session.

    -

    Trait Implementations§

    source§

    impl Debug for MissingIdentityError

    source§

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

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

    impl Display for MissingIdentityError

    source§

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

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

    impl Error for MissingIdentityError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<MissingIdentityError> for GetIdentityError

    source§

    fn from(original: MissingIdentityError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

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

    There is no identity information attached to the current session.

    +

    Trait Implementations§

    source§

    impl Debug for MissingIdentityError

    source§

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

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

    impl Display for MissingIdentityError

    source§

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

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

    impl Error for MissingIdentityError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<MissingIdentityError> for GetIdentityError

    source§

    fn from(original: MissingIdentityError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/error/struct.SessionExpiryError.html b/actix_identity/error/struct.SessionExpiryError.html index 6854a5582..9578536b1 100644 --- a/actix_identity/error/struct.SessionExpiryError.html +++ b/actix_identity/error/struct.SessionExpiryError.html @@ -1,19 +1,19 @@ -SessionExpiryError in actix_identity::error - Rust
    pub struct SessionExpiryError(/* private fields */);
    Expand description

    Error encountered when working with a session that has expired.

    -

    Trait Implementations§

    source§

    impl Debug for SessionExpiryError

    source§

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

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

    impl Display for SessionExpiryError

    source§

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

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

    impl Error for SessionExpiryError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<SessionExpiryError> for GetIdentityError

    source§

    fn from(original: SessionExpiryError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

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

    Error encountered when working with a session that has expired.

    +

    Trait Implementations§

    source§

    impl Debug for SessionExpiryError

    source§

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

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

    impl Display for SessionExpiryError

    source§

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

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

    impl Error for SessionExpiryError

    1.30.0 · source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<SessionExpiryError> for GetIdentityError

    source§

    fn from(original: SessionExpiryError) -> GetIdentityError

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/index.html b/actix_identity/index.html index ddbf60459..f0dbbdef3 100644 --- a/actix_identity/index.html +++ b/actix_identity/index.html @@ -1,4 +1,4 @@ -actix_identity - Rust

    Modules

    Structs

    Traits

    \ No newline at end of file +

    Modules

    Structs

    Traits

    \ No newline at end of file diff --git a/actix_identity/struct.Identity.html b/actix_identity/struct.Identity.html index f527f4858..dd10dd10c 100644 --- a/actix_identity/struct.Identity.html +++ b/actix_identity/struct.Identity.html @@ -1,4 +1,4 @@ -Identity in actix_identity - Rust
    pub struct Identity(/* private fields */);
    Expand description

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

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

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

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

    @@ -49,7 +49,7 @@ control of the error path.

    .finish() } }
    -

    Implementations§

    source§

    impl Identity

    source

    pub fn id(&self) -> Result<String, GetIdentityError>

    Return the user id associated to the current session.

    +

    Implementations§

    source§

    impl Identity

    source

    pub fn id(&self) -> Result<String, GetIdentityError>

    Return the user id associated to the current session.

    Examples
    use actix_web::{get, Responder};
     use actix_identity::Identity;
    @@ -88,7 +88,7 @@ require a valid Trait Implementations§
    source§

    impl FromRequest for Identity

    Extractor implementation for Identity.

    +

    Trait Implementations§

    source§

    impl FromRequest for Identity

    Extractor implementation for Identity.

    Examples

    use actix_web::{get, Responder};
     use actix_identity::Identity;
    @@ -101,20 +101,20 @@ require a valid "Welcome Anonymous!".to_owned()
         }
     }
    -
    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Identity, <Identity as FromRequest>::Error>>

    Future that resolves to a Self. Read more
    source§

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

    Create a Self from request parts asynchronously.
    §

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

    Create a Self from request head asynchronously. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    §

    type Error = Error

    The associated error which can be returned.
    §

    type Future = Ready<Result<Identity, <Identity as FromRequest>::Error>>

    Future that resolves to a Self. Read more
    source§

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

    Create a Self from request parts asynchronously.
    §

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

    Create a Self from request head asynchronously. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/struct.IdentityMiddleware.html b/actix_identity/struct.IdentityMiddleware.html index 104a011e1..15692c521 100644 --- a/actix_identity/struct.IdentityMiddleware.html +++ b/actix_identity/struct.IdentityMiddleware.html @@ -1,4 +1,4 @@ -IdentityMiddleware in actix_identity - Rust
    pub struct IdentityMiddleware { /* private fields */ }
    Expand description

    Identity management middleware.

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

    Identity management middleware.

    use actix_web::{cookie::Key, App, HttpServer};
     use actix_session::storage::RedisSessionStore;
    @@ -19,25 +19,25 @@
                .wrap(SessionMiddleware::new(redis_store.clone(), secret_key.clone()))
         })
     }
    -

    Implementations§

    Trait Implementations§

    source§

    impl Clone for IdentityMiddleware

    source§

    fn clone(&self) -> IdentityMiddleware

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Default for IdentityMiddleware

    source§

    fn default() -> IdentityMiddleware

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

    impl<S, B> Transform<S, ServiceRequest> for IdentityMiddlewarewhere +

    Implementations§

    Trait Implementations§

    source§

    impl Clone for IdentityMiddleware

    source§

    fn clone(&self) -> IdentityMiddleware

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Default for IdentityMiddleware

    source§

    fn default() -> IdentityMiddleware

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

    impl<S, B> Transform<S, ServiceRequest> for IdentityMiddleware
    where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static, S::Future: 'static, - B: MessageBody + 'static,

    §

    type Response = ServiceResponse<B>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type Transform = InnerIdentityMiddleware<S>

    The TransformService value created by this factory
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Future = Ready<Result<<IdentityMiddleware as Transform<S, ServiceRequest>>::Transform, <IdentityMiddleware as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + B: MessageBody + 'static,
    §

    type Response = ServiceResponse<B>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type Transform = InnerIdentityMiddleware<S>

    The TransformService value created by this factory
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Future = Ready<Result<<IdentityMiddleware as Transform<S, ServiceRequest>>::Transform, <IdentityMiddleware as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_identity/trait.IdentityExt.html b/actix_identity/trait.IdentityExt.html index a19ad7756..1aed8f544 100644 --- a/actix_identity/trait.IdentityExt.html +++ b/actix_identity/trait.IdentityExt.html @@ -1,6 +1,6 @@ -IdentityExt in actix_identity - Rust
    pub trait IdentityExt {
    +IdentityExt in actix_identity - Rust
    pub trait IdentityExt {
         // Required method
         fn get_identity(&self) -> Result<Identity, GetIdentityError>;
     }
    Expand description

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

    -

    Required Methods§

    source

    fn get_identity(&self) -> Result<Identity, GetIdentityError>

    Retrieve the identity attached to the current session, if available.

    -

    Implementations on Foreign Types§

    source§

    impl IdentityExt for HttpRequest

    source§

    impl IdentityExt for ServiceRequest

    source§

    impl<'a> IdentityExt for GuardContext<'a>

    Implementors§

    \ No newline at end of file +

    Required Methods§

    source

    fn get_identity(&self) -> Result<Identity, GetIdentityError>

    Retrieve the identity attached to the current session, if available.

    +

    Implementations on Foreign Types§

    source§

    impl IdentityExt for HttpRequest

    source§

    impl IdentityExt for ServiceRequest

    source§

    impl<'a> IdentityExt for GuardContext<'a>

    Implementors§

    \ No newline at end of file diff --git a/actix_limitation/all.html b/actix_limitation/all.html index 8cb8cd947..8b5809a59 100644 --- a/actix_limitation/all.html +++ b/actix_limitation/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html index b77343724..7f87ce86e 100644 --- a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html +++ b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html @@ -1,2 +1,2 @@ -DEFAULT_COOKIE_NAME in actix_limitation - Rust
    pub const DEFAULT_COOKIE_NAME: &str = "sid";
    Expand description

    Default cookie name.

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

    Default cookie name.

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

    Default period (in seconds).

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

    Default period (in seconds).

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

    Default request limit.

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

    Default request limit.

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

    Default session key.

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

    Default session key.

    \ No newline at end of file diff --git a/actix_limitation/enum.Error.html b/actix_limitation/enum.Error.html index 6d1b7ae5c..7f8d76891 100644 --- a/actix_limitation/enum.Error.html +++ b/actix_limitation/enum.Error.html @@ -1,28 +1,28 @@ -Error in actix_limitation - Rust
    pub enum Error {
    +Error in actix_limitation - Rust
    pub enum Error {
         Client(RedisError),
         LimitExceeded(Status),
         Time(ComponentRange),
         Other(String),
     }
    Expand description

    Failure modes of the rate limiter.

    -

    Variants§

    §

    Client(RedisError)

    Redis client failed to connect or run a query.

    +

    Variants§

    §

    Client(RedisError)

    Redis client failed to connect or run a query.

    §

    LimitExceeded(Status)

    Limit is exceeded for a key.

    §

    Time(ComponentRange)

    Time conversion failed.

    §

    Other(String)

    Generic error.

    -

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<ComponentRange> for Error

    source§

    fn from(original: ComponentRange) -> Error

    Converts to this type from the input type.
    source§

    impl From<RedisError> for Error

    source§

    fn from(original: RedisError) -> Error

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<ComponentRange> for Error

    source§

    fn from(original: ComponentRange) -> Error

    Converts to this type from the input type.
    source§

    impl From<RedisError> for Error

    source§

    fn from(original: RedisError) -> Error

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_limitation/index.html b/actix_limitation/index.html index 42302728f..59c2595d2 100644 --- a/actix_limitation/index.html +++ b/actix_limitation/index.html @@ -1,4 +1,4 @@ -actix_limitation - Rust

    Structs

    Enums

    • Failure modes of the rate limiter.

    Constants

    \ No newline at end of file diff --git a/actix_limitation/struct.Builder.html b/actix_limitation/struct.Builder.html index f0594ef96..e39b524bb 100644 --- a/actix_limitation/struct.Builder.html +++ b/actix_limitation/struct.Builder.html @@ -1,8 +1,8 @@ -Builder in actix_limitation - Rust
    pub struct Builder { /* private fields */ }
    Expand description

    Rate limiter builder.

    -

    Implementations§

    source§

    impl Builder

    source

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

    Set upper limit.

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

    Rate limiter builder.

    +

    Implementations§

    source§

    impl Builder

    source

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

    Set upper limit.

    source

    pub fn period(&mut self, period: Duration) -> &mut Self

    Set limit window/period.

    -
    source

    pub fn key_by<F>(&mut self, resolver: F) -> &mut Selfwhere - F: Fn(&ServiceRequest) -> Option<String> + Send + Sync + 'static,

    Sets rate limit key derivation function.

    +
    source

    pub fn key_by<F>(&mut self, resolver: F) -> &mut Self
    where + F: Fn(&ServiceRequest) -> Option<String> + Send + Sync + 'static,

    Sets rate limit key derivation function.

    Should not be used in combination with cookie_name or session_key as they conflict.

    source

    pub fn cookie_name( &mut self, @@ -17,20 +17,20 @@

    source

    pub fn build(&mut self) -> Result<Limiter, Error>

    Finalizes and returns a Limiter.

    Note that this method will connect to the Redis server to test its connection which is a synchronous operation.

    -

    Trait Implementations§

    source§

    impl Debug for Builder

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for Builder

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_limitation/struct.Limiter.html b/actix_limitation/struct.Limiter.html index f887cce26..2a1de6f61 100644 --- a/actix_limitation/struct.Limiter.html +++ b/actix_limitation/struct.Limiter.html @@ -1,23 +1,23 @@ -Limiter in actix_limitation - Rust
    pub struct Limiter { /* private fields */ }
    Expand description

    Rate limiter.

    -

    Implementations§

    source§

    impl Limiter

    source

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

    Construct rate limiter builder with defaults.

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

    Rate limiter.

    +

    Implementations§

    source§

    impl Limiter

    source

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

    Construct rate limiter builder with defaults.

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

    source

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

    Consumes one rate limit unit, returning the status.

    -

    Trait Implementations§

    source§

    impl Clone for Limiter

    source§

    fn clone(&self) -> Limiter

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Limiter

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for Limiter

    source§

    fn clone(&self) -> Limiter

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Limiter

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_limitation/struct.RateLimiter.html b/actix_limitation/struct.RateLimiter.html index aa684f97a..d16bc3df7 100644 --- a/actix_limitation/struct.RateLimiter.html +++ b/actix_limitation/struct.RateLimiter.html @@ -1,21 +1,21 @@ -RateLimiter in actix_limitation - Rust
    #[non_exhaustive]
    pub struct RateLimiter;
    Expand description

    Rate limit middleware.

    -

    Trait Implementations§

    source§

    impl Debug for RateLimiter

    source§

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

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

    impl Default for RateLimiter

    source§

    fn default() -> RateLimiter

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

    impl<S, B> Transform<S, ServiceRequest> for RateLimiterwhere +RateLimiter in actix_limitation - Rust
    #[non_exhaustive]
    pub struct RateLimiter;
    Expand description

    Rate limit middleware.

    +

    Trait Implementations§

    source§

    impl Debug for RateLimiter

    source§

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

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

    impl Default for RateLimiter

    source§

    fn default() -> RateLimiter

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

    impl<S, B> Transform<S, ServiceRequest> for RateLimiter
    where S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static, S::Future: 'static, - B: 'static,

    §

    type Response = ServiceResponse<EitherBody<B>>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type Transform = RateLimiterMiddleware<S>

    The TransformService value created by this factory
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Future = Ready<Result<<RateLimiter as Transform<S, ServiceRequest>>::Transform, <RateLimiter as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + B: 'static,

    §

    type Response = ServiceResponse<EitherBody<B>>

    Responses produced by the service.
    §

    type Error = Error

    Errors produced by the service.
    §

    type Transform = RateLimiterMiddleware<S>

    The TransformService value created by this factory
    §

    type InitError = ()

    Errors produced while building a transform service.
    §

    type Future = Ready<Result<<RateLimiter as Transform<S, ServiceRequest>>::Transform, <RateLimiter as Transform<S, ServiceRequest>>::InitError>>

    The future response value.
    source§

    fn new_transform(&self, service: S) -> Self::Future

    Creates and returns a new Transform component, asynchronously

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_limitation/struct.Status.html b/actix_limitation/struct.Status.html index 7e43a5a04..b2f5bd8da 100644 --- a/actix_limitation/struct.Status.html +++ b/actix_limitation/struct.Status.html @@ -1,22 +1,22 @@ -Status in actix_limitation - Rust
    pub struct Status { /* private fields */ }
    Expand description

    A report for a given key containing the limit status.

    -

    Implementations§

    source§

    impl Status

    source

    pub fn limit(&self) -> usize

    Returns the maximum number of requests allowed in the current period.

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

    A report for a given key containing the limit status.

    +

    Implementations§

    source§

    impl Status

    source

    pub fn limit(&self) -> usize

    Returns the maximum number of requests allowed in the current period.

    source

    pub fn remaining(&self) -> usize

    Returns how many requests are left in the current period.

    source

    pub fn reset_epoch_utc(&self) -> usize

    Returns a UNIX timestamp in UTC approximately when the next period will begin.

    -

    Trait Implementations§

    source§

    impl Clone for Status

    source§

    fn clone(&self) -> Status

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Status

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for Status

    source§

    fn clone(&self) -> Status

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Status

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_protobuf/all.html b/actix_protobuf/all.html index 916102373..4da34b827 100644 --- a/actix_protobuf/all.html +++ b/actix_protobuf/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_protobuf/enum.ProtoBufPayloadError.html b/actix_protobuf/enum.ProtoBufPayloadError.html index 84d354abd..2ad68692e 100644 --- a/actix_protobuf/enum.ProtoBufPayloadError.html +++ b/actix_protobuf/enum.ProtoBufPayloadError.html @@ -1,29 +1,29 @@ -ProtoBufPayloadError in actix_protobuf - Rust
    pub enum ProtoBufPayloadError {
    +ProtoBufPayloadError in actix_protobuf - Rust
    pub enum ProtoBufPayloadError {
         Overflow,
         ContentType,
         Serialize(EncodeError),
         Deserialize(DecodeError),
         Payload(PayloadError),
    -}

    Variants§

    §

    Overflow

    Payload size is bigger than 256k

    +}

    Variants§

    §

    Overflow

    Payload size is bigger than 256k

    §

    ContentType

    Content type error

    §

    Serialize(EncodeError)

    Serialize error

    §

    Deserialize(DecodeError)

    Deserialize error

    §

    Payload(PayloadError)

    Payload error

    -

    Trait Implementations§

    source§

    impl Debug for ProtoBufPayloadError

    source§

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

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

    impl Display for ProtoBufPayloadError

    source§

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

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

    impl From<DecodeError> for ProtoBufPayloadError

    source§

    fn from(err: ProtoBufDecodeError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl From<PayloadError> for ProtoBufPayloadError

    source§

    fn from(err: PayloadError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl ResponseError for ProtoBufPayloadError

    source§

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more
    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for ProtoBufPayloadError

    source§

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

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

    impl Display for ProtoBufPayloadError

    source§

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

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

    impl From<DecodeError> for ProtoBufPayloadError

    source§

    fn from(err: ProtoBufDecodeError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl From<PayloadError> for ProtoBufPayloadError

    source§

    fn from(err: PayloadError) -> ProtoBufPayloadError

    Converts to this type from the input type.
    source§

    impl ResponseError for ProtoBufPayloadError

    source§

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more
    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_protobuf/index.html b/actix_protobuf/index.html index 06c31dbf5..242df1434 100644 --- a/actix_protobuf/index.html +++ b/actix_protobuf/index.html @@ -1,3 +1,3 @@ -actix_protobuf - Rust

    Structs

    Enums

    Traits

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

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

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

    source§

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

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

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

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    source§

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

    source§

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

    Mutably dereferences the value.
    source§

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

    source§

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

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

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

    §

    type Error = Error

    The associated error which can be returned.
    §

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

    Future that resolves to a Self. Read more
    source§

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

    Create a Self from request parts asynchronously.
    §

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

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

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

    §

    type Body = BoxBody

    source§

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

    Convert self to HttpResponse.
    §

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

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

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

    §

    impl<T> Send for ProtoBuf<T>

    §

    impl<T> Sync for ProtoBuf<T>

    §

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

    §

    impl<T> UnwindSafe for ProtoBuf<T>where - T: UnwindSafe,

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +ProtoBuf in actix_protobuf - Rust
    pub struct ProtoBuf<T: Message>(pub T);

    Tuple Fields§

    §0: T

    Trait Implementations§

    source§

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

    source§

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

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

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

    §

    type Target = T

    The resulting type after dereferencing.
    source§

    fn deref(&self) -> &T

    Dereferences the value.
    source§

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

    source§

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

    Mutably dereferences the value.
    source§

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

    source§

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

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

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

    §

    type Error = Error

    The associated error which can be returned.
    §

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

    Future that resolves to a Self. Read more
    source§

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

    Create a Self from request parts asynchronously.
    §

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

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

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

    §

    type Body = BoxBody

    source§

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

    Convert self to HttpResponse.
    §

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

    Wraps responder to allow alteration of its response. Read more

    Auto Trait Implementations§

    §

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

    §

    impl<T> Send for ProtoBuf<T>

    §

    impl<T> Sync for ProtoBuf<T>

    §

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

    §

    impl<T> UnwindSafe for ProtoBuf<T>
    where + T: UnwindSafe,

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    §

    impl<T, P> Resource for Twhere +

    §

    impl<T, P> Resource for T
    where T: DerefMut<Target = Path<P>>, - P: ResourcePath,

    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a + P: ResourcePath,
    §

    type Path = P

    Type of resource’s path returned in resource_path.
    §

    fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>

    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn with_current_subscriber(self) -> WithDispatch<Self>

    Attaches the current default Subscriber to this type, returning a -[WithDispatch] wrapper. Read more
    §

    impl<T> Formattable for Twhere +[WithDispatch] wrapper. Read more

    §

    impl<T> Formattable for T
    where T: Deref, - <T as Deref>::Target: Formattable,

    §

    impl<T> Parsable for Twhere + <T as Deref>::Target: Formattable,

    §

    impl<T> Parsable for T
    where T: Deref, - <T as Deref>::Target: Parsable,

    \ No newline at end of file + <T as Deref>::Target: Parsable, \ No newline at end of file diff --git a/actix_protobuf/struct.ProtoBufConfig.html b/actix_protobuf/struct.ProtoBufConfig.html index 745f1e62f..8b1674753 100644 --- a/actix_protobuf/struct.ProtoBufConfig.html +++ b/actix_protobuf/struct.ProtoBufConfig.html @@ -1,18 +1,18 @@ -ProtoBufConfig in actix_protobuf - Rust
    pub struct ProtoBufConfig { /* private fields */ }

    Implementations§

    source§

    impl ProtoBufConfig

    source

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

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

    -

    Trait Implementations§

    source§

    impl Default for ProtoBufConfig

    source§

    fn default() -> Self

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +ProtoBufConfig in actix_protobuf - Rust
    pub struct ProtoBufConfig { /* private fields */ }

    Implementations§

    source§

    impl ProtoBufConfig

    source

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

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

    +

    Trait Implementations§

    source§

    impl Default for ProtoBufConfig

    source§

    fn default() -> Self

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_protobuf/struct.ProtoBufMessage.html b/actix_protobuf/struct.ProtoBufMessage.html index fdcfb72a7..abc35140b 100644 --- a/actix_protobuf/struct.ProtoBufMessage.html +++ b/actix_protobuf/struct.ProtoBufMessage.html @@ -1,115 +1,115 @@ -ProtoBufMessage in actix_protobuf - Rust
    pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }

    Implementations§

    source§

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

    source

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

    Create ProtoBufMessage for request.

    +ProtoBufMessage in actix_protobuf - Rust
    pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }

    Implementations§

    source§

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

    source

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

    Create ProtoBufMessage for request.

    source

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

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

    -

    Trait Implementations§

    source§

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

    §

    type Output = Result<T, ProtoBufPayloadError>

    The type of value produced on completion.
    source§

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

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

    Auto Trait Implementations§

    §

    impl<T> !RefUnwindSafe for ProtoBufMessage<T>

    §

    impl<T> !Send for ProtoBufMessage<T>

    §

    impl<T> !Sync for ProtoBufMessage<T>

    §

    impl<T> Unpin for ProtoBufMessage<T>

    §

    impl<T> !UnwindSafe for ProtoBufMessage<T>

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    -
    §

    impl<T> FutureExt for Twhere - T: Future + ?Sized,

    §

    fn map<U, F>(self, f: F) -> Map<Self, F>where +

    Trait Implementations§

    source§

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

    §

    type Output = Result<T, ProtoBufPayloadError>

    The type of value produced on completion.
    source§

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

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

    Auto Trait Implementations§

    §

    impl<T> !RefUnwindSafe for ProtoBufMessage<T>

    §

    impl<T> !Send for ProtoBufMessage<T>

    §

    impl<T> !Sync for ProtoBufMessage<T>

    §

    impl<T> Unpin for ProtoBufMessage<T>

    §

    impl<T> !UnwindSafe for ProtoBufMessage<T>

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +
    §

    impl<T> FutureExt for T
    where + T: Future + ?Sized,

    §

    fn map<U, F>(self, f: F) -> Map<Self, F>
    where F: FnOnce(Self::Output) -> U, - Self: Sized,

    Map this future’s output to a different type, returning a new future of -the resulting type. Read more
    §

    fn map_into<U>(self) -> MapInto<Self, U>where + Self: Sized,

    Map this future’s output to a different type, returning a new future of +the resulting type. Read more
    §

    fn map_into<U>(self) -> MapInto<Self, U>
    where Self::Output: Into<U>, - Self: Sized,

    Map this future’s output to a different type, returning a new future of -the resulting type. Read more
    §

    fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>where + Self: Sized,

    Map this future’s output to a different type, returning a new future of +the resulting type. Read more
    §

    fn then<Fut, F>(self, f: F) -> Then<Self, Fut, F>
    where F: FnOnce(Self::Output) -> Fut, Fut: Future, - Self: Sized,

    Chain on a computation for when a future finished, passing the result of -the future to the provided closure f. Read more
    §

    fn left_future<B>(self) -> Either<Self, B>where + Self: Sized,

    Chain on a computation for when a future finished, passing the result of +the future to the provided closure f. Read more
    §

    fn left_future<B>(self) -> Either<Self, B>
    where B: Future<Output = Self::Output>, - Self: Sized,

    Wrap this future in an Either future, making it the left-hand variant -of that Either. Read more
    §

    fn right_future<A>(self) -> Either<A, Self>where + Self: Sized,

    Wrap this future in an Either future, making it the left-hand variant +of that Either. Read more
    §

    fn right_future<A>(self) -> Either<A, Self>
    where A: Future<Output = Self::Output>, - Self: Sized,

    Wrap this future in an Either future, making it the right-hand variant -of that Either. Read more
    §

    fn into_stream(self) -> IntoStream<Self>where - Self: Sized,

    Convert this future into a single element stream. Read more
    §

    fn flatten(self) -> Flatten<Self>where + Self: Sized,

    Wrap this future in an Either future, making it the right-hand variant +of that Either. Read more
    §

    fn into_stream(self) -> IntoStream<Self>
    where + Self: Sized,

    Convert this future into a single element stream. Read more
    §

    fn flatten(self) -> Flatten<Self>
    where Self::Output: Future, - Self: Sized,

    Flatten the execution of this future when the output of this -future is itself another future. Read more
    §

    fn flatten_stream(self) -> FlattenStream<Self>where + Self: Sized,

    Flatten the execution of this future when the output of this +future is itself another future. Read more
    §

    fn flatten_stream(self) -> FlattenStream<Self>
    where Self::Output: Stream, - Self: Sized,

    Flatten the execution of this future when the successful result of this -future is a stream. Read more
    §

    fn fuse(self) -> Fuse<Self>where - Self: Sized,

    Fuse a future such that poll will never again be called once it has + Self: Sized,
    Flatten the execution of this future when the successful result of this +future is a stream. Read more
    §

    fn fuse(self) -> Fuse<Self>
    where + Self: Sized,

    Fuse a future such that poll will never again be called once it has completed. This method can be used to turn any Future into a -FusedFuture. Read more
    §

    fn inspect<F>(self, f: F) -> Inspect<Self, F>where +FusedFuture. Read more

    §

    fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where F: FnOnce(&Self::Output), - Self: Sized,

    Do something with the output of a future before passing it on. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>where - Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>where + Self: Sized,

    Do something with the output of a future before passing it on. Read more
    §

    fn catch_unwind(self) -> CatchUnwind<Self>
    where + Self: Sized + UnwindSafe,

    Catches unwinding panics while polling the future. Read more
    §

    fn shared(self) -> Shared<Self>
    where Self: Sized, - Self::Output: Clone,

    Create a cloneable handle to this future where all handles will resolve -to the same result. Read more
    §

    fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)where - Self: Sized,

    Turn this future into a future that yields () on completion and sends -its output to another future on a separate task. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>where - Self: Sized + Send + 'a,

    Wrap the future in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>where - Self: Sized + 'a,

    Wrap the future in a Box, pinning it. Read more
    §

    fn unit_error(self) -> UnitError<Self>where - Self: Sized,

    §

    fn never_error(self) -> NeverError<Self>where - Self: Sized,

    §

    fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>where - Self: Unpin,

    A convenience for calling Future::poll on Unpin future types.
    §

    fn now_or_never(self) -> Option<Self::Output>where - Self: Sized,

    Evaluates and consumes the future, returning the resulting output if + Self::Output: Clone,
    Create a cloneable handle to this future where all handles will resolve +to the same result. Read more
    §

    fn remote_handle(self) -> (Remote<Self>, RemoteHandle<Self::Output>)
    where + Self: Sized,

    Turn this future into a future that yields () on completion and sends +its output to another future on a separate task. Read more
    §

    fn boxed<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + Send + 'a>>
    where + Self: Sized + Send + 'a,

    Wrap the future in a Box, pinning it. Read more
    §

    fn boxed_local<'a>(self) -> Pin<Box<dyn Future<Output = Self::Output> + 'a>>
    where + Self: Sized + 'a,

    Wrap the future in a Box, pinning it. Read more
    §

    fn unit_error(self) -> UnitError<Self>
    where + Self: Sized,

    §

    fn never_error(self) -> NeverError<Self>
    where + Self: Sized,

    §

    fn poll_unpin(&mut self, cx: &mut Context<'_>) -> Poll<Self::Output>
    where + Self: Unpin,

    A convenience for calling Future::poll on Unpin future types.
    §

    fn now_or_never(self) -> Option<Self::Output>
    where + Self: Sized,

    Evaluates and consumes the future, returning the resulting output if the future is ready after the first call to Future::poll. Read more
    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<F> IntoFuture for Fwhere - F: Future,

    §

    type Output = <F as Future>::Output

    The output that the future will produce on completion.
    §

    type IntoFuture = F

    Which kind of future are we turning this into?
    source§

    fn into_future(self) -> <F as IntoFuture>::IntoFuture

    Creates a future from a value. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    §

    impl<F, T, E> TryFuture for Fwhere - F: Future<Output = Result<T, E>> + ?Sized,

    §

    type Ok = T

    The type of successful values yielded by this future
    §

    type Error = E

    The type of failures yielded by this future
    §

    fn try_poll( +

    source§

    impl<F> IntoFuture for F
    where + F: Future,

    §

    type Output = <F as Future>::Output

    The output that the future will produce on completion.
    §

    type IntoFuture = F

    Which kind of future are we turning this into?
    source§

    fn into_future(self) -> <F as IntoFuture>::IntoFuture

    Creates a future from a value. Read more
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    §

    impl<F, T, E> TryFuture for F
    where + F: Future<Output = Result<T, E>> + ?Sized,

    §

    type Ok = T

    The type of successful values yielded by this future
    §

    type Error = E

    The type of failures yielded by this future
    §

    fn try_poll( self: Pin<&mut F>, cx: &mut Context<'_> -) -> Poll<<F as Future>::Output>

    Poll this TryFuture as if it were a Future. Read more
    §

    impl<Fut> TryFutureExt for Futwhere - Fut: TryFuture + ?Sized,

    §

    fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>where +) -> Poll<<F as Future>::Output>

    Poll this TryFuture as if it were a Future. Read more
    §

    impl<Fut> TryFutureExt for Fut
    where + Fut: TryFuture + ?Sized,

    §

    fn flatten_sink<Item>(self) -> FlattenSink<Self, Self::Ok>
    where Self::Ok: Sink<Item, Error = Self::Error>, - Self: Sized,

    Flattens the execution of this future when the successful result of this -future is a [Sink]. Read more
    §

    fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>where + Self: Sized,

    Flattens the execution of this future when the successful result of this +future is a [Sink]. Read more
    §

    fn map_ok<T, F>(self, f: F) -> MapOk<Self, F>
    where F: FnOnce(Self::Ok) -> T, - Self: Sized,

    Maps this future’s success value to a different value. Read more
    §

    fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>where + Self: Sized,

    Maps this future’s success value to a different value. Read more
    §

    fn map_ok_or_else<T, E, F>(self, e: E, f: F) -> MapOkOrElse<Self, F, E>
    where F: FnOnce(Self::Ok) -> T, E: FnOnce(Self::Error) -> T, - Self: Sized,

    Maps this future’s success value to a different value, and permits for error handling resulting in the same type. Read more
    §

    fn map_err<E, F>(self, f: F) -> MapErr<Self, F>where + Self: Sized,

    Maps this future’s success value to a different value, and permits for error handling resulting in the same type. Read more
    §

    fn map_err<E, F>(self, f: F) -> MapErr<Self, F>
    where F: FnOnce(Self::Error) -> E, - Self: Sized,

    Maps this future’s error value to a different value. Read more
    §

    fn err_into<E>(self) -> ErrInto<Self, E>where + Self: Sized,

    Maps this future’s error value to a different value. Read more
    §

    fn err_into<E>(self) -> ErrInto<Self, E>
    where Self: Sized, - Self::Error: Into<E>,

    Maps this future’s Error to a new error type -using the Into trait. Read more
    §

    fn ok_into<U>(self) -> OkInto<Self, U>where + Self::Error: Into<E>,

    Maps this future’s Error to a new error type +using the Into trait. Read more
    §

    fn ok_into<U>(self) -> OkInto<Self, U>
    where Self: Sized, - Self::Ok: Into<U>,

    Maps this future’s Ok to a new type -using the Into trait.
    §

    fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>where + Self::Ok: Into<U>,

    Maps this future’s Ok to a new type +using the Into trait.
    §

    fn and_then<Fut, F>(self, f: F) -> AndThen<Self, Fut, F>
    where F: FnOnce(Self::Ok) -> Fut, Fut: TryFuture<Error = Self::Error>, - Self: Sized,

    Executes another future after this one resolves successfully. The -success value is passed to a closure to create this subsequent future. Read more
    §

    fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>where + Self: Sized,

    Executes another future after this one resolves successfully. The +success value is passed to a closure to create this subsequent future. Read more
    §

    fn or_else<Fut, F>(self, f: F) -> OrElse<Self, Fut, F>
    where F: FnOnce(Self::Error) -> Fut, Fut: TryFuture<Ok = Self::Ok>, - Self: Sized,

    Executes another future if this one resolves to an error. The -error value is passed to a closure to create this subsequent future. Read more
    §

    fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>where + Self: Sized,

    Executes another future if this one resolves to an error. The +error value is passed to a closure to create this subsequent future. Read more
    §

    fn inspect_ok<F>(self, f: F) -> InspectOk<Self, F>
    where F: FnOnce(&Self::Ok), - Self: Sized,

    Do something with the success value of a future before passing it on. Read more
    §

    fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>where + Self: Sized,

    Do something with the success value of a future before passing it on. Read more
    §

    fn inspect_err<F>(self, f: F) -> InspectErr<Self, F>
    where F: FnOnce(&Self::Error), - Self: Sized,

    Do something with the error value of a future before passing it on. Read more
    §

    fn try_flatten(self) -> TryFlatten<Self, Self::Ok>where + Self: Sized,

    Do something with the error value of a future before passing it on. Read more
    §

    fn try_flatten(self) -> TryFlatten<Self, Self::Ok>
    where Self::Ok: TryFuture<Error = Self::Error>, - Self: Sized,

    Flatten the execution of this future when the successful result of this -future is another future. Read more
    §

    fn try_flatten_stream(self) -> TryFlattenStream<Self>where + Self: Sized,

    Flatten the execution of this future when the successful result of this +future is another future. Read more
    §

    fn try_flatten_stream(self) -> TryFlattenStream<Self>
    where Self::Ok: TryStream<Error = Self::Error>, - Self: Sized,

    Flatten the execution of this future when the successful result of this -future is a stream. Read more
    §

    fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>where + Self: Sized,

    Flatten the execution of this future when the successful result of this +future is a stream. Read more
    §

    fn unwrap_or_else<F>(self, f: F) -> UnwrapOrElse<Self, F>
    where Self: Sized, - F: FnOnce(Self::Error) -> Self::Ok,

    Unwraps this future’s output, producing a future with this future’s + F: FnOnce(Self::Error) -> Self::Ok,
    Unwraps this future’s output, producing a future with this future’s Ok type as its -Output type. Read more
    §

    fn into_future(self) -> IntoFuture<Self>where - Self: Sized,

    Wraps a [TryFuture] into a type that implements +Output type. Read more
    §

    fn into_future(self) -> IntoFuture<Self>
    where + Self: Sized,

    Wraps a [TryFuture] into a type that implements Future. Read more
    §

    fn try_poll_unpin( &mut self, cx: &mut Context<'_> -) -> Poll<Result<Self::Ok, Self::Error>>where - Self: Unpin,

    A convenience method for calling [TryFuture::try_poll] on Unpin -future types.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +) -> Poll<Result<Self::Ok, Self::Error>>
    where + Self: Unpin,
    A convenience method for calling [TryFuture::try_poll] on Unpin +future types.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_protobuf/trait.ProtoBufResponseBuilder.html b/actix_protobuf/trait.ProtoBufResponseBuilder.html index 269efdde1..0da192a0a 100644 --- a/actix_protobuf/trait.ProtoBufResponseBuilder.html +++ b/actix_protobuf/trait.ProtoBufResponseBuilder.html @@ -1,4 +1,4 @@ -ProtoBufResponseBuilder in actix_protobuf - Rust
    pub trait ProtoBufResponseBuilder {
    +ProtoBufResponseBuilder in actix_protobuf - Rust
    pub trait ProtoBufResponseBuilder {
         // Required method
         fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>;
    -}

    Required Methods§

    source

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

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl ProtoBufResponseBuilder for HttpResponseBuilder

    source§

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

    Implementors§

    \ No newline at end of file +}

    Required Methods§

    source

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

    Object Safety§

    This trait is not object safe.

    Implementations on Foreign Types§

    source§

    impl ProtoBufResponseBuilder for HttpResponseBuilder

    source§

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

    Implementors§

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

    List of all items

    Structs

    Enums

    Macros

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

    List of all items

    Structs

    Enums

    Macros

    \ No newline at end of file diff --git a/actix_redis/enum.Error.html b/actix_redis/enum.Error.html index 4d4bf4ff4..ab1ff7a84 100644 --- a/actix_redis/enum.Error.html +++ b/actix_redis/enum.Error.html @@ -1,25 +1,25 @@ -Error in actix_redis - Rust

    Enum actix_redis::Error

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

    Enum actix_redis::Error

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

    General purpose actix-redis error.

    -

    Variants§

    §

    Redis(Error)

    §

    NotConnected

    Receiving message during reconnecting.

    +

    Variants§

    §

    Redis(Error)

    §

    NotConnected

    Receiving message during reconnecting.

    §

    Disconnected

    Cancel all waiters when connection is dropped.

    -

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    source§

    impl ResponseError for Error

    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Debug for Error

    source§

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

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

    impl Display for Error

    source§

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

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

    impl Error for Error

    source§

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    source§

    impl ResponseError for Error

    §

    fn status_code(&self) -> StatusCode

    Returns appropriate status code for error. Read more
    §

    fn error_response(&self) -> HttpResponse

    Creates full response for error. Read more

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_redis/enum.RespError.html b/actix_redis/enum.RespError.html index 9db55bafc..b4bc42f1f 100644 --- a/actix_redis/enum.RespError.html +++ b/actix_redis/enum.RespError.html @@ -1,11 +1,11 @@ -RespError in actix_redis - Rust
    pub enum RespError {
    +RespError in actix_redis - Rust
    pub enum RespError {
         Internal(String),
         IO(Arc<Error>),
         Resp(String, Option<RespValue>),
         Remote(String),
         Connection(ConnectionReason),
         Unexpected(String),
    -}

    Variants§

    §

    Internal(String)

    A non-specific internal error that prevented an operation from completing

    +}

    Variants§

    §

    Internal(String)

    A non-specific internal error that prevented an operation from completing

    §

    IO(Arc<Error>)

    An IO error occurred

    §

    Resp(String, Option<RespValue>)

    A RESP parsing/serialising error occurred

    §

    Remote(String)

    A remote error

    @@ -16,23 +16,23 @@ chains of futures; but it occurring at runtime should be considered a catastroph failure.

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

    -

    Trait Implementations§

    §

    impl Clone for Error

    §

    fn clone(&self) -> Error

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

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

    Performs copy-assignment from source. Read more
    §

    impl Debug for Error

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Display for Error

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Error for Error

    §

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<Error> for Error

    §

    fn from(err: Error) -> Error

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    §

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

    §

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

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    §

    impl Clone for Error

    §

    fn clone(&self) -> Error

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

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

    Performs copy-assignment from source. Read more
    §

    impl Debug for Error

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Display for Error

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Error for Error

    §

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

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

    fn description(&self) -> &str

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

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

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

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

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

    impl From<Error> for Error

    §

    fn from(err: Error) -> Error

    Converts to this type from the input type.
    source§

    impl From<Error> for Error

    source§

    fn from(original: Error) -> Error

    Converts to this type from the input type.
    §

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

    §

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

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for Twhere - T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T> ToString for T
    where + T: Display + ?Sized,

    source§

    default fn to_string(&self) -> String

    Converts the given value to a String. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_redis/enum.RespValue.html b/actix_redis/enum.RespValue.html index e2e94333f..e1a61015f 100644 --- a/actix_redis/enum.RespValue.html +++ b/actix_redis/enum.RespValue.html @@ -1,4 +1,4 @@ -RespValue in actix_redis - Rust
    pub enum RespValue {
    +RespValue in actix_redis - Rust
    pub enum RespValue {
         Nil,
         Array(Vec<RespValue>),
         BulkString(Vec<u8>),
    @@ -8,37 +8,37 @@
     }
    Expand description

    A single RESP value, this owns the data that is read/to-be written to Redis.

    It is cloneable to allow multiple copies to be delivered in certain circumstances, e.g. multiple subscribers to the same topic.

    -

    Variants§

    §

    Nil

    §

    Array(Vec<RespValue>)

    Zero, one or more other RespValues.

    +

    Variants§

    §

    Nil

    §

    Array(Vec<RespValue>)

    Zero, one or more other RespValues.

    §

    BulkString(Vec<u8>)

    A bulk string. In Redis terminology a string is a byte-array, so this is stored as a vector of u8s to allow clients to interpret the bytes as appropriate.

    §

    Error(String)

    An error from the Redis server

    §

    Integer(i64)

    Redis documentation defines an integer as being a signed 64-bit integer: https://redis.io/topics/protocol#resp-integers

    -
    §

    SimpleString(String)

    Implementations§

    §

    impl RespValue

    pub fn append<T>(self, other: impl IntoIterator<Item = T>) -> RespValuewhere - T: Into<RespValue>,

    Convenience function for building dynamic Redis commands with variable numbers of +

    §

    SimpleString(String)

    Implementations§

    §

    impl RespValue

    pub fn append<T>(self, other: impl IntoIterator<Item = T>) -> RespValue
    where + T: Into<RespValue>,

    Convenience function for building dynamic Redis commands with variable numbers of arguments, e.g. RPUSH

    This will panic if called for anything other than arrays

    -

    pub fn push<T>(&mut self, item: T)where - T: Into<RespValue>,

    Push item to Resp array

    +

    pub fn push<T>(&mut self, item: T)
    where + T: Into<RespValue>,

    Push item to Resp array

    This will panic if called for anything other than arrays

    -

    Trait Implementations§

    §

    impl Clone for RespValue

    §

    fn clone(&self) -> RespValue

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

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

    Performs copy-assignment from source. Read more
    §

    impl Debug for RespValue

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'a> From<&'a [u8]> for RespValue

    §

    fn from(from: &'a [u8]) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<&'a String> for RespValue

    §

    fn from(from: &'a String) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for RespValue

    §

    fn from(from: &'a str) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<Arc<str>> for RespValue

    §

    fn from(from: Arc<str>) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<String> for RespValue

    §

    fn from(from: String) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<Vec<u8>> for RespValue

    §

    fn from(from: Vec<u8>) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<usize> for RespValue

    §

    fn from(from: usize) -> RespValue

    Converts to this type from the input type.
    §

    impl FromResp for RespValue

    §

    fn from_resp_int(resp: RespValue) -> Result<RespValue, Error>

    §

    fn from_resp(resp: RespValue) -> Result<Self, Error>

    Return a Result containing either Self or Error. Errors can occur due to either: a) the particular +

    Trait Implementations§

    §

    impl Clone for RespValue

    §

    fn clone(&self) -> RespValue

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

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

    Performs copy-assignment from source. Read more
    §

    impl Debug for RespValue

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'a> From<&'a [u8]> for RespValue

    §

    fn from(from: &'a [u8]) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<&'a String> for RespValue

    §

    fn from(from: &'a String) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<&'a str> for RespValue

    §

    fn from(from: &'a str) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<Arc<str>> for RespValue

    §

    fn from(from: Arc<str>) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<String> for RespValue

    §

    fn from(from: String) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<Vec<u8>> for RespValue

    §

    fn from(from: Vec<u8>) -> RespValue

    Converts to this type from the input type.
    §

    impl<'a> From<usize> for RespValue

    §

    fn from(from: usize) -> RespValue

    Converts to this type from the input type.
    §

    impl FromResp for RespValue

    §

    fn from_resp_int(resp: RespValue) -> Result<RespValue, Error>

    §

    fn from_resp(resp: RespValue) -> Result<Self, Error>

    Return a Result containing either Self or Error. Errors can occur due to either: a) the particular RespValue being incompatible with the required type, or b) a remote Redis error occuring.
    §

    impl PartialEq for RespValue

    §

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

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

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

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

    impl Eq for RespValue

    §

    impl StructuralEq for RespValue

    §

    impl StructuralPartialEq for RespValue

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +sufficient, and should not be overridden without very good reason.
    §

    impl Eq for RespValue

    §

    impl StructuralEq for RespValue

    §

    impl StructuralPartialEq for RespValue

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_redis/index.html b/actix_redis/index.html index e4f8bc7ce..79bcece28 100644 --- a/actix_redis/index.html +++ b/actix_redis/index.html @@ -1,4 +1,4 @@ -actix_redis - Rust
    \ No newline at end of file diff --git a/actix_redis/macro.resp_array.html b/actix_redis/macro.resp_array.html index f183bd1cb..0d0a2b420 100644 --- a/actix_redis/macro.resp_array.html +++ b/actix_redis/macro.resp_array.html @@ -1,4 +1,4 @@ -resp_array in actix_redis - Rust
    macro_rules! resp_array {
    +resp_array in actix_redis - Rust
    macro_rules! resp_array {
         ($($e:expr),* $(,)?) => { ... };
     }
    Expand description

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

    diff --git a/actix_redis/struct.Command.html b/actix_redis/struct.Command.html index 7ce4cfa65..c67ee2b78 100644 --- a/actix_redis/struct.Command.html +++ b/actix_redis/struct.Command.html @@ -1,19 +1,19 @@ -Command in actix_redis - Rust

    Struct actix_redis::Command

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

    Command for sending data to Redis.

    -

    Tuple Fields§

    §0: RespValue

    Trait Implementations§

    source§

    impl Debug for Command

    source§

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

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

    impl Handler<Command> for RedisActor

    §

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

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

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

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

    impl Message for Command

    §

    type Result = Result<RespValue, Error>

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +Command in actix_redis - Rust

    Struct actix_redis::Command

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

    Command for sending data to Redis.

    +

    Tuple Fields§

    §0: RespValue

    Trait Implementations§

    source§

    impl Debug for Command

    source§

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

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

    impl Handler<Command> for RedisActor

    §

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

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

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

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

    impl Message for Command

    §

    type Result = Result<RespValue, Error>

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

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_redis/struct.RedisActor.html b/actix_redis/struct.RedisActor.html index 519041fad..d72d18e47 100644 --- a/actix_redis/struct.RedisActor.html +++ b/actix_redis/struct.RedisActor.html @@ -1,27 +1,27 @@ -RedisActor in actix_redis - Rust

    Struct actix_redis::RedisActor

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

    Redis communication actor.

    -

    Implementations§

    source§

    impl RedisActor

    source

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

    Start new Supervisor with RedisActor.

    -

    Trait Implementations§

    source§

    impl Actor for RedisActor

    §

    type Context = Context<RedisActor>

    Actor execution context type
    source§

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

    Called when an actor gets polled the first time.
    §

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

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

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

    Called after an actor is stopped. Read more
    §

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

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

    fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>where +RedisActor in actix_redis - Rust

    Struct actix_redis::RedisActor

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

    Redis communication actor.

    +

    Implementations§

    source§

    impl RedisActor

    source

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

    Start new Supervisor with RedisActor.

    +

    Trait Implementations§

    source§

    impl Actor for RedisActor

    §

    type Context = Context<RedisActor>

    Actor execution context type
    source§

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

    Called when an actor gets polled the first time.
    §

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

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

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

    Called after an actor is stopped. Read more
    §

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

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

    fn start_in_arbiter<F>(wrk: &ArbiterHandle, f: F) -> Addr<Self>
    where Self: Actor<Context = Context<Self>>, - F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,

    Start new actor in arbiter’s thread.
    §

    fn create<F>(f: F) -> Addr<Self>where + F: FnOnce(&mut Context<Self>) -> Self + Send + 'static,

    Start new actor in arbiter’s thread.
    §

    fn create<F>(f: F) -> Addr<Self>
    where Self: Actor<Context = Context<Self>>, - F: FnOnce(&mut Context<Self>) -> Self,

    Start a new asynchronous actor given a Context. Read more
    source§

    impl Handler<Command> for RedisActor

    §

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

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

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

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

    impl StreamHandler<Result<RespValue, Error>> for RedisActor

    source§

    fn handle(&mut self, msg: Result<RespValue, RespError>, ctx: &mut Self::Context)

    Called for every message emitted by the stream.
    §

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

    Called when stream emits first item. Read more
    §

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

    Called when stream finishes. Read more
    §

    fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere + F: FnOnce(&mut Context<Self>) -> Self,

    Start a new asynchronous actor given a Context. Read more
    source§

    impl Handler<Command> for RedisActor

    §

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

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

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

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

    impl StreamHandler<Result<RespValue, Error>> for RedisActor

    source§

    fn handle(&mut self, msg: Result<RespValue, RespError>, ctx: &mut Self::Context)

    Called for every message emitted by the stream.
    §

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

    Called when stream emits first item. Read more
    §

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

    Called when stream finishes. Read more
    §

    fn add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandle
    where S: Stream + 'static, Self: StreamHandler<<S as Stream>::Item>, - Self::Context: AsyncContext<Self>,

    Register a Stream to the actor context.
    source§

    impl Supervised for RedisActor

    source§

    fn restarting(&mut self, _: &mut Self::Context)

    Called when the supervisor restarts a failed actor.
    source§

    impl WriteHandler<Error> for RedisActor

    source§

    fn error(&mut self, err: Error, _: &mut Self::Context) -> Running

    Called when the writer emits error. Read more
    §

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

    Called when the writer finishes. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    + Self::Context: AsyncContext<Self>,
    Register a Stream to the actor context.
    source§

    impl Supervised for RedisActor

    source§

    fn restarting(&mut self, _: &mut Self::Context)

    Called when the supervisor restarts a failed actor.
    source§

    impl WriteHandler<Error> for RedisActor

    source§

    fn error(&mut self, err: Error, _: &mut Self::Context) -> Running

    Called when the writer emits error. Read more
    §

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

    Called when the writer finishes. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/all.html b/actix_session/all.html index 348d40d16..f2962c80c 100644 --- a/actix_session/all.html +++ b/actix_session/all.html @@ -1 +1 @@ -List of all items in this crate
    \ No newline at end of file +List of all items in this crate
    \ No newline at end of file diff --git a/actix_session/config/enum.CookieContentSecurity.html b/actix_session/config/enum.CookieContentSecurity.html index d02315a8f..91fdc6861 100644 --- a/actix_session/config/enum.CookieContentSecurity.html +++ b/actix_session/config/enum.CookieContentSecurity.html @@ -1,29 +1,29 @@ -CookieContentSecurity in actix_session::config - Rust
    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.

    Used by SessionMiddlewareBuilder::cookie_content_security.

    -

    Variants§

    §

    Private

    The cookie content is encrypted when using CookieContentSecurity::Private.

    +

    Variants§

    §

    Private

    The cookie content is encrypted when using CookieContentSecurity::Private.

    Encryption guarantees confidentiality and integrity: the client cannot tamper with the cookie content nor decode it, as long as the encryption key remains confidential.

    §

    Signed

    The cookie content is signed when using CookieContentSecurity::Signed.

    Signing guarantees integrity, but it doesn’t ensure confidentiality: the client cannot tamper with the cookie content, but they can read it.

    -

    Trait Implementations§

    source§

    impl Clone for CookieContentSecurity

    source§

    fn clone(&self) -> CookieContentSecurity

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CookieContentSecurity

    source§

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

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

    impl Copy for CookieContentSecurity

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for CookieContentSecurity

    source§

    fn clone(&self) -> CookieContentSecurity

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for CookieContentSecurity

    source§

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

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

    impl Copy for CookieContentSecurity

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/config/enum.SessionLifecycle.html b/actix_session/config/enum.SessionLifecycle.html index dfd41000a..d9ea710c9 100644 --- a/actix_session/config/enum.SessionLifecycle.html +++ b/actix_session/config/enum.SessionLifecycle.html @@ -1,9 +1,9 @@ -SessionLifecycle in actix_session::config - Rust
    #[non_exhaustive]
    pub enum SessionLifecycle { +SessionLifecycle in actix_session::config - Rust
    #[non_exhaustive]
    pub enum SessionLifecycle { BrowserSession(BrowserSession), PersistentSession(PersistentSession), }
    Expand description

    Determines what type of session cookie should be used and how its lifecycle should be managed.

    Used by SessionMiddlewareBuilder::session_lifecycle.

    -

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    BrowserSession(BrowserSession)

    The session cookie will expire when the current browser session ends.

    +

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    BrowserSession(BrowserSession)

    The session cookie will expire when the current browser 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 and they will still be available when the browser is opened again. @@ -11,21 +11,21 @@ Check the documentation of the browsers you are targeting for up-to-date informa

    §

    PersistentSession(PersistentSession)

    The session cookie will be a persistent cookie.

    Persistent cookies have a pre-determined lifetime, specified via the Max-Age or Expires attribute. They do not disappear when the current browser session ends.

    -

    Trait Implementations§

    source§

    impl Clone for SessionLifecycle

    source§

    fn clone(&self) -> SessionLifecycle

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SessionLifecycle

    source§

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

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

    impl From<BrowserSession> for SessionLifecycle

    source§

    fn from(original: BrowserSession) -> SessionLifecycle

    Converts to this type from the input type.
    source§

    impl From<PersistentSession> for SessionLifecycle

    source§

    fn from(original: PersistentSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for SessionLifecycle

    source§

    fn clone(&self) -> SessionLifecycle

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SessionLifecycle

    source§

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

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

    impl From<BrowserSession> for SessionLifecycle

    source§

    fn from(original: BrowserSession) -> SessionLifecycle

    Converts to this type from the input type.
    source§

    impl From<PersistentSession> for SessionLifecycle

    source§

    fn from(original: PersistentSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/config/enum.TtlExtensionPolicy.html b/actix_session/config/enum.TtlExtensionPolicy.html index 4817284c6..893aee0ec 100644 --- a/actix_session/config/enum.TtlExtensionPolicy.html +++ b/actix_session/config/enum.TtlExtensionPolicy.html @@ -1,4 +1,4 @@ -TtlExtensionPolicy in actix_session::config - Rust
    #[non_exhaustive]
    pub enum TtlExtensionPolicy { +TtlExtensionPolicy in actix_session::config - Rust
    #[non_exhaustive]
    pub enum TtlExtensionPolicy { OnEveryRequest, OnStateChanges, }
    Expand description

    Configuration for which events should trigger an extension of the time-to-live for your session.

    @@ -7,7 +7,7 @@ session state should be refreshed. The browser is in control of the lifecycle of cookie.

    If you are using a PersistentSession, TtlExtensionPolicy controls both the expiration of the session cookie and the TTL of the session state on the storage backend.

    -

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    OnEveryRequest

    The TTL is refreshed every time the server receives a request associated with a session.

    +

    Variants (Non-exhaustive)§

    This enum is marked as non-exhaustive
    Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
    §

    OnEveryRequest

    The TTL is refreshed every time the server receives a request associated with a session.

    Performance impact

    Refreshing the TTL on every request is not free. It implies a refresh of the TTL on the session state. This translates into a request over the network if you are using a remote @@ -15,21 +15,21 @@ system as storage backend (e.g. Redis). This impacts both the total load on your backend (i.e. number of queries it has to handle) and the latency of the requests served by your server.

    §

    OnStateChanges

    The TTL is refreshed every time the session state changes or the session key is renewed.

    -

    Trait Implementations§

    source§

    impl Clone for TtlExtensionPolicy

    source§

    fn clone(&self) -> TtlExtensionPolicy

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for TtlExtensionPolicy

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for TtlExtensionPolicy

    source§

    fn clone(&self) -> TtlExtensionPolicy

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for TtlExtensionPolicy

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/config/index.html b/actix_session/config/index.html index fd8c0885f..9a86c4506 100644 --- a/actix_session/config/index.html +++ b/actix_session/config/index.html @@ -1,3 +1,3 @@ -actix_session::config - Rust

    Module actix_session::config

    source ·
    Expand description

    Configuration options to tune the behaviour of SessionMiddleware.

    -

    Structs

    Enums

    • 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.
    \ No newline at end of file +actix_session::config - Rust

    Module actix_session::config

    source ·
    Expand description

    Configuration options to tune the behaviour of SessionMiddleware.

    +

    Structs

    Enums

    • 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.
    \ No newline at end of file diff --git a/actix_session/config/struct.BrowserSession.html b/actix_session/config/struct.BrowserSession.html index 67200504d..62cd06aa2 100644 --- a/actix_session/config/struct.BrowserSession.html +++ b/actix_session/config/struct.BrowserSession.html @@ -1,4 +1,4 @@ -BrowserSession in actix_session::config - Rust
    pub struct BrowserSession { /* private fields */ }
    Expand description

    A session lifecycle strategy where the session cookie expires when the +BrowserSession in actix_session::config - Rust

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

    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 @@ -6,7 +6,7 @@ and they will still be available when the browser is opened again. Check the doc the browsers you are targeting for up-to-date information.

    Due to its Into<SessionLifecycle> implementation, a BrowserSession can be passed directly to SessionMiddlewareBuilder::session_lifecycle().

    -

    Implementations§

    source§

    impl BrowserSession

    source

    pub fn state_ttl(self, ttl: Duration) -> Self

    Sets a time-to-live (TTL) when storing the session state in the storage backend.

    +

    Implementations§

    source§

    impl BrowserSession

    source

    pub fn state_ttl(self, ttl: Duration) -> Self

    Sets a time-to-live (TTL) when storing the session state in the storage backend.

    We do not want to store session states indefinitely, otherwise we will inevitably run out of storage by holding on to the state of countless abandoned or expired sessions!

    We are dealing with the lifecycle of two uncorrelated object here: the session cookie @@ -28,21 +28,21 @@ specifying a more aggressive state TTL extension policy - check out ) -> Self

    Determine under what circumstances the TTL of your session state should be extended.

    Defaults to TtlExtensionPolicy::OnStateChanges if left unspecified.

    See TtlExtensionPolicy for more details.

    -

    Trait Implementations§

    source§

    impl Clone for BrowserSession

    source§

    fn clone(&self) -> BrowserSession

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BrowserSession

    source§

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

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

    impl Default for BrowserSession

    source§

    fn default() -> Self

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

    impl From<BrowserSession> for SessionLifecycle

    source§

    fn from(original: BrowserSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for BrowserSession

    source§

    fn clone(&self) -> BrowserSession

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for BrowserSession

    source§

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

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

    impl Default for BrowserSession

    source§

    fn default() -> Self

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

    impl From<BrowserSession> for SessionLifecycle

    source§

    fn from(original: BrowserSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/config/struct.PersistentSession.html b/actix_session/config/struct.PersistentSession.html index f630d9183..e26eab62c 100644 --- a/actix_session/config/struct.PersistentSession.html +++ b/actix_session/config/struct.PersistentSession.html @@ -1,4 +1,4 @@ -PersistentSession in actix_session::config - Rust
    pub struct PersistentSession { /* private fields */ }
    Expand description

    A session lifecycle strategy where the session cookie will be persistent.

    +PersistentSession in actix_session::config - Rust
    pub struct PersistentSession { /* private fields */ }
    Expand description

    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.

    Due to its Into<SessionLifecycle> implementation, a PersistentSession can be passed directly @@ -17,7 +17,7 @@ to PersistentSession::default() // this policy causes the session state's TTL to be refreshed on every request .session_ttl_extension_policy(TtlExtensionPolicy::OnEveryRequest);

    -

    Implementations§

    source§

    impl PersistentSession

    source

    pub fn session_ttl(self, session_ttl: Duration) -> Self

    Specifies how long the session cookie should live.

    +

    Implementations§

    source§

    impl PersistentSession

    source

    pub fn session_ttl(self, session_ttl: Duration) -> Self

    Specifies how long the session cookie should live.

    The session TTL is also used as the TTL for the session state in the storage backend.

    Defaults to 1 day.

    A persistent session can live more than the specified TTL if the TTL is extended. @@ -28,21 +28,21 @@ See

    Trait Implementations§

    source§

    impl Clone for PersistentSession

    source§

    fn clone(&self) -> PersistentSession

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PersistentSession

    source§

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

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

    impl Default for PersistentSession

    source§

    fn default() -> Self

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

    impl From<PersistentSession> for SessionLifecycle

    source§

    fn from(original: PersistentSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Trait Implementations§

    source§

    impl Clone for PersistentSession

    source§

    fn clone(&self) -> PersistentSession

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for PersistentSession

    source§

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

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

    impl Default for PersistentSession

    source§

    fn default() -> Self

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

    impl From<PersistentSession> for SessionLifecycle

    source§

    fn from(original: PersistentSession) -> SessionLifecycle

    Converts to this type from the input type.

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/config/struct.SessionMiddlewareBuilder.html b/actix_session/config/struct.SessionMiddlewareBuilder.html index 3f9c17261..b07efb8bf 100644 --- a/actix_session/config/struct.SessionMiddlewareBuilder.html +++ b/actix_session/config/struct.SessionMiddlewareBuilder.html @@ -1,5 +1,5 @@ -SessionMiddlewareBuilder in actix_session::config - Rust
    pub struct SessionMiddlewareBuilder<Store: SessionStore> { /* private fields */ }
    Expand description

    A fluent, customized SessionMiddleware builder.

    -

    Implementations§

    source§

    impl<Store: SessionStore> SessionMiddlewareBuilder<Store>

    source

    pub fn cookie_name(self, name: String) -> Self

    Set the name of the cookie used to store the session ID.

    +SessionMiddlewareBuilder in actix_session::config - Rust
    pub struct SessionMiddlewareBuilder<Store: SessionStore> { /* private fields */ }
    Expand description

    A fluent, customized SessionMiddleware builder.

    +

    Implementations§

    source§

    impl<Store: SessionStore> SessionMiddlewareBuilder<Store>

    source

    pub fn cookie_name(self, name: String) -> Self

    Set the name of the cookie used to store the session ID.

    Defaults to id.

    source

    pub fn cookie_secure(self, secure: bool) -> Self

    Set the Secure attribute for the cookie used to store the session ID.

    If the cookie is set as secure, it will only be transmitted when the connection is secure @@ -53,25 +53,25 @@ tamper-proof session key.

    running in the browser.

    Default is true.

    source

    pub fn build(self) -> SessionMiddleware<Store>

    Finalise the builder and return a SessionMiddleware instance.

    -

    Auto Trait Implementations§

    §

    impl<Store> RefUnwindSafe for SessionMiddlewareBuilder<Store>where - Store: RefUnwindSafe,

    §

    impl<Store> Send for SessionMiddlewareBuilder<Store>where - Store: Send,

    §

    impl<Store> Sync for SessionMiddlewareBuilder<Store>where - Store: Sync,

    §

    impl<Store> Unpin for SessionMiddlewareBuilder<Store>where - Store: Unpin,

    §

    impl<Store> UnwindSafe for SessionMiddlewareBuilder<Store>where - Store: UnwindSafe,

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +

    Auto Trait Implementations§

    §

    impl<Store> RefUnwindSafe for SessionMiddlewareBuilder<Store>
    where + Store: RefUnwindSafe,

    §

    impl<Store> Send for SessionMiddlewareBuilder<Store>
    where + Store: Send,

    §

    impl<Store> Sync for SessionMiddlewareBuilder<Store>
    where + Store: Sync,

    §

    impl<Store> Unpin for SessionMiddlewareBuilder<Store>
    where + Store: Unpin,

    §

    impl<Store> UnwindSafe for SessionMiddlewareBuilder<Store>
    where + Store: UnwindSafe,

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/enum.SessionStatus.html b/actix_session/enum.SessionStatus.html index 8fc37cd33..d9538a169 100644 --- a/actix_session/enum.SessionStatus.html +++ b/actix_session/enum.SessionStatus.html @@ -1,10 +1,10 @@ -SessionStatus in actix_session - Rust
    pub enum SessionStatus {
    +SessionStatus in actix_session - Rust
    pub enum SessionStatus {
         Changed,
         Purged,
         Renewed,
         Unchanged,
     }
    Expand description

    Status of a Session.

    -

    Variants§

    §

    Changed

    Session state has been updated - the changes will have to be persisted to the backend.

    +

    Variants§

    §

    Changed

    Session state has been updated - the changes will have to be persisted to the backend.

    §

    Purged

    The session has been flagged for deletion - the session cookie will be removed from the client and the session state will be deleted from the session store.

    Most operations on the session after it has been marked for deletion will have no effect.

    @@ -12,23 +12,23 @@ the client and the session state will be deleted from the session store.

    The session key will be regenerated and the time-to-live of the session state will be extended.

    §

    Unchanged

    The session state has not been modified since its creation/retrieval.

    -

    Trait Implementations§

    source§

    impl Clone for SessionStatus

    source§

    fn clone(&self) -> SessionStatus

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SessionStatus

    source§

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

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

    impl Default for SessionStatus

    source§

    fn default() -> SessionStatus

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

    impl PartialEq for SessionStatus

    source§

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

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

    Trait Implementations§

    source§

    impl Clone for SessionStatus

    source§

    fn clone(&self) -> SessionStatus

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

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

    Performs copy-assignment from source. Read more
    source§

    impl Debug for SessionStatus

    source§

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

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

    impl Default for SessionStatus

    source§

    fn default() -> SessionStatus

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

    impl PartialEq for SessionStatus

    source§

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

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

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

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

    impl Eq for SessionStatus

    source§

    impl StructuralEq for SessionStatus

    source§

    impl StructuralPartialEq for SessionStatus

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

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

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

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

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    +sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for SessionStatus

    source§

    impl StructuralEq for SessionStatus

    source§

    impl StructuralPartialEq for SessionStatus

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    source§

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    source§

    impl<T> Borrow<T> for T
    where + T: ?Sized,

    source§

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    source§

    impl<T> BorrowMut<T> for T
    where + T: ?Sized,

    source§

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

    Mutably borrows from an owned value. Read more
    source§

    impl<T> From<T> for T

    source§

    fn from(t: T) -> T

    Returns the argument unchanged.

    §

    impl<T> Instrument for T

    §

    fn instrument(self, span: Span) -> Instrumented<Self>

    Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
    §

    fn in_current_span(self) -> Instrumented<Self>

    Instruments this type with the current Span, returning an -Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for Twhere - U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    +Instrumented wrapper. Read more
    source§

    impl<T, U> Into<U> for T
    where + U: From<T>,

    source§

    fn into(self) -> U

    Calls U::from(self).

    That is, this conversion is whatever the implementation of From<T> for U chooses to do.

    -
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for Twhere - T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for Twhere - U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for Twhere - U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    impl<V, T> VZip<V> for Twhere - 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>,

    Attaches the provided Subscriber to this type, returning a +
    source§

    impl<T> Same for T

    §

    type Output = T

    Should always be Self
    source§

    impl<T> ToOwned for T
    where + T: Clone,

    §

    type Owned = T

    The resulting type after obtaining ownership.
    source§

    fn to_owned(&self) -> T

    Creates owned data from borrowed data, usually by cloning. Read more
    source§

    fn clone_into(&self, target: &mut T)

    Uses borrowed data to replace owned data, usually by cloning. Read more
    source§

    impl<T, U> TryFrom<U> for T
    where + U: Into<T>,

    §

    type Error = Infallible

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

    fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

    Performs the conversion.
    source§

    impl<T, U> TryInto<U> for T
    where + U: TryFrom<T>,

    §

    type Error = <U as TryFrom<T>>::Error

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

    fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

    Performs the conversion.
    §

    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>,

    Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
    §

    fn 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 diff --git a/actix_session/index.html b/actix_session/index.html index c5951d624..1bf85f195 100644 --- a/actix_session/index.html +++ b/actix_session/index.html @@ -1,4 +1,4 @@ -actix_session - Rust