Enum axum_sessions::PersistencePolicy
source ยท pub enum PersistencePolicy {
Always,
ChangedOnly,
ExistingOnly,
}
Expand description
Controls how the session data is persisted and created.
Variantsยง
Always
Always ping the storage layer and store empty โguestโ sessions.
ChangedOnly
Do not store empty โguestโ sessions, only ping the storage layer if the session data changed.
ExistingOnly
Do not store empty โguestโ sessions, always ping the storage layer for existing sessions.
Trait Implementationsยง
sourceยงimpl Clone for PersistencePolicy
impl Clone for PersistencePolicy
sourceยงfn clone(&self) -> PersistencePolicy
fn clone(&self) -> PersistencePolicy
Returns a copy of the value. Read more
1.0.0 ยท sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more