diff --git a/actix_cors/index.html b/actix_cors/index.html index 854b8635e..3dba0a2b4 100644 --- a/actix_cors/index.html +++ b/actix_cors/index.html @@ -4,7 +4,7 @@
+

Crate actix_cors

logo
Expand description

Cross-Origin Resource Sharing (CORS) controls for Actix Web.

This middleware can be applied to both applications and resources. Once built, a diff --git a/actix_session/storage/enum.LoadError.html b/actix_session/storage/enum.LoadError.html index f27667004..79754321f 100644 --- a/actix_session/storage/enum.LoadError.html +++ b/actix_session/storage/enum.LoadError.html @@ -7,11 +7,11 @@

LoadError

logo
pub enum LoadError {
-    Deserialization(Error),
-    Other(Error),
+    Deserialization(Error),
+    Other(Error),
 }
Expand description

Possible failures modes for SessionStore::load.

-

Variants

Deserialization(Error)

Failed to deserialize session state.

-

Other(Error)

Something went wrong when retrieving the session state.

+

Variants

Deserialization(Error)

Failed to deserialize session state.

+

Other(Error)

Something went wrong when retrieving the session state.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

diff --git a/actix_session/storage/enum.SaveError.html b/actix_session/storage/enum.SaveError.html index f9610b76a..7f84ecc09 100644 --- a/actix_session/storage/enum.SaveError.html +++ b/actix_session/storage/enum.SaveError.html @@ -7,11 +7,11 @@

SaveError

logo
pub enum SaveError {
-    Serialization(Error),
-    Other(Error),
+    Serialization(Error),
+    Other(Error),
 }
Expand description

Possible failures modes for SessionStore::save.

-

Variants

Serialization(Error)

Failed to serialize session state.

-

Other(Error)

Something went wrong when persisting the session state.

+

Variants

Serialization(Error)

Failed to serialize session state.

+

Other(Error)

Something went wrong when persisting the session state.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

diff --git a/actix_session/storage/enum.UpdateError.html b/actix_session/storage/enum.UpdateError.html index 289f26b10..bea23efed 100644 --- a/actix_session/storage/enum.UpdateError.html +++ b/actix_session/storage/enum.UpdateError.html @@ -7,11 +7,11 @@

UpdateError

logo
pub enum UpdateError {
-    Serialization(Error),
-    Other(Error),
+    Serialization(Error),
+    Other(Error),
 }
Expand description

Possible failures modes for SessionStore::update.

-

Variants

Serialization(Error)

Failed to serialize session state.

-

Other(Error)

Something went wrong when updating the session state.

+

Variants

Serialization(Error)

Failed to serialize session state.

+

Other(Error)

Something went wrong when updating the session state.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

diff --git a/actix_session/storage/struct.CookieSessionStore.html b/actix_session/storage/struct.CookieSessionStore.html index 5f46baf2d..47e766d4f 100644 --- a/actix_session/storage/struct.CookieSessionStore.html +++ b/actix_session/storage/struct.CookieSessionStore.html @@ -40,7 +40,7 @@ storage backend.

Loads the session state associated to a session key.

Persist the session state for a newly created session. Read more

Updates the session state associated to a pre-existing session key.

-

Deletes a session from the store.

+

Deletes a session from the store.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_session/storage/struct.RedisActorSessionStore.html b/actix_session/storage/struct.RedisActorSessionStore.html index ca4c91e4a..6c199ac52 100644 --- a/actix_session/storage/struct.RedisActorSessionStore.html +++ b/actix_session/storage/struct.RedisActorSessionStore.html @@ -49,7 +49,7 @@ connection string for Redis.

Trait Implementations

Loads the session state associated to a session key.

Persist the session state for a newly created session. Read more

Updates the session state associated to a pre-existing session key.

-

Deletes a session from the store.

+

Deletes a session from the store.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_session/storage/struct.RedisSessionStore.html b/actix_session/storage/struct.RedisSessionStore.html index b7b95b87a..00f566294 100644 --- a/actix_session/storage/struct.RedisSessionStore.html +++ b/actix_session/storage/struct.RedisSessionStore.html @@ -46,7 +46,7 @@ connection to Redis using the rediss:// URL scheme:

Implementations

A fluent API to configure RedisSessionStore. It takes as input the only required input to create a new instance of RedisSessionStore - a connection string for Redis.

-

Create a new instance of RedisSessionStore using the default configuration. +

Create a new instance of RedisSessionStore using the default configuration. It takes as input the only required input to create a new instance of RedisSessionStore - a connection string for Redis.

Trait Implementations

Returns a copy of the value. Read more

@@ -54,7 +54,7 @@ connection string for Redis.

Loads the session state associated to a session key.

Persist the session state for a newly created session. Read more

Updates the session state associated to a pre-existing session key.

-

Deletes a session from the store.

+

Deletes a session from the store.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_session/storage/struct.RedisSessionStoreBuilder.html b/actix_session/storage/struct.RedisSessionStoreBuilder.html index d3c78a2f6..bc73cc7e4 100644 --- a/actix_session/storage/struct.RedisSessionStoreBuilder.html +++ b/actix_session/storage/struct.RedisSessionStoreBuilder.html @@ -9,7 +9,7 @@

Struct actix_session::storage::RedisSessionStoreBuilder

source · []
pub struct RedisSessionStoreBuilder { /* private fields */ }
Expand description

A fluent builder to construct a RedisSessionStore instance with custom configuration parameters.

Implementations

Set a custom cache key generation strategy, expecting a session key as input.

-

Finalise the builder and return a RedisActorSessionStore instance.

+

Finalise the builder and return a RedisActorSessionStore instance.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

diff --git a/actix_session/storage/trait.SessionStore.html b/actix_session/storage/trait.SessionStore.html index bd9dbbb6f..28b467eb3 100644 --- a/actix_session/storage/trait.SessionStore.html +++ b/actix_session/storage/trait.SessionStore.html @@ -10,13 +10,13 @@ fn load<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_key: &'life1 SessionKey
    ) -> Pin<Box<dyn Future<Output = Result<Option<HashMap<String, String>>, LoadError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn save<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_state: HashMap<String, String>,
        ttl: &'life1 Duration
    ) -> Pin<Box<dyn Future<Output = Result<SessionKey, SaveError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
fn update<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_key: SessionKey,
        session_state: HashMap<String, String>,
        ttl: &'life1 Duration
    ) -> Pin<Box<dyn Future<Output = Result<SessionKey, UpdateError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; -
fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_key: &'life1 SessionKey
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; +
fn delete<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_key: &'life1 SessionKey
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

The interface to retrieve and save the current session data from/to the chosen storage backend.

You can provide your own custom session store backend by implementing this trait.

Required methods

Loads the session state associated to a session key.

Persist the session state for a newly created session.

Returns the corresponding session key.

Updates the session state associated to a pre-existing session key.

-

Deletes a session from the store.

+

Deletes a session from the store.

Implementors

\ No newline at end of file