diff --git a/actix_cors/all.html b/actix_cors/all.html index 8bf2230cf..34031435a 100644 --- a/actix_cors/all.html +++ b/actix_cors/all.html @@ -1 +1 @@ -
#[non_exhaustive]
-pub enum CorsError {
+CorsError in actix_cors - Rust Enum actix_cors::CorsError
source · #[non_exhaustive]pub enum CorsError {
WildcardOrigin,
MissingOrigin,
MissingRequestMethod,
@@ -17,24 +16,22 @@ pub enum CorsError {
§OriginNotAllowed
Origin is not allowed to make this request.
§MethodNotAllowed
Request method is not allowed.
§HeadersNotAllowed
One or more request headers are not allowed.
-
Subscriber
to this type, returning a
+Cross-Origin Resource Sharing (CORS) controls for Actix Web.
+Cross-Origin Resource Sharing (CORS) controls for Actix Web.
This middleware can be applied to both applications and resources. Once built, a Cors
builder can be used as an argument for Actix Web’s App::wrap()
, Scope::wrap()
, or
Resource::wrap()
methods.
pub use middleware::CorsMiddleware;
pub struct Cors { /* private fields */ }
Builder for CORS middleware.
+pub struct Cors { /* private fields */ }
Builder for CORS middleware.
To construct a CORS middleware, call Cors::default()
to create a blank, restrictive builder.
Then use any of the builder methods to customize CORS behavior.
The alternative Cors::permissive()
constructor is available for local development, allowing
@@ -20,12 +20,12 @@ server will fail to start up or serve requests.
A very permissive set of default for quick development. Not recommended for production use.
+A very permissive set of default 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.
-Resets allowed origin list to a state where any origin is accepted.
+Resets allowed origin list to a state where any origin is accepted.
See Cors::allowed_origin
for more info on allowed origins.
Add an origin that is allowed to make requests.
+Add an origin that is allowed to make requests.
This method allows specifying a finite set of origins to verify the value of the Origin
request header. These are origin-or-null
types in the Fetch Standard.
By default, no origins are accepted.
@@ -43,29 +43,29 @@ allowed origins.*
). Cors::send_wildcard
should be used instead.Determinate 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.
If the function returns true
, the client’s Origin
request header will be echoed back
into the Access-Control-Allow-Origin
response header.
Resets allowed methods list to all methods.
+Resets allowed methods list to all methods.
See Cors::allowed_methods
for more info on allowed methods.
Set a list of methods which allowed origins can perform.
These will be sent in the Access-Control-Allow-Methods
response header as specified in
the Fetch Standard CORS protocol.
This defaults to an empty set.
-Resets allowed request header list to a state where any header is accepted.
+Resets allowed request header list to a state where any header is accepted.
See Cors::allowed_headers
for more info on allowed request headers.
Add an allowed request header.
See Cors::allowed_headers
for more info on allowed request headers.
Set a list of request header field names which can be used when this resource is accessed by @@ -74,19 +74,19 @@ allowed origins.
will be echoed back in theAccess-Control-Allow-Headers
header as specified in
the Fetch Standard CORS protocol.
This defaults to an empty set.
-Resets exposed response header list to a state where all headers are exposed.
+Resets exposed response header list to a state where all headers are exposed.
See Cors::expose_headers
for more info on exposed response headers.
Set 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 as specified in
the Fetch Standard CORS protocol.
This defaults to an empty set.
-Set a maximum time (in seconds) for which this CORS request may be cached. This value is set +
Set a maximum time (in seconds) for which this CORS request may be cached. This value is set
as the Access-Control-Max-Age
header as specified in the Fetch Standard CORS protocol.
Pass a number (of seconds) or use None to disable sending max age header.
-Set to use wildcard origins.
+Set to use wildcard origins.
If send wildcard is set and the allowed_origins
parameter is All
, a wildcard
Access-Control-Allow-Origin
response header is sent, rather than the request’s
Origin
header.
Access-Control-Max-Age
header as specified in the Allows users to make authenticated requests
+Allows users to make authenticated requests
If true, injects the Access-Control-Allow-Credentials
header in responses. This allows
cookies and credentials to be submitted across domains as specified in
the Fetch Standard CORS protocol.
Defaults to false
.
A server initialization error will occur if credentials are allowed, but the Origin is set
to send wildcards (*
); this is not allowed by the CORS protocol.
Allow private network access.
+Allow private network access.
If true, injects the Access-Control-Allow-Private-Network: true
header in responses if the
request contained the Access-Control-Request-Private-Network: true
header.
For more information on this behavior, see the draft Private Network Access spec.
Defaults to false
.
Disable Vary
header support.
Disable Vary
header support.
When enabled the header Vary: Origin
will be returned as per the Fetch Standard
implementation guidelines.
Setting this header when the Access-Control-Allow-Origin
is dynamically generated
(eg. when there is more than one allowed origin, and an Origin other than ‘*’ is returned)
informs CDNs and other caches that the CORS headers are dynamic, and cannot be cached.
By default, Vary
header support is enabled.
Disable support for preflight requests.
+Disable support for preflight requests.
When enabled CORS middleware automatically handles OPTIONS
requests.
This is useful for application level middleware.
By default preflight support is enabled.
-Configures whether requests should be pre-emptively blocked on mismatched origin.
+Configures whether requests should be pre-emptively blocked on mismatched origin.
If true
, a 400 Bad Request is returned immediately when a request fails origin validation.
If false
, the request will be processed as normal but relevant CORS headers will not be
appended to the response. In this case, the browser is trusted to validate CORS headers and
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
.
Calls U::from(self)
.
Subscriber
to this type, returning a
+#[non_exhaustive]
-pub enum LogoutBehaviour {
+LogoutBehaviour in actix_identity::config - Rust Enum actix_identity::config::LogoutBehaviour
source · #[non_exhaustive]pub enum LogoutBehaviour {
PurgeSession,
DeleteIdentityKeys,
}
Expand description
LogoutBehaviour
controls what actions are going to be performed when Identity::logout
is
@@ -11,21 +10,21 @@ session state that are tied to the user’s identity and should not be retained
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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for LogoutBehaviour
§impl Send for LogoutBehaviour
§impl Sync for LogoutBehaviour
§impl Unpin for LogoutBehaviour
§impl UnwindSafe for LogoutBehaviour
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Clone for LogoutBehaviour
source§fn clone(&self) -> LogoutBehaviour
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for LogoutBehaviour
§impl Send for LogoutBehaviour
§impl Sync for LogoutBehaviour
§impl Unpin for LogoutBehaviour
§impl UnwindSafe for LogoutBehaviour
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/config/index.html b/actix_identity/config/index.html
index cedf3dea5..a983cd240 100644
--- a/actix_identity/config/index.html
+++ b/actix_identity/config/index.html
@@ -1,4 +1,4 @@
-actix_identity::config - Rust Module actix_identity::config
source · Expand description
Configuration options to tune the behaviour of IdentityMiddleware
.
+actix_identity::config - Rust Module actix_identity::config
source · Expand description
Configuration options to tune the behaviour of IdentityMiddleware
.
Structs
- A fluent builder to construct an
IdentityMiddleware
instance with custom configuration
parameters.
Enums
LogoutBehaviour
controls what actions are going to be performed when Identity::logout
is
invoked.
\ No newline at end of file
diff --git a/actix_identity/config/struct.IdentityMiddlewareBuilder.html b/actix_identity/config/struct.IdentityMiddlewareBuilder.html
index 7fe6f38fe..104c1fdf3 100644
--- a/actix_identity/config/struct.IdentityMiddlewareBuilder.html
+++ b/actix_identity/config/struct.IdentityMiddlewareBuilder.html
@@ -1,9 +1,9 @@
-IdentityMiddlewareBuilder in actix_identity::config - Rust Struct actix_identity::config::IdentityMiddlewareBuilder
source · pub struct IdentityMiddlewareBuilder { /* private fields */ }
Expand description
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
+
IdentityMiddlewareBuilder in actix_identity::config - Rust Struct actix_identity::config::IdentityMiddlewareBuilder
source · pub struct IdentityMiddlewareBuilder { /* private fields */ }
Expand description
A fluent builder to construct an IdentityMiddleware
instance with custom configuration
parameters.
Use IdentityMiddleware::builder
to get started!
-Implementations§
source§impl IdentityMiddlewareBuilder
sourcepub fn logout_behaviour(self, logout_behaviour: LogoutBehaviour) -> Self
Determines how Identity::logout
affects the current session.
+Implementations§
source§impl IdentityMiddlewareBuilder
sourcepub fn logout_behaviour(self, logout_behaviour: LogoutBehaviour) -> Self
Determines how Identity::logout
affects the current session.
By default, the current session is purged (LogoutBehaviour::PurgeSession
).
-sourcepub fn login_deadline(self, deadline: Option<Duration>) -> Self
Automatically logs out users after a certain amount of time has passed since they logged in,
+
sourcepub fn login_deadline(self, deadline: Option<Duration>) -> Self
Automatically logs out users after a certain amount of time has passed since they logged in,
regardless of their activity pattern.
If set to:
@@ -12,7 +12,7 @@ regardless of their activity pattern.
has passed since their login.
By default, login deadline is disabled.
-sourcepub fn visit_deadline(self, deadline: Option<Duration>) -> Self
Automatically logs out users after a certain amount of time has passed since their last
+
sourcepub fn visit_deadline(self, deadline: Option<Duration>) -> Self
Automatically logs out users after a certain amount of time has passed since their last
visit.
If set to:
@@ -21,22 +21,22 @@ visit.
has passed since their last visit.
By default, visit deadline is disabled.
-sourcepub 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for IdentityMiddlewareBuilder
§impl Send for IdentityMiddlewareBuilder
§impl Sync for IdentityMiddlewareBuilder
§impl Unpin for IdentityMiddlewareBuilder
§impl UnwindSafe for IdentityMiddlewareBuilder
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
Trait Implementations§
source§impl Clone for IdentityMiddlewareBuilder
source§fn clone(&self) -> IdentityMiddlewareBuilder
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for IdentityMiddlewareBuilder
§impl Send for IdentityMiddlewareBuilder
§impl Sync for IdentityMiddlewareBuilder
§impl Unpin for IdentityMiddlewareBuilder
§impl UnwindSafe for IdentityMiddlewareBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/error/enum.GetIdentityError.html b/actix_identity/error/enum.GetIdentityError.html
index ac1a82fb1..d5af35252 100644
--- a/actix_identity/error/enum.GetIdentityError.html
+++ b/actix_identity/error/enum.GetIdentityError.html
@@ -1,5 +1,4 @@
-GetIdentityError in actix_identity::error - Rust Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]
-pub enum GetIdentityError {
+GetIdentityError in actix_identity::error - Rust Enum actix_identity::error::GetIdentityError
source · #[non_exhaustive]pub enum GetIdentityError {
SessionExpiryError(SessionExpiryError),
MissingIdentityError(MissingIdentityError),
SessionGetError(SessionGetError),
@@ -10,23 +9,21 @@ pub enum GetIdentityError {
§SessionGetError(SessionGetError)
Failed to accessing the session store.
§LostIdentityError(LostIdentityError)
Identity info was lost after being validated.
Seeing this error indicates a bug in actix-identity.
-
Trait Implementations§
source§impl Debug for GetIdentityError
source§impl Display for GetIdentityError
source§impl Error for GetIdentityError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionGetError> for GetIdentityError
source§fn from(original: SessionGetError) -> GetIdentityError
Converts to this type from the input type.source§impl ResponseError for GetIdentityError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for GetIdentityError
§impl Send for GetIdentityError
§impl Sync for GetIdentityError
§impl Unpin for GetIdentityError
§impl !UnwindSafe for GetIdentityError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Debug for GetIdentityError
source§impl Display for GetIdentityError
source§impl Error for GetIdentityError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.source§impl From<SessionGetError> for GetIdentityError
source§fn from(original: SessionGetError) -> GetIdentityError
Converts to this type from the input type.source§impl ResponseError for GetIdentityError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for GetIdentityError
§impl Send for GetIdentityError
§impl Sync for GetIdentityError
§impl Unpin for GetIdentityError
§impl UnwindSafe for GetIdentityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/error/index.html b/actix_identity/error/index.html
index 2c647dac2..a1237a449 100644
--- a/actix_identity/error/index.html
+++ b/actix_identity/error/index.html
@@ -1,2 +1,2 @@
-actix_identity::error - Rust Module actix_identity::error
source · Expand description
Failure modes of identity operations.
+actix_identity::error - Rust Module actix_identity::error
source · Expand description
Failure modes of identity operations.
Structs
- Error that can occur during login attempts.
- The identity information has been lost.
- There is no identity information attached to the current session.
- Error encountered when working with a session that has expired.
Enums
- Errors that can occur while retrieving an identity.
\ No newline at end of file
diff --git a/actix_identity/error/struct.LoginError.html b/actix_identity/error/struct.LoginError.html
index 93293a1fa..3356cbf37 100644
--- a/actix_identity/error/struct.LoginError.html
+++ b/actix_identity/error/struct.LoginError.html
@@ -1,21 +1,19 @@
-LoginError in actix_identity::error - Rust Struct actix_identity::error::LoginError
source · pub struct LoginError(_);
Expand description
Error that can occur during login attempts.
-Trait Implementations§
source§impl Debug for LoginError
source§impl Display for LoginError
source§impl Error for LoginError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionInsertError> for LoginError
source§fn from(original: SessionInsertError) -> LoginError
Converts to this type from the input type.source§impl ResponseError for LoginError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for LoginError
§impl Send for LoginError
§impl Sync for LoginError
§impl Unpin for LoginError
§impl !UnwindSafe for LoginError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+LoginError in actix_identity::error - Rust Struct actix_identity::error::LoginError
source · pub struct LoginError(/* private fields */);
Expand description
Error that can occur during login attempts.
+Trait Implementations§
source§impl Debug for LoginError
source§impl Display for LoginError
source§impl Error for LoginError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionInsertError> for LoginError
source§fn from(original: SessionInsertError) -> LoginError
Converts to this type from the input type.source§impl ResponseError for LoginError
source§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for LoginError
§impl Send for LoginError
§impl Sync for LoginError
§impl Unpin for LoginError
§impl UnwindSafe for LoginError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/error/struct.LostIdentityError.html b/actix_identity/error/struct.LostIdentityError.html
index e1d618446..b9faa6ded 100644
--- a/actix_identity/error/struct.LostIdentityError.html
+++ b/actix_identity/error/struct.LostIdentityError.html
@@ -1,22 +1,20 @@
-LostIdentityError in actix_identity::error - Rust Struct actix_identity::error::LostIdentityError
source · #[non_exhaustive]pub struct LostIdentityError;
Expand description
The identity information has been lost.
+LostIdentityError in actix_identity::error - Rust Struct actix_identity::error::LostIdentityError
source · #[non_exhaustive]pub struct LostIdentityError;
Expand description
The identity information has been lost.
Seeing this error in user code indicates a bug in actix-identity.
-Trait Implementations§
source§impl Debug for LostIdentityError
source§impl Display for LostIdentityError
source§impl Error for LostIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for LostIdentityError
§impl Send for LostIdentityError
§impl Sync for LostIdentityError
§impl Unpin for LostIdentityError
§impl UnwindSafe for LostIdentityError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Debug for LostIdentityError
source§impl Display for LostIdentityError
source§impl Error for LostIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<LostIdentityError> for GetIdentityError
source§fn from(original: LostIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for LostIdentityError
§impl Send for LostIdentityError
§impl Sync for LostIdentityError
§impl Unpin for LostIdentityError
§impl UnwindSafe for LostIdentityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/error/struct.MissingIdentityError.html b/actix_identity/error/struct.MissingIdentityError.html
index 608201ef4..ca8fd38d6 100644
--- a/actix_identity/error/struct.MissingIdentityError.html
+++ b/actix_identity/error/struct.MissingIdentityError.html
@@ -1,21 +1,19 @@
-MissingIdentityError in actix_identity::error - Rust Struct actix_identity::error::MissingIdentityError
source · #[non_exhaustive]pub struct MissingIdentityError;
Expand description
There is no identity information attached to the current session.
-Trait Implementations§
source§impl Debug for MissingIdentityError
source§impl Display for MissingIdentityError
source§impl Error for MissingIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for MissingIdentityError
§impl Send for MissingIdentityError
§impl Sync for MissingIdentityError
§impl Unpin for MissingIdentityError
§impl UnwindSafe for MissingIdentityError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+MissingIdentityError in actix_identity::error - Rust Struct actix_identity::error::MissingIdentityError
source · #[non_exhaustive]pub struct MissingIdentityError;
Expand description
There is no identity information attached to the current session.
+Trait Implementations§
source§impl Debug for MissingIdentityError
source§impl Display for MissingIdentityError
source§impl Error for MissingIdentityError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<MissingIdentityError> for GetIdentityError
source§fn from(original: MissingIdentityError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for MissingIdentityError
§impl Send for MissingIdentityError
§impl Sync for MissingIdentityError
§impl Unpin for MissingIdentityError
§impl UnwindSafe for MissingIdentityError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/error/struct.SessionExpiryError.html b/actix_identity/error/struct.SessionExpiryError.html
index ce47fd2f9..143784c88 100644
--- a/actix_identity/error/struct.SessionExpiryError.html
+++ b/actix_identity/error/struct.SessionExpiryError.html
@@ -1,21 +1,19 @@
-SessionExpiryError in actix_identity::error - Rust Struct actix_identity::error::SessionExpiryError
source · pub struct SessionExpiryError(_);
Expand description
Error encountered when working with a session that has expired.
-Trait Implementations§
source§impl Debug for SessionExpiryError
source§impl Display for SessionExpiryError
source§impl Error for SessionExpiryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for SessionExpiryError
§impl Send for SessionExpiryError
§impl Sync for SessionExpiryError
§impl Unpin for SessionExpiryError
§impl UnwindSafe for SessionExpiryError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+SessionExpiryError in actix_identity::error - Rust Struct actix_identity::error::SessionExpiryError
source · pub struct SessionExpiryError(/* private fields */);
Expand description
Error encountered when working with a session that has expired.
+Trait Implementations§
source§impl Debug for SessionExpiryError
source§impl Display for SessionExpiryError
source§impl Error for SessionExpiryError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl From<SessionExpiryError> for GetIdentityError
source§fn from(original: SessionExpiryError) -> GetIdentityError
Converts to this type from the input type.Auto Trait Implementations§
§impl RefUnwindSafe for SessionExpiryError
§impl Send for SessionExpiryError
§impl Sync for SessionExpiryError
§impl Unpin for SessionExpiryError
§impl UnwindSafe for SessionExpiryError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/index.html b/actix_identity/index.html
index 7ddae01f6..b7f7c85c3 100644
--- a/actix_identity/index.html
+++ b/actix_identity/index.html
@@ -1,4 +1,4 @@
-actix_identity - Rust Crate actix_identity
source · Expand description
Identity management for Actix Web.
+actix_identity - Rust Crate actix_identity
source · Expand description
Identity management for Actix Web.
actix-identity
can be used to track identity of a user across multiple requests. It is built
on top of HTTP sessions, via actix-session
.
Getting started
diff --git a/actix_identity/struct.Identity.html b/actix_identity/struct.Identity.html
index 89c34b520..5feb0f378 100644
--- a/actix_identity/struct.Identity.html
+++ b/actix_identity/struct.Identity.html
@@ -1,4 +1,4 @@
-Identity in actix_identity - Rust Struct actix_identity::Identity
source · pub struct Identity(_);
Expand description
A verified user identity. It can be used as a request extractor.
+Identity in actix_identity - Rust Struct actix_identity::Identity
source · pub struct Identity(/* private fields */);
Expand description
A verified user identity. It can be used as a request extractor.
The lifecycle of a user identity is tied to the lifecycle of the underlying session. If the
session is destroyed (e.g. the session expired), the user identity will be forgotten, de-facto
forcing a user log out.
@@ -49,7 +49,7 @@ control of the error path.
.finish()
}
}
-Implementations§
source§impl Identity
sourcepub fn id(&self) -> Result<String, GetIdentityError>
Return the user id associated to the current session.
+Implementations§
source§impl Identity
sourcepub 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;
@@ -62,7 +62,7 @@ control of the error path.
"Welcome Anonymous!".to_owned()
}
}
-sourcepub fn login(ext: &Extensions, id: String) -> Result<Self, LoginError>
Attach a valid user identity to the current session.
+sourcepub fn login(ext: &Extensions, id: String) -> Result<Self, LoginError>
Attach a valid user identity to the current session.
This method should be called after you have successfully authenticated the user. After
login
has been called, the user will be able to access all routes that require a valid
Identity
.
@@ -75,7 +75,7 @@ control of the error path.
Identity::login(&request.extensions(), "User1".into());
HttpResponse::Ok()
}
-sourcepub fn logout(self)
Remove the user identity from the current session.
After logout
has been called, the user will no longer be able to access routes that
require a valid Identity
.
The behaviour on logout is determined by IdentityMiddlewareBuilder::logout_behaviour
.
@@ -88,7 +88,7 @@ require a valid Trait Implementations§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()
}
}
-Auto Trait Implementations§
§impl !RefUnwindSafe for Identity
§impl !Send for Identity
§impl !Sync for Identity
§impl Unpin for Identity
§impl !UnwindSafe for Identity
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+Auto Trait Implementations§
§impl !RefUnwindSafe for Identity
§impl !Send for Identity
§impl !Sync for Identity
§impl Unpin for Identity
§impl !UnwindSafe for Identity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/struct.IdentityMiddleware.html b/actix_identity/struct.IdentityMiddleware.html
index eef832bbf..12d3d4f78 100644
--- a/actix_identity/struct.IdentityMiddleware.html
+++ b/actix_identity/struct.IdentityMiddleware.html
@@ -1,4 +1,4 @@
-IdentityMiddleware in actix_identity - Rust Struct actix_identity::IdentityMiddleware
source · pub struct IdentityMiddleware { /* private fields */ }
Expand description
Identity management middleware.
+IdentityMiddleware in actix_identity - Rust Struct actix_identity::IdentityMiddleware
source · pub struct IdentityMiddleware { /* private fields */ }
Expand description
Identity management middleware.
use actix_web::{cookie::Key, App, HttpServer};
use actix_session::storage::RedisSessionStore;
@@ -19,25 +19,25 @@
.wrap(SessionMiddleware::new(redis_store.clone(), secret_key.clone()))
})
}
-Implementations§
source§impl IdentityMiddleware
sourcepub fn builder() -> IdentityMiddlewareBuilder
A fluent API to configure IdentityMiddleware
.
-Trait Implementations§
source§impl Clone for IdentityMiddleware
source§fn clone(&self) -> IdentityMiddleware
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Default for IdentityMiddleware
source§fn default() -> IdentityMiddleware
Returns the “default value” for a type. Read moresource§impl<S, B> Transform<S, ServiceRequest> for IdentityMiddlewarewhere
+
Implementations§
source§impl IdentityMiddleware
sourcepub fn builder() -> IdentityMiddlewareBuilder
A fluent API to configure IdentityMiddleware
.
+Trait Implementations§
source§impl Clone for IdentityMiddleware
source§fn clone(&self) -> IdentityMiddleware
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Default for IdentityMiddleware
source§fn default() -> IdentityMiddleware
Returns the “default value” for a type. Read moresource§impl<S, B> Transform<S, ServiceRequest> for IdentityMiddlewarewhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
- B: MessageBody + 'static,
§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, asynchronouslyAuto Trait Implementations§
§impl RefUnwindSafe for IdentityMiddleware
§impl !Send for IdentityMiddleware
§impl !Sync for IdentityMiddleware
§impl Unpin for IdentityMiddleware
§impl UnwindSafe for IdentityMiddleware
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ B: MessageBody + 'static,§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, asynchronouslyAuto Trait Implementations§
§impl RefUnwindSafe for IdentityMiddleware
§impl !Send for IdentityMiddleware
§impl !Sync for IdentityMiddleware
§impl Unpin for IdentityMiddleware
§impl UnwindSafe for IdentityMiddleware
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_identity/trait.IdentityExt.html b/actix_identity/trait.IdentityExt.html
index bad5840b6..237baea50 100644
--- a/actix_identity/trait.IdentityExt.html
+++ b/actix_identity/trait.IdentityExt.html
@@ -1,6 +1,6 @@
-IdentityExt in actix_identity - Rust Trait actix_identity::IdentityExt
source · pub trait IdentityExt {
+IdentityExt in actix_identity - Rust Trait actix_identity::IdentityExt
source · pub trait IdentityExt {
// Required method
fn get_identity(&self) -> Result<Identity, GetIdentityError>;
}
Expand description
Helper trait to retrieve an Identity
instance from various actix-web
’s types.
-Required Methods§
sourcefn get_identity(&self) -> Result<Identity, GetIdentityError>
Retrieve the identity attached to the current session, if available.
-Implementations on Foreign Types§
source§impl IdentityExt for HttpRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for ServiceRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl<'a> IdentityExt for GuardContext<'a>
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
\ No newline at end of file
+
Required Methods§
sourcefn get_identity(&self) -> Result<Identity, GetIdentityError>
Retrieve the identity attached to the current session, if available.
+Implementations on Foreign Types§
source§impl IdentityExt for HttpRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl IdentityExt for ServiceRequest
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
source§impl<'a> IdentityExt for GuardContext<'a>
source§fn get_identity(&self) -> Result<Identity, GetIdentityError>
Implementors§
\ No newline at end of file
diff --git a/actix_limitation/all.html b/actix_limitation/all.html
index 456ed2bd8..527a08751 100644
--- a/actix_limitation/all.html
+++ b/actix_limitation/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Constants
\ No newline at end of file
+List of all items in this crate List of all items
Structs
Enums
Constants
\ No newline at end of file
diff --git a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html
index 603af0fd1..0fb2dc5b0 100644
--- a/actix_limitation/constant.DEFAULT_COOKIE_NAME.html
+++ b/actix_limitation/constant.DEFAULT_COOKIE_NAME.html
@@ -1,2 +1,2 @@
-DEFAULT_COOKIE_NAME in actix_limitation - Rust Constant actix_limitation::DEFAULT_COOKIE_NAME
source · pub const DEFAULT_COOKIE_NAME: &str = "sid";
Expand description
Default cookie name.
+DEFAULT_COOKIE_NAME in actix_limitation - Rust Constant actix_limitation::DEFAULT_COOKIE_NAME
source · pub const DEFAULT_COOKIE_NAME: &str = "sid";
Expand description
Default cookie name.
\ No newline at end of file
diff --git a/actix_limitation/constant.DEFAULT_PERIOD_SECS.html b/actix_limitation/constant.DEFAULT_PERIOD_SECS.html
index 75e6a2fed..e792fe7f6 100644
--- a/actix_limitation/constant.DEFAULT_PERIOD_SECS.html
+++ b/actix_limitation/constant.DEFAULT_PERIOD_SECS.html
@@ -1,2 +1,2 @@
-DEFAULT_PERIOD_SECS in actix_limitation - Rust Constant actix_limitation::DEFAULT_PERIOD_SECS
source · pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Expand description
Default period (in seconds).
+DEFAULT_PERIOD_SECS in actix_limitation - Rust Constant actix_limitation::DEFAULT_PERIOD_SECS
source · pub const DEFAULT_PERIOD_SECS: u64 = 3600;
Expand description
Default period (in seconds).
\ No newline at end of file
diff --git a/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html b/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html
index 69748143f..f8d2a9cc5 100644
--- a/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html
+++ b/actix_limitation/constant.DEFAULT_REQUEST_LIMIT.html
@@ -1,2 +1,2 @@
-DEFAULT_REQUEST_LIMIT in actix_limitation - Rust Constant actix_limitation::DEFAULT_REQUEST_LIMIT
source · pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Expand description
Default request limit.
+DEFAULT_REQUEST_LIMIT in actix_limitation - Rust Constant actix_limitation::DEFAULT_REQUEST_LIMIT
source · pub const DEFAULT_REQUEST_LIMIT: usize = 5000;
Expand description
Default request limit.
\ No newline at end of file
diff --git a/actix_limitation/constant.DEFAULT_SESSION_KEY.html b/actix_limitation/constant.DEFAULT_SESSION_KEY.html
index 544aebd05..0fc5fc78b 100644
--- a/actix_limitation/constant.DEFAULT_SESSION_KEY.html
+++ b/actix_limitation/constant.DEFAULT_SESSION_KEY.html
@@ -1,2 +1,2 @@
-DEFAULT_SESSION_KEY in actix_limitation - Rust Constant actix_limitation::DEFAULT_SESSION_KEY
source · pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Expand description
Default session key.
+DEFAULT_SESSION_KEY in actix_limitation - Rust Constant actix_limitation::DEFAULT_SESSION_KEY
source · pub const DEFAULT_SESSION_KEY: &str = "rate-api-id";
Expand description
Default session key.
\ No newline at end of file
diff --git a/actix_limitation/enum.Error.html b/actix_limitation/enum.Error.html
index 437e696a7..357801797 100644
--- a/actix_limitation/enum.Error.html
+++ b/actix_limitation/enum.Error.html
@@ -1,4 +1,4 @@
-Error in actix_limitation - Rust Enum actix_limitation::Error
source · pub enum Error {
+Error in actix_limitation - Rust Enum actix_limitation::Error
source · pub enum Error {
Client(RedisError),
LimitExceeded(Status),
Time(ComponentRange),
@@ -8,23 +8,21 @@
§LimitExceeded(Status)
Limit is exceeded for a key.
§Time(ComponentRange)
Time conversion failed.
§Other(String)
Generic error.
-
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_limitation/index.html b/actix_limitation/index.html
index 12484ac7d..a79d16b3c 100644
--- a/actix_limitation/index.html
+++ b/actix_limitation/index.html
@@ -1,4 +1,4 @@
-actix_limitation - Rust Crate actix_limitation
source · Expand description
Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.
+actix_limitation - Rust Crate actix_limitation
source · Expand description
Rate limiter using a fixed window counter for arbitrary keys, backed by Redis for Actix Web.
[dependencies]
actix-web = "4"
actix-limitation = "0.4"
diff --git a/actix_limitation/struct.Builder.html b/actix_limitation/struct.Builder.html
index 1ea669366..796a95683 100644
--- a/actix_limitation/struct.Builder.html
+++ b/actix_limitation/struct.Builder.html
@@ -1,36 +1,36 @@
-Builder in actix_limitation - Rust Struct actix_limitation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Rate limiter builder.
-Implementations§
source§impl Builder
sourcepub fn key_by<F>(&mut self, resolver: F) -> &mut Selfwhere
+Builder in actix_limitation - Rust Struct actix_limitation::Builder
source · pub struct Builder { /* private fields */ }
Expand description
Rate limiter builder.
+Implementations§
source§impl Builder
👎Deprecated: Prefer key_by
.
Sets name of cookie to be sent.
This method should not be used in combination of key_by
as they conflict.
-sourcepub fn session_key(
+
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for Builder
§impl Send for Builder
§impl Sync for Builder
§impl Unpin for Builder
§impl !UnwindSafe for Builder
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for Builder
§impl Send for Builder
§impl Sync for Builder
§impl Unpin for Builder
§impl !UnwindSafe for Builder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_limitation/struct.Limiter.html b/actix_limitation/struct.Limiter.html
index 5718ab99b..e1481354b 100644
--- a/actix_limitation/struct.Limiter.html
+++ b/actix_limitation/struct.Limiter.html
@@ -1,23 +1,23 @@
-Limiter in actix_limitation - Rust Struct actix_limitation::Limiter
source · pub struct Limiter { /* private fields */ }
Expand description
Rate limiter.
-Implementations§
source§impl Limiter
sourcepub fn builder(redis_url: impl Into<String>) -> Builder
Construct rate limiter builder with defaults.
+Limiter in actix_limitation - Rust Struct actix_limitation::Limiter
source · pub struct Limiter { /* private fields */ }
Expand description
Rate limiter.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for Limiter
§impl Send for Limiter
§impl Sync for Limiter
§impl Unpin for Limiter
§impl !UnwindSafe for Limiter
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
Trait Implementations§
Auto Trait Implementations§
§impl !RefUnwindSafe for Limiter
§impl Send for Limiter
§impl Sync for Limiter
§impl Unpin for Limiter
§impl !UnwindSafe for Limiter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_limitation/struct.RateLimiter.html b/actix_limitation/struct.RateLimiter.html
index 72837b728..b8259a61a 100644
--- a/actix_limitation/struct.RateLimiter.html
+++ b/actix_limitation/struct.RateLimiter.html
@@ -1,21 +1,21 @@
-RateLimiter in actix_limitation - Rust Struct actix_limitation::RateLimiter
source · #[non_exhaustive]pub struct RateLimiter;
Expand description
Rate limit middleware.
-Trait Implementations§
source§impl Debug for RateLimiter
source§impl Default for RateLimiter
source§fn default() -> RateLimiter
Returns the “default value” for a type. Read moresource§impl<S, B> Transform<S, ServiceRequest> for RateLimiterwhere
+RateLimiter in actix_limitation - Rust Struct actix_limitation::RateLimiter
source · #[non_exhaustive]pub struct RateLimiter;
Expand description
Rate limit middleware.
+Trait Implementations§
source§impl Debug for RateLimiter
source§impl Default for RateLimiter
source§fn default() -> RateLimiter
Returns the “default value” for a type. Read moresource§impl<S, B> Transform<S, ServiceRequest> for RateLimiterwhere
S: Service<ServiceRequest, Response = ServiceResponse<B>, Error = Error> + 'static,
S::Future: 'static,
- B: 'static,
§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, asynchronouslyAuto Trait Implementations§
§impl RefUnwindSafe for RateLimiter
§impl Send for RateLimiter
§impl Sync for RateLimiter
§impl Unpin for RateLimiter
§impl UnwindSafe for RateLimiter
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ B: 'static,§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, asynchronouslyAuto Trait Implementations§
§impl RefUnwindSafe for RateLimiter
§impl Send for RateLimiter
§impl Sync for RateLimiter
§impl Unpin for RateLimiter
§impl UnwindSafe for RateLimiter
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_limitation/struct.Status.html b/actix_limitation/struct.Status.html
index ec6d6c44b..a1123e2cb 100644
--- a/actix_limitation/struct.Status.html
+++ b/actix_limitation/struct.Status.html
@@ -1,22 +1,22 @@
-Status in actix_limitation - Rust Struct actix_limitation::Status
source · pub struct Status { /* private fields */ }
Expand description
A report for a given key containing the limit status.
-Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Status
§impl Send for Status
§impl Sync for Status
§impl Unpin for Status
§impl UnwindSafe for Status
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+Status in actix_limitation - Rust Struct actix_limitation::Status
source · pub struct Status { /* private fields */ }
Expand description
A report for a given key containing the limit status.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for Status
§impl Send for Status
§impl Sync for Status
§impl Unpin for Status
§impl UnwindSafe for Status
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_protobuf/all.html b/actix_protobuf/all.html
index c780b8809..054fa1325 100644
--- a/actix_protobuf/all.html
+++ b/actix_protobuf/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
Enums
Traits
\ No newline at end of file
+List of all items in this crate List of all items
Structs
Enums
Traits
\ No newline at end of file
diff --git a/actix_protobuf/enum.ProtoBufPayloadError.html b/actix_protobuf/enum.ProtoBufPayloadError.html
index 4b8ba1010..fcb8308bf 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(ProtoBufEncodeError),
- Deserialize(ProtoBufDecodeError),
+ Serialize(EncodeError),
+ Deserialize(DecodeError),
Payload(PayloadError),
}
Variants§
§Overflow
Payload size is bigger than 256k
§ContentType
Content type error
-§Serialize(ProtoBufEncodeError)
Serialize error
-§Deserialize(ProtoBufDecodeError)
Deserialize error
+§Serialize(EncodeError)
Serialize error
+§Deserialize(DecodeError)
Deserialize error
§Payload(PayloadError)
Payload error
-Trait Implementations§
source§impl Debug for ProtoBufPayloadError
source§impl Display for ProtoBufPayloadError
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 moreAuto Trait Implementations§
§impl !RefUnwindSafe for ProtoBufPayloadError
§impl Send for ProtoBufPayloadError
§impl Sync for ProtoBufPayloadError
§impl Unpin for ProtoBufPayloadError
§impl !UnwindSafe for ProtoBufPayloadError
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Debug for ProtoBufPayloadError
source§impl Display for ProtoBufPayloadError
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 moreAuto Trait Implementations§
§impl !RefUnwindSafe for ProtoBufPayloadError
§impl Send for ProtoBufPayloadError
§impl Sync for ProtoBufPayloadError
§impl Unpin for ProtoBufPayloadError
§impl !UnwindSafe for ProtoBufPayloadError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_protobuf/index.html b/actix_protobuf/index.html
index 246524760..30ccdaeaf 100644
--- a/actix_protobuf/index.html
+++ b/actix_protobuf/index.html
@@ -1,2 +1,2 @@
-actix_protobuf - Rust Crate actix_protobuf
source · Expand description
Protobuf payload extractor for Actix Web.
+actix_protobuf - Rust Crate actix_protobuf
source · Expand description
Protobuf payload extractor for Actix Web.
Structs
Enums
Traits
\ No newline at end of file
diff --git a/actix_protobuf/struct.ProtoBuf.html b/actix_protobuf/struct.ProtoBuf.html
index 55870e1b1..5e65b467f 100644
--- a/actix_protobuf/struct.ProtoBuf.html
+++ b/actix_protobuf/struct.ProtoBuf.html
@@ -1,29 +1,29 @@
-ProtoBuf in actix_protobuf - Rust Struct actix_protobuf::ProtoBuf
source · pub struct ProtoBuf<T: Message>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T> FromRequest for ProtoBuf<T>where
- T: Message + Default + 'static,
source§impl<T: Message + Default> Responder for ProtoBuf<T>
§type Body = BoxBody
source§fn respond_to(self, _: &HttpRequest) -> HttpResponse
Convert self to HttpResponse
.§fn customize(self) -> CustomizeResponder<Self>where
+ProtoBuf in actix_protobuf - Rust Struct actix_protobuf::ProtoBuf
source · pub struct ProtoBuf<T: Message>(pub T);
Tuple Fields§
§0: T
Trait Implementations§
source§impl<T> FromRequest for ProtoBuf<T>where
+ T: Message + Default + 'static,
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> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ T: UnwindSafe,Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
§impl<T, P> Resource for Twhere
T: DerefMut<Target = Path<P>>,
- P: ResourcePath,
§fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+ P: ResourcePath,§fn resource_path(&mut self) -> &mut Path<<T as Resource>::Path>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
§impl<T> Formattable for Twhere
T: Deref,
<T as Deref>::Target: Formattable,
§impl<T> Parsable for Twhere
diff --git a/actix_protobuf/struct.ProtoBufConfig.html b/actix_protobuf/struct.ProtoBufConfig.html
index 28e8e7c04..af1328359 100644
--- a/actix_protobuf/struct.ProtoBufConfig.html
+++ b/actix_protobuf/struct.ProtoBufConfig.html
@@ -1,18 +1,18 @@
-ProtoBufConfig in actix_protobuf - Rust Struct actix_protobuf::ProtoBufConfig
source · pub struct ProtoBufConfig { /* private fields */ }
Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ProtoBufConfig
§impl Send for ProtoBufConfig
§impl Sync for ProtoBufConfig
§impl Unpin for ProtoBufConfig
§impl UnwindSafe for ProtoBufConfig
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ProtoBufConfig in actix_protobuf - Rust Struct actix_protobuf::ProtoBufConfig
source · pub struct ProtoBufConfig { /* private fields */ }
Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl RefUnwindSafe for ProtoBufConfig
§impl Send for ProtoBufConfig
§impl Sync for ProtoBufConfig
§impl Unpin for ProtoBufConfig
§impl UnwindSafe for ProtoBufConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_protobuf/struct.ProtoBufMessage.html b/actix_protobuf/struct.ProtoBufMessage.html
index 1a36c25b9..cb13e0854 100644
--- a/actix_protobuf/struct.ProtoBufMessage.html
+++ b/actix_protobuf/struct.ProtoBufMessage.html
@@ -1,10 +1,10 @@
-ProtoBufMessage in actix_protobuf - Rust Struct actix_protobuf::ProtoBufMessage
source · pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: Message + Default + 'static> Future for ProtoBufMessage<T>
§type Output = Result<T, ProtoBufPayloadError>
The type of value produced on completion.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> From<T> for T
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
+ProtoBufMessage in actix_protobuf - Rust Struct actix_protobuf::ProtoBufMessage
source · pub struct ProtoBufMessage<T: Message + Default> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<T: Message + Default + 'static> Future for ProtoBufMessage<T>
§type Output = Result<T, ProtoBufPayloadError>
The type of value produced on completion.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> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moreTryFuture<Ok = T, Error = Never
>.source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<F> IntoFuture for Fwhere
- F: Future,
§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§impl<F, T, E> TryFuture for Fwhere
+
source§impl<F> IntoFuture for Fwhere
+ F: Future,
§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 moresource§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+future types.source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_protobuf/trait.ProtoBufResponseBuilder.html b/actix_protobuf/trait.ProtoBufResponseBuilder.html
index 511363a99..71e9af6cf 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
\ No newline at end of file
+ fn protobuf<T: Message>(&mut self, value: T) -> Result<HttpResponse, Error>;
+}
Required Methods§
Implementations on Foreign Types§
source§impl ProtoBufResponseBuilder for HttpResponseBuilder
Implementors§
\ No newline at end of file
diff --git a/actix_redis/all.html b/actix_redis/all.html
index 132382985..177bb29ac 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 d7737964c..98713dfa9 100644
--- a/actix_redis/enum.Error.html
+++ b/actix_redis/enum.Error.html
@@ -1,27 +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.
§Disconnected
Cancel all waiters when connection is dropped.
-Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl ResponseError for Error
§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()source§impl ResponseError for Error
§fn status_code(&self) -> StatusCode
Returns appropriate status code for error. Read more§fn error_response(&self) -> HttpResponse<BoxBody>
Creates full response for error. Read moreAuto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_redis/enum.RespError.html b/actix_redis/enum.RespError.html
index a65bc0642..352352f31 100644
--- a/actix_redis/enum.RespError.html
+++ b/actix_redis/enum.RespError.html
@@ -1,4 +1,4 @@
-RespError in actix_redis - Rust Enum actix_redis::RespError
pub enum RespError {
+RespError in actix_redis - Rust Enum actix_redis::RespError
pub enum RespError {
Internal(String),
IO(Error),
Resp(String, Option<RespValue>),
@@ -16,24 +16,22 @@ 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 Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
§impl Error for Error
§fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more1.0.0 · source§fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()Auto Trait Implementations§
§impl !RefUnwindSafe for Error
§impl Send for Error
§impl Sync for Error
§impl Unpin for Error
§impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_redis/enum.RespValue.html b/actix_redis/enum.RespValue.html
index bdbee88cf..7a42cb44c 100644
--- a/actix_redis/enum.RespValue.html
+++ b/actix_redis/enum.RespValue.html
@@ -1,4 +1,4 @@
-RespValue in actix_redis - Rust Enum actix_redis::RespValue
pub enum RespValue {
+RespValue in actix_redis - Rust
Trait Implementations§
Trait Implementations§
§impl PartialEq<RespValue> for RespValue
§impl Eq for RespValue
§impl StructuralEq for RespValue
§impl StructuralPartialEq for RespValue
Auto Trait Implementations§
§impl RefUnwindSafe for RespValue
§impl Send for RespValue
§impl Sync for RespValue
§impl Unpin for RespValue
§impl UnwindSafe for RespValue
Blanket Implementations§
§impl Eq for RespValue
§impl StructuralEq for RespValue
§impl StructuralPartialEq for RespValue
Auto Trait Implementations§
§impl RefUnwindSafe for RespValue
§impl Send for RespValue
§impl Sync for RespValue
§impl Unpin for RespValue
§impl UnwindSafe for RespValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
- K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ K: Borrow<Q> + ?Sized,source§fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_redis/index.html b/actix_redis/index.html
index 14de869cc..9f876db55 100644
--- a/actix_redis/index.html
+++ b/actix_redis/index.html
@@ -1,3 +1,3 @@
-actix_redis - Rust Crate actix_redis
source · Expand description
Redis integration for actix
.
+actix_redis - Rust Crate actix_redis
source · Expand description
Redis integration for actix
.
Macros
- Macro to create a RESP array, useful for preparing commands to send. Elements can be any type, or a mixture
of types, that satisfy
Into<RespValue>
.
Structs
- Command for sending data to Redis.
- Redis communication actor.
Enums
- General purpose
actix-redis
error. - A single RESP value, this owns the data that is read/to-be written to Redis.
\ No newline at end of file
diff --git a/actix_redis/macro.resp_array.html b/actix_redis/macro.resp_array.html
index e7e033989..8e7c22a14 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 actix_redis::resp_array
macro_rules! resp_array {
+resp_array in actix_redis - Rust Macro actix_redis::resp_array
macro_rules! resp_array {
($($e:expr),* $(,)?) => { ... };
}
Expand description
Macro to create a RESP array, useful for preparing commands to send. Elements can be any type, or a mixture
of types, that satisfy Into<RespValue>
.
diff --git a/actix_redis/struct.Command.html b/actix_redis/struct.Command.html
index 1fedcba32..1435a09a7 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§
Auto Trait Implementations§
§impl RefUnwindSafe for Command
§impl Send for Command
§impl Sync for Command
§impl Unpin for Command
§impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+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§
Auto Trait Implementations§
§impl RefUnwindSafe for Command
§impl Send for Command
§impl Sync for Command
§impl Unpin for Command
§impl UnwindSafe for Command
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_redis/struct.RedisActor.html b/actix_redis/struct.RedisActor.html
index 908216a99..ba07910be 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
sourcepub 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 typesource§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 start(self) -> 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
sourcepub 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 typesource§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 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.source§impl Handler<Command> for RedisActor
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 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 moresource§impl Handler<Command> for RedisActor
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 add_stream<S>(stream: S, ctx: &mut Self::Context) -> SpawnHandlewhere
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.Auto Trait Implementations§
§impl !RefUnwindSafe for RedisActor
§impl !Send for RedisActor
§impl !Sync for RedisActor
§impl Unpin for RedisActor
§impl !UnwindSafe for RedisActor
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
+ 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.Auto Trait Implementations§
§impl !RefUnwindSafe for RedisActor
§impl !Send for RedisActor
§impl !Sync for RedisActor
§impl Unpin for RedisActor
§impl !UnwindSafe for RedisActor
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
- S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
+source§impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
+ S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
\ No newline at end of file
diff --git a/actix_session/all.html b/actix_session/all.html
index 54435e0de..3bcd7945a 100644
--- a/actix_session/all.html
+++ b/actix_session/all.html
@@ -1 +1 @@
-List of all items in this crate List of all items
Structs
- Session
- SessionGetError
- SessionInsertError
- SessionMiddleware
- config::BrowserSession
- config::PersistentSession
- config::SessionMiddlewareBuilder
- storage::CookieSessionStore
- storage::RedisActorSessionStore
- storage::RedisActorSessionStoreBuilder
- storage::RedisSessionStore
- storage::RedisSessionStoreBuilder
- storage::SessionKey
Enums
- SessionStatus
- config::CookieContentSecurity
- config::SessionLifecycle
- config::TtlExtensionPolicy
- storage::LoadError
- storage::SaveError
- storage::UpdateError
Traits
\ No newline at end of file
+List of all items in this crate List of all items
Structs
- Session
- SessionGetError
- SessionInsertError
- SessionMiddleware
- config::BrowserSession
- config::PersistentSession
- config::SessionMiddlewareBuilder
- storage::CookieSessionStore
- storage::RedisActorSessionStore
- storage::RedisActorSessionStoreBuilder
- storage::RedisSessionStore
- storage::RedisSessionStoreBuilder
- storage::SessionKey
Enums
- SessionStatus
- config::CookieContentSecurity
- config::SessionLifecycle
- config::TtlExtensionPolicy
- storage::LoadError
- storage::SaveError
- storage::UpdateError
Traits
\ No newline at end of file
diff --git a/actix_session/config/enum.CookieContentSecurity.html b/actix_session/config/enum.CookieContentSecurity.html
index 53c7d0c26..c8a87dd1c 100644
--- a/actix_session/config/enum.CookieContentSecurity.html
+++ b/actix_session/config/enum.CookieContentSecurity.html
@@ -1,4 +1,4 @@
-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.
@@ -9,21 +9,21 @@ 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 more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CookieContentSecurity
source§impl Copy for CookieContentSecurity
Auto Trait Implementations§
§impl RefUnwindSafe for CookieContentSecurity
§impl Send for CookieContentSecurity
§impl Sync for CookieContentSecurity
§impl Unpin for CookieContentSecurity
§impl UnwindSafe for CookieContentSecurity
Blanket Implementations§
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
- U: From<T>,
Trait Implementations§
source§impl Clone for CookieContentSecurity
source§fn clone(&self) -> CookieContentSecurity
Returns a copy of the value. Read more1.0.0 · source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moresource§impl Debug for CookieContentSecurity
source§impl Copy for CookieContentSecurity
Auto Trait Implementations§
§impl RefUnwindSafe for CookieContentSecurity
§impl Send for CookieContentSecurity
§impl Sync for CookieContentSecurity
§impl Unpin for CookieContentSecurity
§impl UnwindSafe for CookieContentSecurity
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
+ T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read moresource§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>