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 moreAuto Trait Implementationsยง
impl RefUnwindSafe for PersistencePolicy
impl Send for PersistencePolicy
impl Sync for PersistencePolicy
impl Unpin for PersistencePolicy
impl UnwindSafe for PersistencePolicy
Blanket Implementationsยง
sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more