2023-01-30 17:55:48 +01:00
<!DOCTYPE html> < html lang = "en" > < head > < meta charset = "utf-8" > < meta name = "viewport" content = "width=device-width, initial-scale=1.0" > < meta name = "generator" content = "rustdoc" > < meta name = "description" content = "The interface to retrieve and save the current session data from/to the chosen storage backend." > < meta name = "keywords" content = "rust, rustlang, rust-lang, SessionStore" > < title > SessionStore in actix_session::storage - Rust< / title > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/SourceSerif4-Regular-1f7d512b176f0f72.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/SourceSerif4-Bold-124a1ca42af929b6.ttf.woff2" > < link rel = "preload" as = "font" type = "font/woff2" crossorigin href = "../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2" > < link rel = "stylesheet" href = "../../static.files/normalize-76eba96aa4d2e634.css" > < link rel = "stylesheet" href = "../../static.files/rustdoc-f2fc7b5fd698d27d.css" id = "mainThemeStyle" > < link rel = "stylesheet" id = "themeStyle" href = "../../static.files/light-5f7299aa2b503fb1.css" > < link rel = "stylesheet" disabled href = "../../static.files/dark-dfb18ef8114bb428.css" > < link rel = "stylesheet" disabled href = "../../static.files/ayu-4047a6aaddd3789d.css" > < script id = "default-settings" > < / script > < script src = "../../static.files/storage-d43fa987303ecbbb.js" > < / script > < script defer src = "sidebar-items.js" > < / script > < script defer src = "../../static.files/main-02cbe07fc548e88c.js" > < / script > < noscript > < link rel = "stylesheet" href = "../../static.files/noscript-13285aec31fa243e.css" > < / noscript > < link rel = "icon" href = "https://actix.rs/favicon.ico" > < / head > < body class = "rustdoc trait" > <!-- [if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif] --> < nav class = "mobile-topbar" > < button class = "sidebar-menu-toggle" > ☰ < / button > < a class = "logo-container" href = "../../actix_session/index.html" > < img src = "https://actix.rs/img/logo.png" alt = "logo" > < / a > < h2 > < / h2 > < / nav > < nav class = "sidebar" > < a class = "logo-container" href = "../../actix_session/index.html" >
< img src = "https://actix.rs/img/logo.png" alt = "logo" > < / a > < h2 class = "location" > < a href = "#" > SessionStore< / a > < / h2 > < div class = "sidebar-elems" > < section > < h3 > < a href = "#required-methods" > Required Methods< / a > < / h3 > < ul class = "block" > < li > < a href = "#tymethod.delete" > delete< / a > < / li > < li > < a href = "#tymethod.load" > load< / a > < / li > < li > < a href = "#tymethod.save" > save< / a > < / li > < li > < a href = "#tymethod.update" > update< / a > < / li > < li > < a href = "#tymethod.update_ttl" > update_ttl< / a > < / li > < / ul > < h3 > < a href = "#implementors" > Implementors< / a > < / h3 > < / section > < h2 > < a href = "index.html" > In actix_session::storage< / a > < / h2 > < / div > < / nav > < main > < div class = "width-limiter" > < nav class = "sub" > < form class = "search-form" > < span > < / span > < input class = "search-input" name = "search" aria-label = "Run search in the documentation" autocomplete = "off" spellcheck = "false" placeholder = "Click or press ‘ S’ to search, ‘ ?’ for more options…" type = "search" > < div id = "help-button" title = "help" tabindex = "-1" > < a href = "../../help.html" > ?< / a > < / div > < div id = "settings-menu" tabindex = "-1" > < a href = "../../settings.html" title = "settings" > < img width = "22" height = "22" alt = "Change settings" src = "../../static.files/wheel-5ec35bf9ca753509.svg" > < / a > < / div > < / form > < / nav > < section id = "main-content" class = "content" > < div class = "main-heading" > < h1 > Trait < a href = "../index.html" > actix_session< / a > ::< wbr > < a href = "index.html" > storage< / a > ::< wbr > < a class = "trait" href = "#" > SessionStore< / a > < button id = "copy-path" title = "Copy item path to clipboard" > < img src = "../../static.files/clipboard-7571035ce49a181d.svg" width = "19" height = "18" alt = "Copy item path" > < / button > < / h1 > < span class = "out-of-band" > < a class = "srclink" href = "../../src/actix_session/storage/interface.rs.html#18-48" > source< / a > · < button id = "toggle-all-docs" title = "collapse all docs" > [< span > − < / span > ]< / button > < / span > < / div > < div class = "item-decl" > < pre class = "rust" > < code > pub trait SessionStore {
2023-01-05 15:38:37 +01:00
fn < a href = "#tymethod.load" class = "fn" > load< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > < br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > > , < a class = "enum" href = "enum.LoadError.html" title = "enum actix_session::storage::LoadError" > LoadError< / a > > > + 'async_trait> > < br > < span class = "where" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait< / span > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.save" class = "fn" > save< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_state: < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > ,< br > ttl: & 'life1 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > , < a class = "enum" href = "enum.SaveError.html" title = "enum actix_session::storage::SaveError" > SaveError< / a > > > + 'async_trait> > < br > < span class = "where" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait< / span > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.update" class = "fn" > update< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > ,< br > session_state: < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > ,< br > ttl: & 'life1 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > , < a class = "enum" href = "enum.UpdateError.html" title = "enum actix_session::storage::UpdateError" > UpdateError< / a > > > + 'async_trait> > < br > < span class = "where" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait< / span > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.update_ttl" class = "fn" > update_ttl< / a > < 'life0, 'life1, 'life2, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > ,< br > ttl: & 'life2 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.unit.html" > ()< / a > , < a class = "struct" href = "https://docs.rs/anyhow/1.0.68/anyhow/struct.Error.html" title = "struct anyhow::Error" > Error< / a > > > + 'async_trait> > < br > < span class = "where" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< br > 'life2: 'async_trait< / span > ;
< span class = "item-spacer" > < / span > fn < a href = "#tymethod.delete" class = "fn" > delete< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > < br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.unit.html" > ()< / a > , < a class = "struct" href = "https://docs.rs/anyhow/1.0.68/anyhow/struct.Error.html" title = "struct anyhow::Error" > Error< / a > > > + 'async_trait> > < br > < span class = "where" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait< / span > ;
2023-01-30 17:55:48 +01:00
}< / code > < / pre > < / div > < details class = "toggle top-doc" open > < summary class = "hideme" > < span > Expand description< / span > < / summary > < div class = "docblock" > < p > The interface to retrieve and save the current session data from/to the chosen storage backend.< / p >
2022-03-06 00:25:11 +01:00
< p > You can provide your own custom session store backend by implementing this trait.< / p >
2022-03-15 17:29:58 +01:00
< p > < a href = "https://docs.rs/async-trait" > < code > async-trait< / code > < / a > is used for this trait’ s definition. Therefore, it
is required for implementations, too. In particular, we use the send-optional variant:
< code > #[async_trait(?Send)]< / code > .< / p >
2023-01-30 17:55:48 +01:00
< / div > < / details > < h2 id = "required-methods" class = "small-section-header" > Required Methods< a href = "#required-methods" class = "anchor" > §< / a > < / h2 > < div class = "methods" > < details class = "toggle method-toggle" open > < summary > < section id = "tymethod.load" class = "method" > < a class = "srclink rightside" href = "../../src/actix_session/storage/interface.rs.html#20" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.load" class = "fn" > load< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > < br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title = "enum core::option::Option" > Option< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > > , < a class = "enum" href = "enum.LoadError.html" title = "enum actix_session::storage::LoadError" > LoadError< / a > > > + 'async_trait> > < span class = "where fmt-newline" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< / span > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Loads the session state associated to a session key.< / p >
< / div > < / details > < details class = "toggle method-toggle" open > < summary > < section id = "tymethod.save" class = "method" > < a class = "srclink rightside" href = "../../src/actix_session/storage/interface.rs.html#25-29" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.save" class = "fn" > save< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_state: < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > ,< br > ttl: & 'life1 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > , < a class = "enum" href = "enum.SaveError.html" title = "enum actix_session::storage::SaveError" > SaveError< / a > > > + 'async_trait> > < span class = "where fmt-newline" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< / span > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Persist the session state for a newly created session.< / p >
2022-03-06 00:25:11 +01:00
< p > Returns the corresponding session key.< / p >
2023-01-30 17:55:48 +01:00
< / div > < / details > < details class = "toggle method-toggle" open > < summary > < section id = "tymethod.update" class = "method" > < a class = "srclink rightside" href = "../../src/actix_session/storage/interface.rs.html#32-37" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.update" class = "fn" > update< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > ,< br > session_state: < a class = "struct" href = "https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title = "struct std::collections::hash::map::HashMap" > HashMap< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > , < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title = "struct alloc::string::String" > String< / a > > ,< br > ttl: & 'life1 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > , < a class = "enum" href = "enum.UpdateError.html" title = "enum actix_session::storage::UpdateError" > UpdateError< / a > > > + 'async_trait> > < span class = "where fmt-newline" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< / span > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Updates the session state associated to a pre-existing session key.< / p >
< / div > < / details > < details class = "toggle method-toggle" open > < summary > < section id = "tymethod.update_ttl" class = "method" > < a class = "srclink rightside" href = "../../src/actix_session/storage/interface.rs.html#40-44" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.update_ttl" class = "fn" > update_ttl< / a > < 'life0, 'life1, 'life2, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > ,< br > ttl: & 'life2 Duration< br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.unit.html" > ()< / a > , < a class = "struct" href = "https://docs.rs/anyhow/1.0.68/anyhow/struct.Error.html" title = "struct anyhow::Error" > Error< / a > > > + 'async_trait> > < span class = "where fmt-newline" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< br > 'life2: 'async_trait,< / span > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Updates the TTL of the session state associated to a pre-existing session key.< / p >
< / div > < / details > < details class = "toggle method-toggle" open > < summary > < section id = "tymethod.delete" class = "method" > < a class = "srclink rightside" href = "../../src/actix_session/storage/interface.rs.html#47" > source< / a > < h4 class = "code-header" > fn < a href = "#tymethod.delete" class = "fn" > delete< / a > < 'life0, 'life1, 'async_trait> (< br > & 'life0 self,< br > session_key: & 'life1 < a class = "struct" href = "struct.SessionKey.html" title = "struct actix_session::storage::SessionKey" > SessionKey< / a > < br > ) -> < a class = "struct" href = "https://doc.rust-lang.org/nightly/core/pin/struct.Pin.html" title = "struct core::pin::Pin" > Pin< / a > < < a class = "struct" href = "https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title = "struct alloc::boxed::Box" > Box< / a > < dyn < a class = "trait" href = "https://doc.rust-lang.org/nightly/core/future/future/trait.Future.html" title = "trait core::future::future::Future" > Future< / a > < Output = < a class = "enum" href = "https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title = "enum core::result::Result" > Result< / a > < < a class = "primitive" href = "https://doc.rust-lang.org/nightly/std/primitive.unit.html" > ()< / a > , < a class = "struct" href = "https://docs.rs/anyhow/1.0.68/anyhow/struct.Error.html" title = "struct anyhow::Error" > Error< / a > > > + 'async_trait> > < span class = "where fmt-newline" > where< br > Self: 'async_trait,< br > 'life0: 'async_trait,< br > 'life1: 'async_trait,< / span > < / h4 > < / section > < / summary > < div class = "docblock" > < p > Deletes a session from the store.< / p >
< / div > < / details > < / div > < h2 id = "implementors" class = "small-section-header" > Implementors< a href = "#implementors" class = "anchor" > §< / a > < / h2 > < div id = "implementors-list" > < section id = "impl-SessionStore-for-CookieSessionStore" class = "impl" > < a class = "srclink rightside" href = "../../src/actix_session/storage/cookie.rs.html#56-100" > source< / a > < a href = "#impl-SessionStore-for-CookieSessionStore" class = "anchor" > §< / a > < h3 class = "code-header" > impl < a class = "trait" href = "trait.SessionStore.html" title = "trait actix_session::storage::SessionStore" > SessionStore< / a > for < a class = "struct" href = "struct.CookieSessionStore.html" title = "struct actix_session::storage::CookieSessionStore" > CookieSessionStore< / a > < / h3 > < / section > < section id = "impl-SessionStore-for-RedisActorSessionStore" class = "impl" > < a class = "srclink rightside" href = "../../src/actix_session/storage/redis_actor.rs.html#124-277" > source< / a > < a href = "#impl-SessionStore-for-RedisActorSessionStore" class = "anchor" > §< / a > < h3 class = "code-header" > impl < a class = "trait" href = "trait.SessionStore.html" title = "trait actix_session::storage::SessionStore" > SessionStore< / a > for < a class = "struct" href = "struct.RedisActorSessionStore.html" title = "struct actix_session::storage::RedisActorSessionStore" > RedisActorSessionStore< / a > < / h3 > < / section > < section id = "impl-SessionStore-for-RedisSessionStore" class = "impl" > < a class = "srclink rightside" href = "../../src/actix_session/storage/redis_rs.rs.html#138-250" > source< / a > < a href = "#impl-SessionStore-for-RedisSessionStore" class = "anchor" > §< / a > < h3 class = "code-header" > impl < a class = "trait" href = "trait.SessionStore.html" title = "trait actix_session::storage::SessionStore" > SessionStore< / a > for < a class = "struct" href = "struct.RedisSessionStore.html" title = "struct actix_session::storage::RedisSessionStore" > RedisSessionStore< / a > < / h3 > < / section > < / div > < script src = "../../implementors/actix_session/storage/interface/trait.SessionStore.js" async > < / script > < / section > < / div > < / main > < div id = "rustdoc-vars" data-root-path = "../../" data-static-root-path = "../../static.files/" data-current-crate = "actix_session" data-themes = "" data-resource-suffix = "" data-rustdoc-version = "1.69.0-nightly (e972bc808 2023-01-29)" data-search-js = "search-98d53477a794af0b.js" data-settings-js = "settings-a43118d2dfb2799d.js" data-settings-css = "settings-7c23ac01f615ce90.css" > < / div > < / body > < / html >